r/programminghorror • • May 27 '26

Javascript Destructuring strings

Post image
887 Upvotes

64 comments sorted by

View all comments

Show parent comment

4

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” May 28 '26

I think it was fine as a webpage scripting language, but now it's being used everywhere. It certainly seems like it was designed to make every effort to keep going, no matter how little sense the code makes.