1.0 Software Development and Design Flashcards
1.5 Explain the benefits of organizing code into methods / functions, classes, and modules
These help with the D.R.Y principle (Don’t Repeat Yourself). Example: Classes are blueprints, Objects are houses, and Functions are things you do to or with objects.
1.6 Identify the advantages of common design patterns (MVC and Observer): Observer
A pattern where dependant objects are updated or notified by one or more subject objects.
1.6 Identify the advantages of common design patterns (MVC and Observer): MVC
A high-level abtraction where responsibilities are divided up into three loosely coupled component:
1. Model: the component that stores the data
2. View: the component that displays the data
3. Controller: the component that handles logic flow, user interactions, and directs models and view.
1.7 Explain the advantages of version control
Maintains a history of changes for reference or rollback.
1.8a Utilize common version control operations with Git: Add/remove
Add/Remove adds a file to staging Git for version controlling.
1.8c Utilize common version control operations with Git: Commit
This will take all staged files and snapshot them into Git for version control. This will not update non-staged(added) files.
1.8g Utilize common version control operations with Git: diff
This command will show any changes that have been made since the last commit. It will list every file that has been changed and display what have been modified inside said files.
1.8a Utilize common version control operations with Git: clone
This command creates a local copy of a remote directory. Additionally it synchronizes it with the remote repository. Allowing for push/pull.
1.8d Utilize common version control operations with Git: push/pull
Push: Forces your changes to a repository to the synchronized remote server.
Pull: Updates your repository from a synchronized remote server.
1.8e Utilize common version control operations with Git: branch
Branches are parralel working enviroments to your master branch. Once you make a second branch everything you do on that branch will not affect the original one, and visa versa. You can still work on both, but the will not affect each other.
1.8f Utilize common version control operations with Git: Merge
Merging combines two branches, the recieving branch where the changes are being pulled into and the target branch, which is where the changes are being pulled from.
1.8f Utilize common version control operations with Git: handling conflicts
Conflicts occur when two merging branches both have changes to the same code in the same file and need to figure out which ones to keep. The way to fix this is after you use the merge command an error will appear and give you the option to choose which you would like to keep, choose one and the conflict is resolved.
1.1 Compare data formats (XML, JSON, and YAML): YAML
YAML is highly human readable, compact and is ideal for configurations. It uses dashes (-) and seperate lines.
1.1 Compare data formats (XML, JSON, and YAML): XML
XML is best used for legacy systems and SOAP (API web based protocol). It looks similar to html, using <>, </>
1.1 Compare data formats (XML, JSON, and YAML): JSON
JSON is native to JavaScript making it the defacto language for webpages. It uses brackes [], {}