5

Your one-line JavaScript arrow functions AREN'T LEGIBLE! You've just memorized their shape. It's OK. But don't lie to yourself. They look super stupid. They aren't for humans.

Comments
  • 2
    Yes.

    Yes.

    Yes.
  • 2
    Smae for nesting ternary operators/predicates. Looks good but almost fucking unreadable. I prefer 2-3 if statements in a return instead trying to decypher your predicates.
  • 2
    I agree, even though I do not mind JS and quite love TS: One line arrow functions are hard to parse and reason about. But I believe this might come from my own bias against them coupled with the fact that I just don't like the way they look.
  • 3
    I'll allow 1 liner arrow functions if they are simple and easy operations.
  • 2
    Like, if I ever see a "clever"/complicated experession in one of these, it's a syntax error for me. Never allowing such complication.
  • 0
    @AleCx04 so you don’t hate jacascript and loce typescript? That is script kiddie behavior
  • 5
    @aviophile No, I just don't neckbeard about programming languages or tech environments as if it were some sort of religion. If it pays well, I would even work with VBA.

    I like money, and have little care about neckbeardeness and elitism inside of the field 🤷
  • 0
    @AleCx04 why u hate neckbeards so much and what they even mean
  • 6
    @AnxiousADHDGuy I use it as a way to describe: fat, elitist, annoying, arrogant people that go out of their way to make the programming landscape an elitist cult of assholes.

    From google: a man who is socially inept and physically unappealing, especially one who has an obsessive interest in computing.

    It stuck with me forever and i basically use it to describe elitist assholes.
  • 3
    @AleCx04 I like getting neckbeards to fight each other. Yes, this is wrong, but I like popcorn.
  • 4
    One liner, sure.

    Several nested decisions in one line, is immediate delete and turned into if/else or switch depending on the language.

    There's "I'm an amazing dev - look at me" and there's "wtf even is this anymore"

    @AleCx04 shh, I still write VBA.
  • 1
    @AleCx04 I like this. Reminds me of those Star Trek wankers that argue about episode counts and backstories
  • 0
    Tbh with this code pilot shit taking over. I’m making it as complicated as fuck for the lols because I don’t want some ML taking my job
  • 0
    Wrong through and through. But have fun writing "function" throughout your codebase
Add Comment