r/badcode – Telegram
r/badcode
41 subscribers
721 photos
732 links
r/badcode now on Telegram!
Bot: @reddit2telegram_bot
Chat: @r_channels
Download Telegram
you can never have too much check
https://redd.it/t7t4gj
@r_badcode
Checks for three in a row in a tic-tac-toe assignment
https://redd.it/t8cv54
@r_badcode
this monstrosity of a recursive function which I wrote for one of my University assignments
https://redd.it/ta91ia
@r_badcode
Sometimes you have to use flags for avoid two or more calls to UI initialization, I'm not proud...
https://redd.it/tad97f
@r_badcode
something my classmate has written, he stills refuses to listen to me
https://redd.it/taxzxo
@r_badcode
Utility Function on G4G
https://redd.it/tb2k7k
@r_badcode
The null coalescing operator returning null
https://redd.it/tb2ee5
@r_badcode
pleaaasseeee dont tell me that my teacher is creating a search function entirely from elif statements
https://redd.it/tb18qe
@r_badcode
Someone in my CS class made a for loop to get the length of an array
https://redd.it/tctaj4
@r_badcode
Found this in our codebase. I'm the Jr dev, but I seem to be the only one who knows CSS.
https://redd.it/td3gha
@r_badcode
Found this gem while documenting some legacy code my boss asked
https://redd.it/te5p0i
@r_badcode
Yes, if you use array_reverse like this it only produces hot air
https://redd.it/tez3se
@r_badcode
SQL is bad enough as it is, but how did this monstrosity get created? The PagingCursor at the end is another 100 lines of dynamic SQL that executes a cursor to insert into a temp table...
https://redd.it/texndw
@r_badcode
I didn't want to use "if" statements, but then I started laughing when I kept losing my places while coding
https://redd.it/tf96fz
@r_badcode
Found this monstrosity the day after a late night code session.
https://redd.it/tfbhgc
@r_badcode
Did someone said sql? welcome to my legacy
https://redd.it/tfheyn
@r_badcode
From a school exam where you needed to return the game score based on the number of wins and ties, this guy just looked at the automatic test cases and returned their expected result
https://redd.it/tgg0ef
@r_badcode