Previous Lecture | lect02 Before Slides | lect02 Annotated Slides | Next Lecture |
Code from lecture:
https://github.com/ucsb-cs24-s18/cs24-s18-lectures/tree/master/lec-02
Topics
- Intro to lab01
- Implementing classes: class vs instance, syntax for classes, scope, methods, instance variables
- Classes: structs but with methods
- Accessors and modifiers
- When to use classes, how many? The dangers of overobjectification (too many classes)
- ADT (Abstract Data Type) ~ class (w/ info hiding) for use by other programmers
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
-
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
- 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.