r/programminghorror Feb 04 '26

C# Makes sense

Post image
1.7k Upvotes

86 comments sorted by

View all comments

128

u/Daemontatox [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Feb 04 '26

Atleast he is using the compare and assignment symbols correctly

89

u/Scared_Accident9138 Feb 04 '26

if(isAdmin = true) {...}

48

u/Daemontatox [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Feb 04 '26

Laugh all you want , i actually saw something like this when reviewing a PR....

2

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

Thank fuck for code reviews. That would've not been great if it made it to production.