r/learnjavascript • • May 06 '21

JS: Multiple Condition Checking

Post image
484 Upvotes

61 comments sorted by

View all comments

71

u/blafurznarg May 06 '21 edited May 06 '21

rant /

Bruh the learnJS community (not just reddit) is being gaslighted and manipulated by so called mentors and teachers trying to be smart. The early leaners being impressed by every destructuring stunt is not gonna help.

Please never write think about the advantages and disadvantages before writing something like that in prod. If you sacrifice readability for cleverness and shortness at all costs your code will become unmaintainable.

Those who can, do; those who can't, teach [and make instagram posts with useless info].

  • from I don't fucking know

/ rant end sorry

Edit: Cheers to the deleted guy down there. He's right.

4

u/toastertop May 06 '21 edited May 07 '21

Still read posts etc. just don't get too hung up on things. Refer back to MDN or even Spec for getting info.

I encourage people to get conformable reading spec. I understand the UI/UX is well, not great, for now just find it on MDN then click the link to spec.

It's worded differently so can be sometimes easier to understand and you can trace a line of thought of how something came to be, back up through the versions of the spec. Element is old and a great start [Edit: ca't sp] Also: CanIUse