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 writethink 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.
I can think of plenty of times where Ive needed to check a range of conditions in non-performance critical code, and I simply use an includes or a some.
You're right. There is of course a usecase for that. I guess I was triggered by the post's presentation plus the reaction in the comments. Maybe I shouldn't have emphazised on that particular part to never use it.
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 writethink 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.from I don't fucking know
/ rant end sorry
Edit: Cheers to the deleted guy down there. He's right.