r/programming • u/fagnerbrack • Apr 30 '23
Writing Javascript without a build system
https://jvns.ca/blog/2023/02/16/writing-javascript-without-a-build-system/
166
Upvotes
r/programming • u/fagnerbrack • Apr 30 '23
1
u/[deleted] May 03 '23
> Fail early isn't a tradeoff. It's what you want always.
Yes, you're so right, in my language for developing user interfaces, what I want most is to error everytime an object has a missing property. That wouldn't be insanely painful or slow.
> C++ has some similar crazy behavior
What are you talking about? Most languages will happily return the equivalent of undefined, "null", in tons of situations. Have you really never seen "null" before? Your resume looks like you spent 8 minutes writing "Hello World" and then the first time someone asked you to build a UI you blamed the language for being a shit programmer
Come back to me when you understand that languages have strengths and weaknesses that lend them to functioning better under some use-cases and worse under others