Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I believe I mentioned it elsewhere, but I find typescript suspiciously close to C++...
Of course not the speed, but you get me... Strict typing, build steps, etc.
Guess I don't hate JavaScript in itself, just the silly notion that it is to be used *everywhere* when better tools exist. -
hitko31452yIt would also help if those people actually had the bare fucking minimum knowledge about computers and programming languages before they decided to put their crappy code all over the internet, and if they stopped copying shitty SO code which hasn't been updated since the times of IE.
Oh, and the ecosystem becomes much more fun if you understand that a naïve 2-line left-pad polyfill with no test coverage is for all intents and purposes just as good as some well-maintained library with A+ rating and 100% test coverage. -
@hitko
Oh, don't get me started on npm debauchery.
I still remember the time a fellow (senior) dev raged at me because I was stupid for suggesting he interpreted an int as binary flags, claiming it was impossible in JavaScript.
I suppose he needed a npm package binary-flags to do a fucking bitwise and with 1 << n. 🙄 -
JS is fine until it isn't. Then I have the option to drop down to C++. I try to minimize my JS use to just expressions to determine how the GUI looks.
-
Vanilla JS isn't terrible. I do believe that earlier versions before ES6 had some terrible design choices.
Do you remember when classes weren't a thing and losing 'this' was a constant problem? -
@iSwimInTheC
Well, it got extremely easy for me when I stopped insisting that js "this" is anything like C++ "this", coz it isn't.
JS classes aren't real classes, they are syntactic sugar for a function, which is fine and dandy, but it's sure to trip classical OOP programmers.
I blame it more though in the difference in behavior between function(){} and () => {} -
@CoreFusionX
You're right, that makes sense. Scoping is weird.
Yeah, it feels that way, certainly. Everything is an Object in Javascript but not in the way you're thinking if you're coming from a discrete OOP language ðŸ˜ðŸ˜‚
Seriously I had to leave everything I thought I knew about objects at the door and learn truly what an Object is in JS. It's fucking wild! 😂
And not all Objects are the same. Depending on how they are instantiated (Object notation vs Object literal) you get completely different things. -
Inxentas7892yNah, I think of myself as a half-decent programmer and JS isn't fun. I have more fun satisfying compilers to be honest.
JavaScript is fun when your not fucking bad at programming you stupid jquery-loving, abstractionless, monoparadigm, encapsulationphobia fucks
rant