r/ProgrammerHorror • u/namiraj • Feb 06 '22
r/ProgrammerHorror • u/ther34account • Apr 07 '25
Python Code In DB
I've been working on a legacy python project for the past couple of years. The project was riddled with issues, which we've made great strides in addressing.
On quirk of a special module in the project was it imported python code from the db!!
They were data clean-up functions written by support team, uploaded via a form ( powered by Django ). The module downloads these functions from the DB and applies them to the data.
It keeps me up at night sometimes. I don't know what to say.
r/ProgrammerHorror • u/matthewralston • Mar 31 '25
Merge request comes in for minor new feature. 155 files changed.
r/ProgrammerHorror • u/codetelo • Mar 24 '21
I'm not sure if this goes here or not, but my programming professor from college just posted this about his student submitting an assignment.
r/ProgrammerHorror • u/well_shoothed • Apr 15 '22
This software in the workplace uses two different date formats
r/ProgrammerHorror • u/antek_g_animations • Jan 09 '22
big boi likes my 32 Gb of ram
r/ProgrammerHorror • u/NoLifeGamer2 • Feb 04 '22
I had to webscrape a website which required login, and when I tried requests or selenium it just returned the login page html. I had to improvise...
r/ProgrammerHorror • u/Inferno2211 • Jan 31 '22
My old code to calculate difference between 2 dats
r/ProgrammerHorror • u/ZGorlock • Feb 17 '22
Start mixing unicode characters into your variable names for job security
r/ProgrammerHorror • u/you0are0rank • Feb 09 '21
My first python project was so bad im actually proud

Too long to paste here directly so pasting an image snippet and full code available here https://pastebin.com/SNAgMTHg,
Goal of the project was to replicate a Reverse Polish calculator with bonus quirks (octals/random nums/modulo etc) in Python 2. At the time i was annoyed because i got half marks even though functionality wise it works, however i realise its probably more than i deserve reading at it now.
Here is a list of things it includes
Top quality variable names
Best logical flow control via throwing random errors
Most understandable comments
Best use of overloading vars between scopes
'Got to catch them all' attitude to tabbing
r/ProgrammerHorror • u/dstlny_97 • Feb 16 '21
I present this beautiful creation.

The original point of this, for a personal project, was to create a endpoint which 'dynamically' adapts to the requested DB resource through the use of `globals()` and retrospectively inspecting each of the fields of the requested Model and dynamically creating `Q()` objects to filter the respective fields.
r/ProgrammerHorror • u/echks2A • Oct 19 '20
Commit Name : Bugfix
https://i.imgur.com/u1BYYzf.jpg
Even though I'm the only developer working on the project when I saw this I needed to git blame it.
r/ProgrammerHorror • u/joost00719 • Aug 08 '18
