this post was submitted on 03 Oct 2025
652 points (98.9% liked)

Programmer Humor

26772 readers
842 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Buckshot@programming.dev 14 points 5 days ago (2 children)

I got dumped with fixing some bugs in a project written by a contractor who had literally done this but with extra steps.

Backend was sql server and c#/asp.

There was an api endpoint that took json, used xslt to transform to xml. Then called the stored procedure specified in request passing the xml as a parameter.

The stored procedure then queried the xml for parameters, executed the query, and returned results as xml.

Another xslt transformed that to json and returned to the client.

It was impressive how little c# there was.

Despite holding all the business logic, the sql was not in source control.

Worst thing with databases. Used to quote to my interns, "No spooky action at a distance" logic has to be in front of you and in git. Anything else is a recipe for bugs and undetectable errors.

[–] JackbyDev@programming.dev 0 points 4 days ago (1 children)

Seems very secure. As in job security. Because why the fuck did they make it so complicated.

[–] Buckshot@programming.dev 2 points 4 days ago

Yeah, maybe the contractor thought he'd get more work fixing it but he was long gone by the time I got it so i never met him

One of bugs I got was performance because the search didn't work, with about 600,000 assets in database it would timeout searching for one by exact match on ID. It took 45 minutes to return 1 result.