Week three will be largely dedicated to getting a lot of practice with what we’ve learned so far:
- Practice with vectors and other variables
- Practice writing functions
- Practice reading code and making small changes
- … and a main topic: conditional statements (if-elseif-else-end and switch-case-otherwise-end)
Things to do:
- Download (and read) the updated slides with notes
- Download the code files (updated: lecture and lab)
- Readings for this week: Hahn & Valentine ch. 2.8, 10.4, 10.5 (, 13.1) or Attaway ch. 3.2, 3.3, 3.4 , 3.5, 3.7, 8, 13.1, 13.2 (Attaway doesn’t have a good in-depth chapter on random numbers beyond
In addition we’ll also be preparing to look at how code files are organized. One key tool to help programmers organize and manage their code is a version control system (VCS). VCSs also help share code and collaborate via web-based repositories. A popular VCS is called git, and a popular online repository site is Github. UAF has its own internal enterprise installation of Github, which we can use just like the public free Github site, but without having to share our code with the rest of the world.
To prepare, here are two things you can do:
- Try to log in at the UA Github with your UAlaska credentials.
- Watch the following 5 min video:
Confused? Never heard of such a thing before? Want a more gentle intro? I like this one too (14 min).