Previous Lecture | lect03 Before Slides | lect03 Annotated Slides | Next Lecture |
Code from lecture
https://github.com/ucsb-cs16-sp17/lectures/tree/master/0410
Topics
Github intro
- What is github? How and why we plan to use it in this class
- What is a git repo?
-
Creating a github repo and using github’s web interface to store your first program
- Intro to lab01
- For loops are DIFFERENT in C++ than in Python. We’ll discuss.
- Simple accumulator
- For, while and do-while loops - Discussion on when to use each
- Nested loops
- ASCII Art with nested loops If time permits - introduce functions
- Basic abstraction in software: functions
-
C++ functions are different from Python functions
- Gentle intro to github: what is a repo, creating a repo, cloning a repo to a local machine, syncing repos with git add, commit and push
Software developers almost always prefer to use github’s command line tools for version control instead of the web interface. The reason is that with the command-line tools you can (1) use your favorite editor to write your code, instead of github’s simple web-based editor (2) compile and test your code, while also performing version control.
- Read the articles on creating a github repo under an organization, cloning your first repo and git basic workflow. We will now put the concepts from all the articles that you have read so far into practice. You may need to refer back to these articles to complete the following steps.