[TIL] 21-Jan-2020
Intro to JS, Declarative/Imperative Programming, Spatial Relations from text, git
Introduction to Javascript:
- var uses functional scope (always bad)
- let uses block scope
- const disallows reassignment (preferred) (minimizes mutable states)
- Objects exist but classes are not really implemented to the same degree as other oop languages
- ‘this’ used to be a bad thing since it depended on the context in which methods were called, there is newer arrow syntax now.
- something called react hooks will be used for the FSO course…
Declarative/Imperative Programming:
- Declarative : Describe what to accomplish not how like SQL. And also avoids side effects.
- Imperative : Describe details of control flow / algorithms. Procedural programming is a subset of Imperative.
Spatial Relations from Text:
- This is related to my project of physical visualizations from text.
- text2scene is what im trying to do.
To ignore a local change that has not yet been comitted, just use:
git checkout -- filename
This rolls back any unstaged changes, you dont need to git pull.