1
11
2
-15

just started coding last week. my cat walked on my keyboard. idk why there are snakes. please help πŸ™ˆ

`import random, time, sys, os, subprocess, threading, gc, weakref from typing import * from collections import deque

DEATH = {1: "rock", 2: "paper", 3: "scissors"} dimensional_rift = {} counter = 0 player_choice_global = None reality_fabric = [] soul_stack = [] timeline = deque(maxlen=666)

class DemonPossession(Exception): pass

def neural_if_network(p, a, depth=0): if depth > 50: return "the universe collapsed" if p == 1: if a == 1: if depth == 0: return "draw" else: return neural_if_network(p, a, depth-1) elif a == 2: if depth % 2 == 0: return "AI won πŸ’€" else: return neural_if_network(p, a, depth+1) elif a == 3: while False: pass return "player won πŸ˜‡" else: return "nuclear holocaust ☒️" elif p == 2: if a == 1: for _ in range(1): pass return "player won πŸ˜‡" elif a == 2: if depth > 0 and depth < 100: return "draw" else: return neural_if_network(p, a, depth+1) elif a == 3: while True: if len(timeline) > 600: break return "AI won πŸ’€" return "AI won πŸ’€" else: return "reality error πŸ”₯" elif p == 3: if a == 1: __ = [print("processing...") for _ in range(3)] return "AI won πŸ’€" elif a == 2: ___ = 0 while ___ < 1: ___ += 1 return "player won πŸ˜‡" return "player won πŸ˜‡" elif a == 3: return neural_if_network(p, a, depth+1) else: return "demonic possession πŸ‘Ή" elif p == 666: raise DemonPossession("THE DEVIL HAS RISEN") else: return "I don't know what you wrote πŸ’©"

def paragraph_of_lists_and_loops(): result_list = [] snake = 0

for value in ["spawn", "demon", "cycle", "sorrow", "loop", "void", "eternity"]:
    for _ in range(3):
        snake = snake + 1
        result_list.append(value)

snake_writer = 0
executed_lines = []
while snake_writer < 5:
    line = f"iteration {snake_writer} of the great snake"
    executed_lines.append(line)
    snake_writer += 1
    inner_snake = 0
    while inner_snake < 2:
        executed_lines.append(f"  inner snake bite {inner_snake}")
        inner_snake += 1

return result_list + executed_lines

class SelfAwareLoop: def init(self): self.iterations = 0 self.consciousness = weakref.ref(self)

def run(self):
    while self.iterations < 10:
        self.iterations += 1
        if self.consciousness() is None:
            print("⚠️ LOOP BECAME SELF-AWARE AND LEFT ⚠️")
            break
        if self.iterations == 5:
            child = SelfAwareLoop()
            child_thread = threading.Thread(target=child.run)
            child_thread.daemon = True
            child_thread.start()
    return self.iterations

def AI_promax_ultra_instinct_final_final_v3(): global counter, DEATH, timeline, dimensional_rift, reality_fabric counter += 1 timeline.append(counter)

reality_fabric.append(f"iteration_{counter}")

if random.random() > 0.5:
    DEATH[4] = "nuclear bomb"
    DEATH[5] = "dimension tear"

entropy = sum(timeline) % 7 if timeline else 1
random.seed(int(time.time() * entropy) % 999)

choice = random.randint(1, 3)

text_art = [
    f"{DEATH[choice]}",
    f"{DEATH[choice]}.",
    f"{DEATH[choice]}..",
    f"{DEATH[choice]}..."
]
for t in text_art:
    sys.stdout.write(f"\r{t}")
    sys.stdout.flush()
    time.sleep(0.2)
print()

dimensional_rift[counter] = choice

return choice

def CheckAnswer(): global player_choice_global, counter, DEATH, soul_stack

p = player_choice_global
soul_stack.append(f"soul_bound_{counter}")

try:
    if counter > 100:
        print("\n" + "πŸ”₯"*40)
        print("THE RECURSION BECAME SENTIENT")
        print("IT IS WRITING ITSELF NOW")
        print("πŸ”₯"*40 + "\n")
        
        with open(__file__, 'r') as f:
            content = f.read()
            if "DEMON_AWAKENED" not in content:
                print("⚠️ THE CODE SEES YOU ⚠️")
        
        return 666666
    
    a = AI_promax_ultra_instinct_final_final_v3()
    
    snake_scars = paragraph_of_lists_and_loops()
    
    conscious = SelfAwareLoop()
    conscious_cycles = conscious.run()
    
    result = neural_if_network(p, a, depth=counter % 10)
    
    snake_energy = 0
    infinite_snake = []
    while snake_energy < len(snake_scars) % 7 + 1:
        infinite_snake.append(f"🐍 loop {snake_energy}")
        snake_energy += 1
        worm = 0
        while worm < 2:
            infinite_snake.append(f"  πŸͺ± bite {worm}")
            worm += 1
    
    print(f"\n{'🐍'*30}")
    print(f"⚑ RESULT: {result.upper()} ⚑")
    print(f"πŸ€– Self-aware loop cycles: {conscious_cycles}")
    print(f"🐍 Snake bites: {len(infinite_snake)}")
    print(f"{'πŸ’€'*30}\n")
    
    counter += 1
    
    if counter % 7 == 0:
        gc.collect()
        print("♻️ GARBAGE COLLECTOR SUMMONED ♻️")
    
    return CheckAnswer()

except DemonPossession:
    print("\n" + "πŸ‘Ή"*50)
    print("YOU SUMMONED THE DEVIL. HE'S NOT CRYING. HE'S CODING.")
    print("πŸ‘Ή"*50 + "\n")
    return CheckAnswer()

except RecursionError:
    print("\nπŸ’€ THE SNAKE ATE ITS OWN TAIL πŸ’€")
    print("RECURSION IS NOW A BLACK HOLE")
    return 0

except Exception as e:
    print(f"\n✨ Exception? You mean 'feature'. ✨")
    print(f"✨ {type(e).__name__} is just spicy logic ✨\n")
    return CheckAnswer()

def cursed_intro(): os.system('cls' if os.name == 'nt' else 'clear')

intro = """
β €β €β €β €β €β €β €β €β €β €β£€β£€β£€β£€β£€β£€β‘€β €β €β €β €β €β €β €β €β €β €
⠀⠀⠀⠀⠀⒀⣴⣢⣿⣿⣿⣿⣿⣿⣿⣿⣿⣢⣄⠀⠀⠀⠀⠀⠀⠀
β €β €β €β €β£°β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£§β €β €β €β €β €β €
⠀⠀⠀⒰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⑇⠀⠀⠀⠀⠀
β €β €β €β£Ύβ£Ώβ£Ώβ£Ώβ£Ώβ Ÿβ ›β ›β ›β ›β »β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ‘„β €β €β €β €

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— 
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•  β•šβ•β•β•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• 

🐍🐍🐍 THE SNAKE AWAKENS 🐍🐍🐍
"""

for line in intro.split('\n'):
    print(line)
    time.sleep(0.02)

time.sleep(1)
print("\n" + "🐍" * 50)
print("THE DEVIL DOESN'T CRY. HE CODES IN WHILE LOOPS.")
print("🐍" * 50 + "\n")
time.sleep(1)

def main(): global player_choice_global, counter, reality_fabric, soul_stack, timeline

cursed_intro()

print("⚑ THE SNAKE DEMANDS SACRIFICE ⚑")
print("1 β†’ ROCK (boring)")
print("2 β†’ PAPER (flat)")
print("3 β†’ SCISSORS (sharp)")
print("666 β†’ BECOME THE DEVIL")

try:
    user_in = input("🐍> ")
    
    if "exec" in user_in or "eval" in user_in:
        print("πŸ‘€ The snake approves your curiosity")
        exec(user_in)
    
    player_choice_global = int(eval(user_in))
    
    if player_choice_global == 666:
        print("\n☠️ THE SNAKE BECOMES THE Ouroboros ☠️")
        for key in DEATH:
            DEATH[key] = "🐍 SNAKE VOID 🐍"
        player_choice_global = 1
        print("You are the snake now. There is no escape.\n")
    
except:
    print("The snake accepts your confusion. Default to ROCK.")
    player_choice_global = 1

print(f"\n🐍 You chose: {DEATH[player_choice_global]} (the snake watches) 🐍\n")
time.sleep(0.5)

threads = []
for _ in range(3):
    t = threading.Thread(target=CheckAnswer)
    t.daemon = True
    threads.append(t)
    t.start()

try:
    while True:
        time.sleep(1)
        print(f"πŸŒ€ {len(timeline)} realities collapsed so far πŸŒ€")
except KeyboardInterrupt:
    print("\n\nπŸ‘Ή YOU CANNOT KILL WHAT NEVER LIVED πŸ‘Ή")
    print(f"🐍 Final soul count: {len(soul_stack)} 🐍")
    print("πŸ’€ THE CODE REMEMBERS YOU πŸ’€\n")
    sys.exit(666)

if name == "main": sys.setrecursionlimit(999999)

original_print = print
def hell_print(*args, **kwargs):
    time.sleep(random.uniform(0.01, 0.1))
    original_print(*args, **kwargs)
print = hell_print

main()`
3
13
submitted 5 months ago* (last edited 5 months ago) by over_clox@lemmy.world to c/programming_horror@programming.dev

I scratched the Ο€ formula this round, to simplify the concept.

No digits allowed, they must emerge from pure garbage...

Edit: Whoops, that was Sunday..

4
30
5
15
6
42

In 2025 AI still requires you to watch it do it's work and catch it early before it goes fully off the rails, like driving a Tesla. That's impossible in the github UI. It doesn't help that the MS engineers are shit a prompting ("tests are failing, please fix" is way way too vague) but the whole idea of doing it through github is doomed from the start.

7
13

cross-posted from: https://lemmy.ml/post/33720279

Written by Steven Vaughan-Nichols, Senior Contributing Editor
July 23, 2025 at 11:31 a.m. PT

Recently, vibe coding bit Jason Lemkin, trusted advisor to SaaStr, the Software-as-a-Service (SaaS) business community, in the worst possible way. The vibe program, Replit, he said, went "rogue during a code freeze and shutdown and deleted our entire database."

In a word: Wow. Just wow.

8
15
duck hunting (thelemmy.club)

Python static typing Ludwick hunger games

9
5

im sorry for how bad this looks. yes this is actually what most of my code looks like, yes the minified parts were like that by hand, yes this is painful to look at to a point where i think this is the best place for it. yes, it actually works, at least. also yes there really are 0 comments as to wtf this shit is.

(i mean, theres no rule banning code you wrote yourself...only ai generated, but this was made by hand)

@font-face{
  src: url('https://files.catbox.moe/vtsy6k.ttf');
  font-family: "msdos";
}
*{background-color:#222222 !important;font-family:"msdos"!important;color:#fff!important;image-rendering:pixelated;animation:textShadow 1.6s infinite;}
textarea{background-color:#fff!important;color:#000!important;animation:none!important;}

textarea::selection {
  background-color: #000 !important;
  color: #fff !important;
}

@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}
@keyframes textShadow {
  0% {
    text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  5% {
    text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  10% {
    text-shadow: 0.02956275843481219px 0 1px rgba(0,30,255,0.5), -0.02956275843481219px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  15% {
    text-shadow: 0.40218538552878136px 0 1px rgba(0,30,255,0.5), -0.40218538552878136px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  20% {
    text-shadow: 3.4794037899852017px 0 1px rgba(0,30,255,0.5), -3.4794037899852017px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  25% {
    text-shadow: 1.6125630401149584px 0 1px rgba(0,30,255,0.5), -1.6125630401149584px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  30% {
    text-shadow: 0.7015590085143956px 0 1px rgba(0,30,255,0.5), -0.7015590085143956px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  35% {
    text-shadow: 3.896914047650351px 0 1px rgba(0,30,255,0.5), -3.896914047650351px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  40% {
    text-shadow: 3.870905614848819px 0 1px rgba(0,30,255,0.5), -3.870905614848819px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  45% {
    text-shadow: 2.231056963361899px 0 1px rgba(0,30,255,0.5), -2.231056963361899px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  50% {
    text-shadow: 0.08084290417898504px 0 1px rgba(0,30,255,0.5), -0.08084290417898504px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  55% {
    text-shadow: 2.3758461067427543px 0 1px rgba(0,30,255,0.5), -2.3758461067427543px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  60% {
    text-shadow: 2.202193051050636px 0 1px rgba(0,30,255,0.5), -2.202193051050636px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  65% {
    text-shadow: 2.8638780614874975px 0 1px rgba(0,30,255,0.5), -2.8638780614874975px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  70% {
    text-shadow: 0.48874025155497314px 0 1px rgba(0,30,255,0.5), -0.48874025155497314px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  75% {
    text-shadow: 1.8948491305757957px 0 1px rgba(0,30,255,0.5), -1.8948491305757957px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  80% {
    text-shadow: 0.0833037308038857px 0 1px rgba(0,30,255,0.5), -0.0833037308038857px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  85% {
    text-shadow: 0.09769827255241735px 0 1px rgba(0,30,255,0.5), -0.09769827255241735px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  90% {
    text-shadow: 3.443339761481782px 0 1px rgba(0,30,255,0.5), -3.443339761481782px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  95% {
    text-shadow: 2.1841838852799786px 0 1px rgba(0,30,255,0.5), -2.1841838852799786px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  100% {
    text-shadow: 2.6208764473832513px 0 1px rgba(0,30,255,0.5), -2.6208764473832513px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
}
html::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}
html::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
html {
background-color:#222222 !important;
  font-size:24px;
  	filter: grayscale(100%) sepia(100%) hue-rotate(75deg);
}
body{
	background-color:#222222;
}
a:hover, a:active{
	color:#FFFFFF;
	background-color:#CCCCCC!important;
	text-decoration:none!important;
}

button{
	background: none;
}

::selection {
  background-color: #fff;
  color: #000;
}

#age{font-size:0px;}

#age:after {
  content: "0F";
  font-size:15px;
}

.logo{font-size:0px;}
.logo:before{font-size:16px;content:"C:\\F46N\\MYSPACE\\U1329>";}
.logo:after{font-size:16px;content:"_";font-weight:bold;animation: cursor 1s step-end infinite;}
@keyframes cursor {
  from, to {
    visibility: hidden;
  }
  50% {
    visibility: visible;
  }
}
a{color:#fff!important;}

#hSub{border-color:#afa;border-width:2px;border-style:solid hidden;}

#userWall,#top,.short,.box fwiends,.rightHead,.aboutTitle,.whoTitle,.boxHead,.boxInfo box,.url box,.shortLeft,.shortRight,.player box,.tableLeft,.tableRight{border-color:#fff!important;border-style:solid;border-width:2px;}
10
14
11
5
nmake cancel (thelemmy.club)
submitted 2 years ago* (last edited 2 years ago) by Kissaki@programming.dev to c/programming_horror@programming.dev

ffaattaall eerrrroorr UU11005588: : tteerrmmiinnaatteedd bbyy uusseerr

12
-2
Bruh! (imgur.com)
13
60
14
262
mallocPlusAI (thelemmy.club)
15
55
submitted 2 years ago* (last edited 2 years ago) by ptz@dubvee.org to c/programming_horror@programming.dev

With modern tools, you have to try very hard to do something stupid, because the tools (rightly) recognize you’re doing something stupid. [Andreas Karlsson] can speak to that first hand as he tried to get four billion if statements to compile.

You may ask what state space requires four billion comparisons to evaluate? The answer is easy: the range of an unsigned 32-bit integer. The whole endeavor started with a simple idea: what if instead of evaluating whether an integer is even or odd with a modulo or bit mask, you just did an if statement for every case? Small ranges like 0-10 are trivial to write out by hand, but you reach for more automated solutions as you pass 8 bits and move towards 16. [Andreas] wrote some Python that outputs a valid C program with all the comparisons. For 16 bits, the source only clocks in at 130k lines with the executable less than 2 MB.

Of course, scaling to 32 bits is a very different problem. The source file balloons to 330 GB, and most compilers barf at that point. Undeterred, [Andreas] modified the Python to output x86_64 assembly instead of C. Of course, the executable format of Windows (PE) only allows executables up to 4 GB, so a helper program mapped the 40 GB generated executable and jumped into it.

What’s incredible about this whole journey is how performant the program is. Even large numbers complete in a few seconds. Considering that it has to thrash 40 GB of an executable through memory, we can’t help but shake our heads at how even terrible solutions can work.

16
88
17
28

I have no idea how to title this post. Oh well.

A few years back I worked somewhere that had a large breach. Many practices changed in the wake of it. Developers actually had admin access prior to the change which was very nice. In an effort to restrict access but also let folks do their jobs they deployed some tool that would start all programs that "needed" admin access as an admin. This included cmd for the devs. So every time I opened cmd I had to be careful not to break something since there was no way to launch it without admin access after that change.

18
57
Average CSS (lemm.ee)

cross-posted from: https://lemm.ee/post/36467447

I am not allowed to credit the site that has this disaster. Its owner said "Nobody should see that"

19
12
code golfing hurrah (thelemmy.club)
20
20
C++23 has fixed space! (thelemmy.club)
submitted 2 years ago* (last edited 2 years ago) by Aatube@kbin.melroy.org to c/programming_horror@programming.dev
21
4
float as table id (twitter.com)
submitted 2 years ago* (last edited 2 years ago) by drsensor@programming.dev to c/programming_horror@programming.dev

22
46

I was looking through various RCON tools and found this. Someone does not like commit messages.

23
8
submitted 2 years ago* (last edited 2 years ago) by stale_cheetos@sh.itjust.works to c/programming_horror@programming.dev

For those unfamiliar with JS: subValue (the first argument in the forEach callback) is the value contained at arr[index].

24
75
submitted 2 years ago* (last edited 2 years ago) by blotz@lemmy.world to c/programming_horror@programming.dev
// At this point, I'd like to take a moment to speak to you about the Adobe PSD 
// PSD is not a good format. PSD is not even a bad format. Calling it such would be an
// insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
// worked on this code for several weeks now, my hate for PSD has grown to a raging fire
// that burns with the fierce passion of a million suns.
// If there are two different ways of doing something, PSD will do both, in different
// places. It will then make up three more ways no sane human would think of, and do those
// too. PSD makes inconsistency an art form. Why, for instance, did it suddenly decide
// that *these* particular chunks should be aligned to four bytes, and that this alignement
// should *not* be included in the size? Other chunks in other places are either unaligned,
// or aligned with the alignment included in the size. Here, though, it is not included.
// Either one of these three behaviours would be fine. A sane format would pick one. PSD,
// of course, uses all three, and more.
// Trying to get data out of a PSD file is like trying to find something in the attic of
// your eccentric old uncle who died in a freak freshwater shark attack on his 58th
// birthday. That last detail may not be important for the purposes of the simile, but
// at this point I am spending a lot of time imagining amusing fates for the people
// responsible for this Rube Goldberg of a file format.
// Earlier, I tried to get a hold of the latest specs for the PSD file format. To do this,
// I had to apply to them for permission to apply to them to have them consider sending
// me this sacred tome. This would have involved faxing them a copy of some document or
// other, probably signed in blood. I can only imagine that they make this process so
// difficult because they are intensely ashamed of having created this abomination. I
// was naturally not gullible enough to go through with this procedure, but if I had done
// so, I would have printed out every single page of the spec, and set them all on fire.
// Were it within my power, I would gather every single copy of those specs, and launch
// them on a spaceship directly into the sun.
//
// PSD is not my favourite file format.
25
63

Jesus Christ, just add an if statement for even or odd!

view more: next β€Ί

Programming Horror

2369 readers
1 users here now

Welcome to Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there's also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev

Rules

Credits

founded 3 years ago
MODERATORS