3 ms·
I avoided having to learn Javascript in-depth because I thought its type system was like coding in the dark. Your IDE would either return all possible methods
by jtreminio 8y ago
I avoided having to learn Javascript in-depth because I thought its type system was like coding in the dark.
Your IDE would either return all possible methods of all possible objects in your whole project, or wouldn't return anything at all.
You need to either memorize the API of whatever object you're currently working with, or have its API open in a separate window to always see what's what.
Wait, no, I still think this is true. I discovered Typescript a while ago and it is a joy to work with. I don't understand why developers would subject themselves to the modern equivalent of coding in notepad.exe when they could use a language that actively helps them.
- colejohnson66 8y agoModern editors such as VS Code have type inference and you can add special comments above the functions to list they types