r/badcode – Telegram
r/badcode
41 subscribers
721 photos
732 links
r/badcode now on Telegram!
Bot: @reddit2telegram_bot
Chat: @r_channels
Download Telegram
[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
Just one example of an Angular repo full of this crap.
https://redd.it/ubnol9
@r_badcode
This is production-code, I swear it
https://redd.it/ubvpb4
@r_badcode
this is supposed to be an ad for a python course. no indentation, a random semicolon, int(block / 3) instead of block // 3, and absolutely crippled controlflow
https://redd.it/uc6d3c
@r_badcode
Funniest line of code I found at my company's codebase
https://redd.it/uc78tl
@r_badcode
Found this guy on codewars. The kata was to convert seconds in year, months, days and so on... Link if you want to see all the code: https://www.codewars.com/kata/reviews/550b304659513854f3000f52/groups/5e10d378bb266200013d5af5
https://redd.it/ucjpm0
@r_badcode
The output of `npm audit fix`...
https://redd.it/ud8604
@r_badcode
Try-catch inside a <input>.. Ugh.
https://redd.it/ud8kdo
@r_badcode