Beware of Shakespearean Programming Languages!!
Описание
They will have types, types, and more types all over the place for you to figure out. And you'll never be done figuring them out - because they will just create more! Object Oriented Programming (OOP) usually defines types in statically typed languages such as Java, C#, TypeScript, etc. This creates complexity because it essentially defines more vocabulary words in a language. This might make sense to the author, but the source code will read like a Shakespeare play where every other word will leave you questioning what it means and will require you to look it up.
Even in newer JavaScript frameworks like Angular and React instead of treating all UI as boxes they will make a component (aka a UI type) for every little box -- and each component will have its own unique way of interacting with it. Instead, it's way more efficient to just keep mostly everything as typeless containers (divs as an example).
Remember: don't just make code typeless, make UI typeless as well!! JSON was just a hierarchy of containers, html can be thought of in the same way (with hierarchies of divs).
Stackoverflow: https://stackoverflow.com/users/257558/shai-ui
0:00 Programming interlude
1:03 Just my opinion
2:56 OOP and types leads to more vocabulary
4:11 Shakespeare and the many vocabulary words he created
8:11 Shakespearean programming languages: C#, Java, and Swift
11:48 Most popular programming languages today are dynamic
12:39 Statically typed example: Java
14:46 The ramifications of creating types (examples in C#, Swift)
16:15 Dynamically typed example: JavaScript
17:28 Dynamically typed example: Python
17:50 XML vs JSON
19:40 Components vs No Components
22:16 Comparing Shakespeare to programming languages
24:10 Homework: look around you, everything is just typeless panels!
Рекомендуемые видео


















