r/programminghorror • [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Mar 20 '26

Rust Yes i code like this

0 Upvotes

23 comments sorted by

View all comments

Show parent comment

6

u/RpxdYTX [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Mar 21 '26

This is rust blackmagic code, it's not code intended to be used literally anywhere whatsoever and I'm only doing it because I'm feeling like it. Rust is not like that

7

u/RpxdYTX [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Mar 21 '26

In fact, there's literally a rust koan advising against whatever the hell I'm doing. If a piece of cursed code is enough reason for anyone to drop a language, then javascript would have never entered the web environment ever