4 ms·
I moved away from JavaScript because of the same reason I moved away from PHP. An originally decent idea gone terribly wrong.
by artyom 3y ago
I moved away from JavaScript because of the same reason I moved away from PHP.
An originally decent idea gone terribly wrong.
- reidjs 3y agoHow do you build web applications?
- artyom 3y agoI don't. I build backend services now. But to be fair, I still maintain a relatively popular Chrome extension in old-school JS and that's still a pleasure to work with.
- sodapopcan 3y agoThere are plenty of ways these days to build rich web applications without writing much JS. LiveView, Hotwire, Reactor, LiveWire, Blazor...
- artyom 3y agoNot really against JS as a language, everything against the current state of its ecosystem
- sodapopcan 3y agoNot sure I fully follow where your response is aiming but if I understand correctly, I don't hate JS but I don't like using it for business logic. I feel these frameworks (I use LiveView) let me use JS what it's good for: a DSL for complex DOM manipulation. Everything else, including simple DOM mutations, is handled by LiveView and I can write business logic in a nicer language.
- isanjay 3y agoIMHO JavaScript is neither a good OOP language not a good Functional language.
- artyom 3y agoUnfortunately I think the opposite. JS was a great prototype-based language, but very few understood those and tried to fit it into functional or OOP mindsets. When they started talks about adding classes to the spec I knew I had to run away.
- yamtaddle 3y ago> JS was a great prototype-based language Maybe it's just me, but everything distinctive about prototypal OO falls firmly in the category of "please never actually use this in a codebase I have to work in".
- artyom 3y agoWell, I agree if your experience was around codebases that tried to fit JS in the OOP category.
- 0x457 3y agoWell, then you don't think the opposite. JS is a bad OOP or functional language, but a good prototype-based language. Bad thing that no one wants such language.
- artyom 3y agoI can't disagree with the "no one wants" part unfortunately, no matter how good my counter-arguments can be.
- 0x457 3y agoDon't blame you. Hard to disagree with that. Ever since JavaScript became important (famous web 2.0 yay) everything in the JS ecosystem was about making it more like Java style OOP and recently more functional style. There were so many shims to emulate that style of OOP.