22

JavaScript is fun when your not fucking bad at programming you stupid jquery-loving, abstractionless, monoparadigm, encapsulationphobia fucks

Comments
  • 2
  • 10
    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.
  • 3
    Valid rant
  • 6
    It 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.
  • 5
    @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. 🙄
  • 1
  • 0
    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.
  • 0
    @Marethyun I don’t think I’m following
  • 1
    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?
  • 2
    @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 () => {}
  • 1
    @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.
  • 1
    Nah, I think of myself as a half-decent programmer and JS isn't fun. I have more fun satisfying compilers to be honest.
  • 0
    @CoreFusionX Ah yes, I have been tripped many times!
Add Comment