Developer said the map had O(0) complexity and a simple if-else would have O(2) complexity...Feb 2025 ⋅ MC2BP ⋅ r/programminghorror ⋅ #2 #0
I tried doing the Ray tracer in a weekend and after 2 days debugging I found this.Jun 2020 ⋅ TinBryn ⋅ r/programminghorror ⋅ #2
I guess I'll just put a '2' at the end of the password then?Jan 2020 ⋅ parkotron ⋅ r/programminghorror ⋅ #2
Horror #2: Connect to the DB after a random number of seconds.Jun 2020 ⋅ Robin_the_Sprite ⋅ r/programminghorror ⋅ #2 #1
Robot Season 4 that has tons of errors and print statements for versions 2 and 3.Jun 2021 ⋅ BRENNEJM ⋅ r/programminghorror ⋅ #3 #2 #4
activate_dialog_options(2, 6, 22, 0, 0);Jan 2025 ⋅ MetalApprehensive21 ⋅ r/programminghorror ⋅ #2,-6,-22,-0,-0 #22 #6 #2 #0
I have to call myself out; this has been in production for 2 yearsNov 2019 ⋅ lackluster-name-here ⋅ r/programminghorror ⋅ #2
I just found a Y2K bug in one of our unused programs at work.Jun 2019 ⋅ ajshell1 ⋅ r/programminghorror ⋅ #2
You go on a 2 day holiday with everything working fine...Jun 2018 ⋅ ForgetTheRuralJuror ⋅ r/programminghorror ⋅ #2
OOP gone crazy. 2 Heap allocations to compare 2 ints, seems legitJan 2019 ⋅ BananyaDev ⋅ r/programminghorror ⋅ #2
My first attempt at programming & Unity 2+ years ago.Sep 2018 ⋅ ChaosDevilDragon ⋅ r/programminghorror ⋅ #700 #2
Found inside my compiler I've been writing for about 2 yearsMay 2023 ⋅ KingJellyfishII ⋅ r/programminghorror
My Google Sheets code to convert hex 2 string. I could not find a better way to do this.Jun 2021 ⋅ Eabapa ⋅ r/programminghorror
My amazing solution to Advent of Code Day 6 part 2 (this is checking for any duplicate characters inDec 2022 ⋅ iamghostling ⋅ r/programminghorror
My Google Sheets code to convert hex 2 string. I could not find a better way to do this.Dec 2022 ⋅ RandyHubbard45 ⋅ r/programminghorror
Determines if rating is 1, 2, or 3. Being taught in an introduction to java course.Feb 2020 ⋅ sirnoodlenodII ⋅ r/programminghorror ⋅ #3 #2 #1
This code that I wrote 2 years ago where I was using a for loop to to find the relational data of eachJun 2022 ⋅ vincent-vega10 ⋅ r/programminghorror
2 years have passed, and this still manages to be the worst code that I've ever written (said returnMay 2021 ⋅ chino_casino ⋅ r/programminghorror
I just spent the last 2 hours in Python trying to draw a line, before realising I'd just accidentallyApr 2022 ⋅ LordMagusar ⋅ r/programminghorror
Obfuscation Driven Development - Chapter 2: The more you look at it, the less it makes sense...Oct 2023 ⋅ Fargeol ⋅ r/programminghorror
If you’re a beginner and you think your code is bad, look at mine from 2 years ago when I startedFeb 2022 ⋅ Snowberry760 ⋅ r/programminghorror ⋅ #m
Help your colleagues they said, it'll be easy they said #2Mar 2019 ⋅ CraZy_LegenD ⋅ r/programminghorror ⋅ #2
assignment for my first semester of uni was to program an algorithm that determined whether (and how) 2Feb 2023 ⋅ goodwarrior12345 ⋅ r/programminghorror ⋅ #notice-the-minimap #and-how
This absolute gem I stumbled upon today while refactoring a 2 year old React codebase.Aug 2019 ⋅ harkej ⋅ r/programminghorror
Refactored the code to make it more readable (The code in the left had 2-3 more nested ifs)Dec 2019 ⋅ ghsatpute ⋅ r/programminghorror ⋅ #m #The-code-in-the-left-had-2-3-more-nested-ifs #3
From a beginner Unity 2D tutorial. Two ifs with the same body? The more, the merrier!Feb 2020 ⋅ SuspiciousScript ⋅ r/programminghorror ⋅ #2