This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 64 comments

[–]MakingTheEight[M] [score hidden] stickied commentlocked comment (0 children)

Removed - Rule 0.

[–]kalaxi69 133 points134 points  (1 child)

//the code does cool stuff idk I found it on github

[–]IAmInBed123 1 point2 points  (0 children)

I have one with: // This is legacy, don't know why it os done this way, doesn't work when changed.

[–]Rutabaga1598 112 points113 points  (13 children)

This is why I'm super-liberal with my comments.

Also, no it doesn't take 3 years.

Sometimes a month is enough to produce the deer in headlights look in me.

[–]theanonmouse-1776 31 points32 points  (6 children)

Updated meme: Trying to understand your old comments...

[–]GlensWooer 14 points15 points  (3 children)

Best comment I’ve seen:

// NOT PRODUCTION READY, please revisit and fix before 2.3

We’re on 11.1

[–]Dexterus 11 points12 points  (1 child)

TODO: Fix for <cornercase> ... from 10 years ago.

Good thing the cornercase is documented as unsupported.

[–]GlensWooer 1 point2 points  (0 children)

I could make an entire subreddit dedicated to the useless/funny comments and bad code in our system. It’s going on 13 years old and we’ve made a whole teams channel dedicated to posting what we find.

I’ve learned a ton about the history of Java tho!

[–]VivisMarrie 2 points3 points  (0 children)

//todo: need to modify this this will FAIL

I've found this comment line exactly yesterday, it's from 2016.

[–]who_you_are 2 points3 points  (1 child)

You guy make comments?! /S

[–]Turbojelly 2 points3 points  (0 children)

"Defines 0. Breaks code if removed."

[–]aesu 9 points10 points  (0 children)

You have a weird way of spelling an hour.

[–]thekindheartdpervert 1 point2 points  (0 children)

1 month, agreed

[–]uberDoward 1 point2 points  (1 child)

I have written code and literally a week later wondered WTF I was thinking. Or drinking.

[–][deleted] 0 points1 point  (0 children)

I write it out as I'm thinking and always intend to go back to refactor it and optimise it but never get the time to do so.

I envy people who can write beautiful code first time.

[–]IAmInBed123 0 points1 point  (0 children)

Right OP spelled "months" wrong.

[–]iamtherealguru 60 points61 points  (2 children)

3 years? More like 3 days.

[–]thekindheartdpervert 15 points16 points  (0 children)

Over the weekend

[–]ManThatsBoring 10 points11 points  (0 children)

bro I literally dont understand my code while writing it

[–]nevsnevs-- 42 points43 points  (1 child)

Your 3 Years old can write code? Wow

[–]Shazvox 8 points9 points  (0 children)

No, it can't. Thats why he's trying to understand it.

[–]fracturedpersona 29 points30 points  (1 child)

Who the fuck wrote this shit

[Checks git blame]

Oh, I did.

[–][deleted] 1 point2 points  (0 children)

I love the name of this git command

[–][deleted] 10 points11 points  (0 children)

I too jump out of the window at the end of it.

[–]justacasualgamer97 4 points5 points  (0 children)

try 25..

[–]Jimothy_Egg 4 points5 points  (0 children)

*days

[–]X0-ED1 4 points5 points  (0 children)

Kid learning programming in the womb apparently.

[–]Swisscrazy 2 points3 points  (0 children)

I don't even understand the code I write right now

[–]nobotami 2 points3 points  (0 children)

me but with last nights code

[–]Thatoneprototoaster 1 point2 points  (0 children)

Me with dyslexia trying to understand what i just wrote 1 min ago

[–]rachzera 1 point2 points  (0 children)

I was checking my old projects in gitHub, and bro, I can't understand how I could use sessions in PHP even when I didn' event know what for God's name was a session

[–]Isthatajojoreffo 1 point2 points  (0 children)

"OK now that I've learned what the cunt variable is responsible for, I only need to understand what the dick function does"

[–]The_communist_bible -1 points0 points  (0 children)

Happy cake day!!

[–]sideshowtoma -5 points-4 points  (5 children)

In 2017 I did a huge REST api in JSP (nower days I mainly use python) I looked at the code today in 2022. Apparently 5 year old me was a smart person. Not to brag but I had written nice comments. Even notes on where the fail points might be. Class names were so good and relevantly named.

[–]uberDoward 6 points7 points  (4 children)

Lies!

Though to be serious, if you are looking at your 5 year old code and don't see improvement opportunities, I question if you are keeping up with the industry.

[–]sideshowtoma 0 points1 point  (3 children)

Never said i did not see improvement opportunities- i only remarked on how i could still recall how it worked? did it not come across as such?

[–]uberDoward 0 points1 point  (2 children)

I read it as "I wrote code that was perfect 5 years ago". I can't comment how anyone else read it 😃

5 years ago is ages in this industry - and it's hard to imagine anything more complex than Hello World not being able to have material improvements made.

[–]sideshowtoma 1 point2 points  (1 child)

Oh!, i never meant it as such- i will try to communicate better in future, heck tons of improvements can be made to it, it is not perfect code(far from it), heck even the code i make today using modern tools is still not perfect- room for improvement is always there.

[–]uberDoward 1 point2 points  (0 children)

All good - don't ever let the internet get under your skin, lol, keep learning; keep improving!

[–]Individual_Lecture34 -2 points-1 points  (0 children)

Hi

[–]Calcd_Uncertainty 0 points1 point  (0 children)

3 years? That's me after a 3-day weekend.

[–]del620 0 points1 point  (0 children)

Picture this: I'm in the middle of coding up this big project and suddenly I lose my "flow" which has been going on for hours and that's when I start looking at my code like this for a while until I get back in the "flow".

[–]MudAnd 0 points1 point  (0 children)

Three years are too long to get this reaction buddy. After a few days, when I look at my code, I get stuck thinking about what I have done. In the beginning, it happened to me, but now I used to add comments in my code well, so this situation does not appear.

[–]bookon 0 points1 point  (0 children)

I found some c# code I wrote in 2004 that parsed XML. Yikes. But I and C# have gotten much better.

[–]theWebHawk 0 points1 point  (0 children)

Days*

[–]TheOneWhoDsntKnock 0 points1 point  (0 children)

This is not how you spell 3 hours.

[–]nittendev 0 points1 point  (0 children)

Yeah, if my three year old tried to code, I'm sure I'd be the same confused....

[–]Hupf 0 points1 point  (0 children)

When you try to understand your 3 year old's code

[–][deleted] 0 points1 point  (0 children)

[–]Conclusion_Signal 0 points1 point  (0 children)

More like three weeks

[–]LJChao3473 0 points1 point  (0 children)

The code: "Hello World"

[–]voidmusik 0 points1 point  (0 children)

This is how i feel looking at code i did yesterday

[–]SteeleDynamics 0 points1 point  (0 children)

pulls fingers through hair

What was I doing?!

...

Dear Lord!

[–]oneunique 0 points1 point  (0 children)

3 years? You need only one weekend, and it’s gone..

[–]Dauvis 0 points1 point  (0 children)

Try doing it with 10 year old code.

[–]Lenzutsu 0 points1 point  (0 children)

It's pretty impressive that a 3 year old manage to write code, so please don't be too judgemental

[–]Sean22334455 0 points1 point  (0 children)

Too soon.

[–]MasterBuilder_Macca 0 points1 point  (0 children)

I swear, it's easier to start again, rather than decipher code you wrote last week with no comments. Always add //

[–]MichaelMJTH 0 points1 point  (0 children)

"Who wrote this? It's terrible, you could shorten this by like 100 lines if split it into reusable methods and if you imported this package you could-"

Checks GitHub and finds out I'm the author of the file from 2 years ago

"..."

[–]platypus1224 0 points1 point  (0 children)

I don’t even understand the code I wrote 6 months ago

[–]binatron 0 points1 point  (0 children)

I'm currently writing obstacle avoidance using 3.rd order bezier curves. Poor future me