this post was submitted on 25 Nov 2025
339 points (99.4% liked)
Programmer Humor
27534 readers
88 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There are a couple that come to mind.
Definitely the worst, a C# .net mvc application with multiple controllers that were 10s of thousands of lines long. I ran sonarqube on this at one point and it reported over 70% code duplication.
This code base actively ignored features in the framework that would have made things easier and instead opted to do things in ways that were both worse, and harder to do. For example, all SQL queries were done using antiquated methods that, as an added benefit, also made them all injectable.
Reading the code itself was like looking at old school PHP, but c#. I know that statement probably doesn't make sense, but neither did the code.
Lastly, there was no auth on any of the endpoints. None. There was a login, but you could supply whatever data you wanted on any call and the system would just accept it.
At the time I was running an internal penetration test team and this app was from a recent acquisition. After two weeks I had to tell my team to stop testing so we could just write up what we had already and schedule another test a couple months down the line.
What is a sonarqube? I never heard that term before. Could you also provide the names of some software to run them?
Sonarqube is a kind of like an automated code quality checker that works for a bunch of programming languages. It's pretty configurable (though I've never configured it myself), so it can be set up to check a code base for a wide range of things.
There's a couple of different ways to run it, in my experience bigger companies usually have a dedicated server on their internal networks that connects to their CI/CD pipelines so that code gets checked before it gets merged in.
On a smaller scale, it's also possible to run locally (either on metal or inside a docker container). From there you'd install a plugin to your IDE of choice.
More info:
Wikipedia
Geeks for geeks
Interesting, I'll do some further research.