|
this thread is for posting your colleagues’ (and your own) terrible code and laughing at it. today I found this (api anonymized and condensed for clarity). see how many things you can find wrong with it.code:
|
# ? Oct 4, 2017 16:46 |
|
|
# ? Jun 3, 2024 23:03 |
|
heh it's bad
|
# ? Oct 4, 2017 16:54 |
*81 kilobyte large uncommented sql select query*
|
|
# ? Oct 4, 2017 16:59 |
|
I once wrote some bitwise logic for parsing arguments in, of all things, ruby can't find it now though
|
# ? Oct 4, 2017 17:02 |
COACHS SPORT BAR posted:I once wrote some bitwise logic for parsing arguments in, of all things, ruby i wrote a salary parser in python last week 20 branch if statement because i couldnt be arsed to parse salary ranges
|
|
# ? Oct 4, 2017 17:06 |
|
im piss
|
# ? Oct 4, 2017 17:19 |
|
the joke is that all code is terrible and laughable even if implemented "correctly"
|
# ? Oct 4, 2017 21:47 |
|
omg the truest stymie post
|
# ? Oct 5, 2017 01:11 |
|
Stymie posted:the joke is that all code is terrible and laughable even if implemented "correctly" i've been saying this poo poo and quoting stymie for years
|
# ? Oct 5, 2017 01:50 |
|
sounds like whoever did this was a real bastard operator from hell, op
|
# ? Oct 5, 2017 06:42 |
|
I once wrote some code that was really dumb and bad
|
# ? Oct 5, 2017 15:09 |
|
it was yesterday and almost every day before that for the last 15 years
|
# ? Oct 5, 2017 15:10 |
|
who wrote this garbage check on it and realize i wrote it six months ago must have been a good idea at the time
|
# ? Oct 6, 2017 00:37 |
|
looks good to me,op?
|
# ? Oct 6, 2017 06:37 |
|
Displeased Moo Cow posted:looks good to me,op? it creates a thread, waits for it to finish, then restarts and creates another thread. instead of just having a loop. it literally has thread whose whole job is to wait on another thread to run to completion. it closes the thing even if failed to open it. if open fails, it will be an infinite loop of system calls that will bring your system to its knees.
|
# ? Oct 6, 2017 07:01 |
|
today's wtf is these forums
|
# ? Oct 6, 2017 12:05 |
|
no that was yesterdays
|
# ? Oct 6, 2017 13:10 |
|
Coding is for nerds with brains and bad social skills and wads of dosh
|
# ? Oct 6, 2017 23:28 |
|
|
# ? Jun 3, 2024 23:03 |
|
lampey posted:who wrote this garbage
|
# ? Oct 6, 2017 23:33 |