r/badcode – Telegram
r/badcode
41 subscribers
721 photos
732 links
r/badcode now on Telegram!
Bot: @reddit2telegram_bot
Chat: @r_channels
Download Telegram
Came across this in a machine learning lib, trying to find out how particular recall and precision scores were calculated - made me laugh: `if x != 4: x = 4`
https://redd.it/u25h8w
@r_badcode
Found this monstrosity while refactoring some of my old code
https://redd.it/u2f33x
@r_badcode
Yandere dev school of if statements
https://redd.it/u2wm0v
@r_badcode
Is it okay if I knows its terrible?
https://redd.it/u2w5zz
@r_badcode
I wish people were taught basic logic before programming
https://redd.it/u3esbg
@r_badcode
Just some code i wrote a few months ago
https://redd.it/u3igf2
@r_badcode
[Javanoscript] I was trying to avoid using verbose else if statements, but this feels even worse
https://redd.it/u3qhjn
@r_badcode
This makes me question if it's bad or good code
https://redd.it/u3tyni
@r_badcode
Variables without var/let/const prefix behave as globals, and this is from a Node web app
https://redd.it/u4cc15
@r_badcode
C allows any expression to be used as a parameter's array size hint. Any expression...
https://redd.it/u4k0k4
@r_badcode
Title "Baby logic." on r/ProgrammerHumor
https://redd.it/u656ky
@r_badcode
im tired and lazy and i wanna go to bed
https://redd.it/u7botc
@r_badcode
From teammates in capstone class. I don’t even know if this belongs. Just needed somebody else to witness. Don’t know what to say.
https://redd.it/u7e0uk
@r_badcode
Not everytime you need to go through the code to see if its good or bad
https://redd.it/u8ukfu
@r_badcode
Just doing some bit operations for an emulator
https://redd.it/u8zz3f
@r_badcode
last_group_last_last_last_last_last_last... Copilot rarely has a stroke on me, but when it does, it's beautiful
https://redd.it/u9gfyi
@r_badcode
Can anyone do this flowchart?
https://redd.it/ua77oy
@r_badcode
Absolutely terrible PHP code for the win
https://redd.it/ua8l6o
@r_badcode
Mine own masterpiece to check if an image is a reddit post
https://redd.it/ublmc9
@r_badcode