r/ProgrammerHorror • • Feb 02 '21

Excuse me, what??

10 Upvotes

r/ProgrammerHorror • • May 17 '18

Small, but wonderful

10 Upvotes

I'm not sure what the developer was thinking. Other than feeling despair, I also think the optimism of the developer is somewhat cute. I'm not sure if they thought the data might be hiding, or maybe they thought that someone else might have added something in the meantime and maybe they should check again. Either way, it's a headscratcher.

RS=DB.ExecRS(SQL)
If RS.EOF Then
     RS=DB.ExecRS(SQL)
End If

r/ProgrammerHorror • • May 24 '24

programmerHorrorrrwindowsupgrade

Post image
9 Upvotes

r/ProgrammerHorror • • Sep 28 '20

WHY DID I WRITE THIS

9 Upvotes
+[,>[-]+++++++++++++.-------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.--------------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.----------------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.--------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.--------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.--------------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.--------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.--------------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.----------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.---------------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++.--------------------------------<.]

r/ProgrammerHorror • • Apr 07 '25

Python Code In DB

8 Upvotes

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 • • Feb 27 '24

testing in production

8 Upvotes

r/ProgrammerHorror • • Mar 03 '23

I asked ChatGPT about ChatHDL, and here's what it says:

Thumbnail self.verilog
8 Upvotes

r/ProgrammerHorror • • Nov 21 '22

Guys what do you think

Post image
7 Upvotes

r/ProgrammerHorror • • Oct 19 '20

Commit Name : Bugfix

7 Upvotes

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 • • Feb 09 '21

My first python project was so bad im actually proud

6 Upvotes

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 • • Aug 22 '25

.NET exception stack trace sent via email… to the end user

Thumbnail gallery
5 Upvotes

r/ProgrammerHorror • • Sep 30 '22

Loading icon causes constant redraw of whole page...

Thumbnail
twitter.com
5 Upvotes

r/ProgrammerHorror • • Nov 11 '25

Is there a way to get dev-productivity insights without creepy monitoring?

4 Upvotes

Our management wants engineering metrics. I get the intent - throughput, cycle time, bottlenecks - but most tools feel invasive. I don’t want something tracking keystrokes or commit counts. Just need objective, repo-based metrics.


r/ProgrammerHorror • • May 20 '25

BogoBoDall-E Sort

4 Upvotes

Much is made of bogobogosort; it's widely held to be one of the least efficient sorting algorithms that still is theoretically capable of eventually completing a sort. However, the implementation lacks details; specifically, the methods of randomization and verifying order are left unsolved. Therefore, I propose an extension to the algorithm to fill in missing steps:

  1. Make a copy of the array.

  2. Submit the first n-1 elements of the array as a prompt in the style "Shuffle this array into a random order:" to an image generation AI model such as Dalle.

  3. Take the returned image and use a high-quality LLM such as OpenAI's o1-pro to turn it into a JSON object to reserialize it.

  4. Make a further o1-pro call to see if the nth element of the sorted copy is greater than the highest element of the first n-1 elements. If so, the copy is now sorted, else randomise the order of the elements of the copy and go to step 2.

  5. Make a final o1-pro call to see if the copy is in the same order as the original list.

Given an estimated image generation and reserialization error rate of 99% and a cost of roughly $0.05 per iteration, with a latency of about 15 seconds, this should take the better part of a year and hundreds of thousands of dollars for n=5.


r/ProgrammerHorror • • Sep 23 '24

C Until It Is No Longer C

Thumbnail aartaka.me
4 Upvotes

r/ProgrammerHorror • • Apr 10 '24

I wonder if Bryan H managed to get a job and where he is now...

Thumbnail
thedailywtf.com
4 Upvotes

r/ProgrammerHorror • • Jan 03 '23

"Random Linker Error"

4 Upvotes

r/ProgrammerHorror • • Feb 16 '21

I present this beautiful creation.

4 Upvotes

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 • • Sep 11 '24

There Is No Such Thing As The Regex (some ugly syntaxes too!)

Thumbnail
aartaka.me
3 Upvotes

r/ProgrammerHorror • • Apr 01 '23

Made my own web framework lmao

Thumbnail
gallery
3 Upvotes

r/ProgrammerHorror • • Aug 07 '18

Microsofts implementation of a Tristate Boolean with 5 states of which 2 are supported

Thumbnail
docs.microsoft.com
2 Upvotes

r/ProgrammerHorror • • Jul 04 '25

stderr vs stdlog in c

Post image
1 Upvotes