LinkedIn principal author Doug Winnie explains the principles of code repositories like Git and GitHub. Code repos are used by new programmers for three primary reasons.The first is to provide a history of changes of your code, called commits, to revert back to if you need. The second is to create branches to support multiple versions of simultaneous development. The third is to support team collaboration on code projects.
- View Offline
- Working as a developer is an iterative process.…As you add more capabilities to your project…and re-factor existing code,…you'll want to keep a history of your progress.…Sometimes changes you make don't quite work out,…and you need a way to go back in time…to an earlier point and restore from an earlier version.…Using code repositories are the main…way that you are able to do that.…One of the most popular is called Git,…and there is a hosted version of Git called GitHub,…used to manage your code and even work…with others collaboratively on a project.…
There are tons of different uses for code repositories,…but as a new programmer, there are three…that I wanted to highlight first.…The first is that code repositories…are essentially snapshots in time.…They capture your code at a certain point called a commit.…When you finish editing your code,…you perform a commit that saves that point in time…and the state of the code in the repository.…You provide a description…and then that is saved into the repository.…
Now as you continue to make changes,…
Join Doug Winnie as he explains the principles of programming and helps you connect to core concepts by exploring three ways that programmers perform their jobs. Doug starts by sharing the history of coding and then dives into functions, values, variables, and parameters used to define actions. He covers capturing input from users, creating conditional tests, using loops with arrays, and object-oriented programming basics. He also takes you beyond programming, into processes like debugging, refactoring, and building iteratively.
- Working with values and variables
- Breaking down tasks
- Customizing functions and parameters
- Building conditional tests
- Creating and changing arrays
- Working with objects and classes
- Debugging and refactoring code
- Going beyond the code as a programmer