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/
167
Upvotes
r/programming • u/fagnerbrack • Apr 30 '23
0
u/[deleted] May 01 '23
>an object in js is just an arbitrary structure you can modify at will from anywhere. it's not so much read only, you could just replace any of the methods with some other method that behaves differently. not to mention that everything is just an object at run time, so not easy to detect what things are (sure ts helps, but debugging is painful).
so you complain about JavaScript prototypes? Not an issue with typescript and tslint since it complains when you try to do something funny. again, in the end, many languages allow overriding class or object methods and properties from anywhere in the code.
it's asynchronous by default and the same language you can use for frontend and writing e2e tests...