r/badcode – Telegram
r/badcode
41 subscribers
721 photos
732 links
r/badcode now on Telegram!
Bot: @reddit2telegram_bot
Chat: @r_channels
Download Telegram
Was going through some old files, found this, not 100% sure if it qualifies (approx. from 6 years ago, when I started learning C++).
https://redd.it/ruccx4
@r_badcode
I can't even say I was just inexperienced, I wrote that yesterday lol
https://redd.it/rucc5a
@r_badcode
This horribly handwritten DB logic
https://redd.it/r6jt1h
@r_badcode
Looping through a list of objects, the best way to count them... Found while looking through repo history.
https://redd.it/r6j4pw
@r_badcode
I had to witness this and now you do too
https://redd.it/r6691t
@r_badcode
Time offset detection that returns 0 when offset is dividable by 24. Found in production
https://redd.it/ruy5bk
@r_badcode
I was wondering why Exceptions were not stopping the execution (production code of AI Company with 200+ employees)
https://redd.it/rv43je
@r_badcode
This is what happens when you've been coding for hours and the deadline is tomorrow
https://redd.it/rv9vn2
@r_badcode
This test tell me I'm wrong but I'm not ... (right ?)
https://redd.it/rw2n84
@r_badcode
how did this make it to production?
https://redd.it/rx1lt0
@r_badcode
Programing teacher not only refuses to acknowledge the built-in function max, but also overwrites it.
https://redd.it/rxfq9x
@r_badcode
There has to be a better way
https://redd.it/rxhl1u
@r_badcode
goto HR because you are fired.
https://redd.it/rxl7ox
@r_badcode
OOP? Haven't heard of it (not mine)
https://redd.it/rxplta
@r_badcode
In my defense, copilot suggested this but it works
https://redd.it/rz6yz9
@r_badcode
My super-efficient sorting algorithm from a few years ago. wordFreq is a dict that contains all the words from a text file and how many times they occur. I learned later that this is basically insertion sort.
https://redd.it/rz8k62
@r_badcode
Bro, people are writing 2-line-long solutions here!
https://redd.it/rz6xin
@r_badcode