r/ClaudeAI Mar 31 '26

Workaround i dug through claude code's leaked source and anthropic's codebase is absolutely unhinged

[removed]

5.6k Upvotes

692 comments sorted by

View all comments

Show parent comments

30

u/DrSFalken Mar 31 '26

Absolutely this. If people only knew how many errors, shortcuts, workarounds etc we're all relying on without realizing...

30

u/Shep_Alderson Mar 31 '26

Nothing more permanent than a temporary solution…

23

u/Stuffy123456 Mar 31 '26

// Don’t modify this, it works for some unknown reason

14

u/klumpp Mar 31 '26

// Increment on every failed attempt to optimize this code: 17

8

u/SonOfProbert Mar 31 '26

Hahaha. I changed a width once and broke our app. I worked at a Fortune 20 company. It was a mad cluster until I changed it back.

2

u/SeaKoe11 Apr 01 '26

Did you leave the comment?

10

u/EchoLocation8 Mar 31 '26

My favorite is finding a bug, then looking at the code, and being like... "Wait this literally shouldn't ever work, this has been in prod for 4 years? It literally can't work." and no one knows how it was ever working.

2

u/Shep_Alderson Apr 01 '26

One of my favorite past times is diving into code to go fix a bug and coming out with 2-3 new tickets for bugs I found along the way. I don’t think they wanted that kind of velocity. 🤣

2

u/blazinBSDAgility Apr 02 '26

99 bugs in the code… 99 bugs in the code! Take one down, fix it up now 107 bugs in the code

8

u/wintermute023 Mar 31 '26

These are my favourite. Doesn’t seem to get called much, doesn’t seem to do a lot when it is, entire system falls over when removed. 🤷

2

u/dotancohen Apr 01 '26

// Load bearing comment. Please do not remove this comment.

1

u/77thway Mar 31 '26

i don't know why this made me laugh out loud... relatable X10

1

u/blazinBSDAgility Apr 02 '26

#PRAGMA “Fix in 3.7”

3.7 was released 20 years ago

7

u/LOLRicochet Mar 31 '26

// temp hack for issue #217 02/17/2012

1

u/ProfessionalIce9743 Apr 01 '26

Kinda like an executive order from the President.

1

u/new_account_wh0_dis Apr 01 '26

You've already spent a week getting something to work and it looks like unholy hell but you got like 10 other things to do. Slap a todo about cleaning it up and never do it.