|
Lol. I've been programming for a decade in many languages including assembly, C#, Rust, Lisp, Prolog, F# and more, focusing on JS in the last 5 years. Virtually no one writes plain JavaScript, most people including me write TypeScript, but Babel with extensions is normally used. Your reply exhibits your ignorance of the JS world. |
"JS" instead of "TypeScript" brings confusion. TS solves some issues and I've mentioned it, still
Template literals interpolation helps but if string (not literal string) slips by it is a mess Check out another comment [1], Object, Function, etc defined as constructor. It is not solved by "class", it is still a function with a bit of sugar: Globals with a few exceptions defined as constructors, DOM elements defined as constructors, inheritance defined as constructors You can internalize how it works and there are some good explanations [2] but design is error prone and terrible.[1] https://news.ycombinator.com/item?id=24815922
[2] https://yehudakatz.com/2011/08/12/understanding-prototypes-i...