Elektrine lite

← Feed

@JATothrim_v2@programming.dev

Post #2724180

2026-05-20 19:12 UTC

I have lately jokingly guessed when I see the particular style and confusion: it’s you isn’t it? And so far I have been right. The particular author’s magic as expired, and I see the same fault replicated everywhere he has been.

Replies (1)

  • @Feathercrown@lemmy.world 2026-05-20 19:39

    One of my coworkers is fond of using ternary expressions instead of "if" blocks. Even ones without an "else". So I see things like: `condition ? someVar = "blah" : null;` or `condition ? doSomething() : null` Which should both just use "if" statements. Or my favorite: `condition ? someVar = "foo" : someVar = "bar"` which should really be `someVar = condition ? "foo" : "bar"`

    Open ##2948956