- typed languages
- Dynamic languages
- variadic function
- Function signature
- JVM bytecode
- Lodash (better than underscore )
AirCrewMentor gave a little introduction about the Polymorphism code where we can bassically summarize that the same function name can be used in several functions and depending on what arguments and types you pass to the function, one version or other is activated.
######2 typed languages
In 2000 Microsoft created C# (C sharp) to compete with Java. In this languages the every variable or agument got its type defined, so if you are passing a wrong type of argument to a function or variable, the program wouldn’t compile, so this is really good to avoid bugs but it got no flexibility.
var totalPrice = 0; var int totalPrice = 0; totalPrice = “foo”; // never compile
######3 Dynamic languages
######4 variadic function
This point I didn’t get it right, we’ll come over it again. @AirCrewMentor
######5 Function signature
The function can be differenced by the arguments it accepts, this is also known as function signature.
I have to rewrite the function formatMoney with lodash to accept argument and have a default value
formatMoney(123, options) formatMoney(number, options)
Learn a real library that I would be using with real code projects.
If I have time left, I should learn how to test the UI that is harder than the mocha test we’ve been doing.