3. Why use Java?
•
•
•
•
•
Used everywhere (allegedly)
Strongly typed language
Compiled language
Object Oriented
Tons of available frameworks
4. Why use JavaScript?
•
•
•
•
•
Used everywhere (allegedly)
Strongly typed language
Compiled language
Object Oriented
Tons of available frameworks
5. Why use JavaScript?
•
•
•
•
•
•
Used everywhere (allegedly)
Strongly typed language
Compiled language
Object Oriented
Tons of available frameworks
Extremely flexible
8. What to expect
• An intro to JavaScript
o Simulate Object-Oriented JavaScript
• Packaging / Folder structure
• Known walls new developers hit
o Type safety
o Single threaded system
o Mountain/Piramid of doom.
26. What happened there
• When calling apply or call:
o
o
o
o
The this scope is shared between functions
Allows multiple inheritances
Allows order of execution in inheritances
Directly inherits!
27. What happened there
• When calling apply or call:
o
o
o
o
The this scope is shared between functions
Allows multiple inheritances
Allows order of execution in inheritances
Directly inherits!
• It only shares:
o ‘public’ functions and variables
28. What happened there
• When calling apply or call:
o
o
o
o
The this scope is shared between functions
Allows multiple inheritances
Allows order of execution in inheritances
Directly inherits!
• It only shares:
o ‘public’ functions and variables
• It may overwrite methods or get overwritten
33. Equality of objects is deep
•
Recursively compare all elements
•
If order is guaranteed:
o JSON.stringify && compare JSONs
• Use deep compare function ≈ 120 lines of code
o http://stackoverflow.com/questions/1068834/object-comparison-in-javascript