Live data from Hacker News

Ask HN: what is the most stupid line of code you saw?

news.ycombinator.com

1–10 of 20 posts

Re: Ask HN: what is the most stupid line of code you saw?

#5
I've actually used 1==2 and 1==1 to basically comment sections out or create an infinite while loop. Only really useful in C-style languages

Dumb mistakes I've seen include commented out error checking because of a reversed greater than sign and a SQL query that deletes the whole table before rebuilding the entire thing every day

Post reply on HN