|
Hmmm, I have more than one current project in pure ES5, as terrible as it is. I have one polyfill file with stuff like Object.keys and things that organically accumulated over time, and should probably be cleaned of obsolete nonsense but it's 6k LOC, and otherwise I need to remind myself to use my XHR abstraction, as I automatically still type stuff like "if xhr.readyState == 4 && xhr.status = 200" like a doofus... such is life in wart-land. I will be happy when I leave wart-land, but only when I really leave wart-land, not when it's just "lipstick on the wart"-land. Types and classes sound nice, but only if they really exist, and not as mere compiler advice. A type is really a memory shape/size/structure in compiled languages. Ok, having said all of this heretical nonsense... (and yes, I've used React, Vue, etc. I tend to like Mithril best, and avoid JSX as I've no problem with hyperscript, and have even made my own lousy reactive hyperscript that I don't use (lol) in favor of Mithril) ... i DO have to say that Typescript seems like a nice/useful tool for teams, were transpiling to be accepted for the project needs, after weighing the costs/needs.
I am recently rather fascinated by Svelte, and I'm mostly trying to break things and see what generated code looks like, etc.
I'll admit that ES3 get's a bit useless, hence the polyfill.
Minified JS with single-letter variables is usually a hoot to read. |