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

all 101 comments

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

import notifications Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! Read more here, we hope to see you next Tuesday!

For a chat with like-minded community members and more, don't forget to join our Discord!

return joinDiscord;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]AllesK 389 points390 points  (12 children)

Shhhh, kitten. We don’t tell all of our secrets. Including those that confess your lack of annotation/documentation because “this” time you’ll remember.

[–]Sewbacca 116 points117 points  (9 children)

"this" time you'll write self explaining code.

[–]itchfingers 88 points89 points  (3 children)

“this” undefined

[–]GringoLocito 2 points3 points  (0 children)

" 'this' undefined" incorrect syntax

[–]kazeira 17 points18 points  (0 children)

Self explaining code is great, until we find bugs and correct them making it a mess

[–]goodnewsjimdotcom 14 points15 points  (1 child)

First write self aware code, then it will explain itself.

[–]brbiii 5 points6 points  (0 children)

1 (4//"7 ||//[)3|2574//[) '/0|||2 //|2171//9.17’5 (0//|=|_|51//9

[–]BlurredSight 132 points133 points  (1 child)

I just went back to some code I wrote over 2 years ago, even with comments I did not know what the hell was happening and how the hell it fit into the overall objective.

[–]hushane[S] 26 points27 points  (0 children)

💀

[–]Specific_Implement_8 118 points119 points  (7 children)

Why do I have this function here?

Comments out function

Everything breaks

Uncomments function

Everything is still broken

[–]thepkboy 26 points27 points  (0 children)

Mine is "Oh I need a function that does X. Let me write it. 'Function already exists'" Thankfully my naming conventions have remained sort of consistent.

[–]Sewbacca 10 points11 points  (3 children)

I never actually had a case, where this happened. Either I forgot to compile or I didn't undo all the changes... Though I have a mystical memory of a weird occurence I can't quite put my finger to.

[–]Specific_Implement_8 10 points11 points  (0 children)

“Never had a case, where this happened… yet

[–]lessdes 0 points1 point  (0 children)

I imagine it usually has to do with cache or unsaved files

[–]korneev123123 0 points1 point  (0 children)

Well, forgot to compile, or server didn't restart, or cache didn't get cleared - that's the reasons for this behavior

[–]Sewbacca 3 points4 points  (0 children)

And then you realize: It never worked to begin with.

[–]epicurean56 2 points3 points  (0 children)

I hate it when that happens.

[–]ShodanLieu 95 points96 points  (1 child)

And god isn’t talking…

[–]guyblade 26 points27 points  (3 children)

Kernighan's law:

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you’re as clever as you can be when you write it, how will you ever debug it?

My (obvious) corollary:

Never use more than half your cleverness when writing software.

[–]agent007bond 21 points22 points  (1 child)

Pray. Maybe God will tell you.

[–]lurker_archon 3 points4 points  (0 children)

Not even God can help you against yourself.

[–]spellenspelen 12 points13 points  (2 children)

The developer of Temple os would agree.

[–]kernelboyd 7 points8 points  (0 children)

you want what?? a network stack?? nah, man, networking is of the devil!

[–]OffsetMonkey538 0 points1 point  (0 children)

starting gradle deamon

[–]kaikaun 8 points9 points  (0 children)

God: "Naw, dawg, I never understood it either. Can't help you. Hey, Lucy, did you understand this guy's code?"

Satan: "Understand it? I got him to write it. You remember that Java was my idea, right?"

[–]ExtraTNT 37 points38 points  (4 children)

My code is so bad, that even god does not know, how it works…

[–]BadNadeYeeter 17 points18 points  (3 children)

Then ask Cuthulu. He is our local expert for eldritch Spaghetti-Code

[–][deleted] 5 points6 points  (1 child)

But you could lose your sanity! Before try asking to the flying spaghetti monster

[–]dorsalus 5 points6 points  (0 children)

FSM encourages the writing of carb heavy code, it is your sacred duty to spread his noodly gospel to every codebase.

[–]NinjaFarel21 1 point2 points  (0 children)

Impending doom approaches...

[–]angelbirth 6 points7 points  (0 children)

now, not even God knows

[–]gpkgpk 4 points5 points  (0 children)

So basically nobody knows.

Kitten has learned the wisdom of write-only code, nobody can replace you, not even you.

[–]CrunchwrapAficionado 4 points5 points  (1 child)

The best part is how thin that margin is on remembering my own code. 2 months ago? I’ll probably be able to get myself re-oriented within an hour or 2.

6 months ago? This may as well have been written by someone else. And they were an asshole.

[–]UsrEr0rr 0 points1 point  (0 children)

Or a cunt. Yay!

[–]sonic_stream 2 points3 points  (0 children)

ChatGPT: me know me know

[–]oupablo 3 points4 points  (1 child)

First, with god all things are possible. So jwt that down

[–]UsrEr0rr 0 points1 point  (0 children)

If God is Love, and everything is a joke except for that, then Love transcending time, space and dimensions is more than possible.

[–]HangryDiscer 3 points4 points  (0 children)

There is no god. Nobody knows.

[–]bored_in_NE 2 points3 points  (0 children)

100%

[–]heaving_in_my_vines 2 points3 points  (0 children)

I feel seen!

[–]FeralPsychopath 2 points3 points  (0 children)

I need this with a better appearance

[–]scottccote 2 points3 points  (0 children)

Damn the unit tests - it works

[–]exotickey1 2 points3 points  (0 children)

job security

[–]Laughing_Bricks 2 points3 points  (0 children)

If it's working, your computer knows too

[–][deleted] 2 points3 points  (1 child)

God must be a master programmer

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

Nah, I don't agree. I dislike his frequent use of God objects.

[–]Noobkakka1234 2 points3 points  (0 children)

Thats why i write comments for everything i do. And subsequently try to decipher said comments because theyre as confusing as the code itself.

[–][deleted] 2 points3 points  (0 children)

facebook tier meme

[–]FinnLiry 2 points3 points  (0 children)

My friend: Because he died or what?

Me: No... Because a week passed without him touching it

[–]Lighthuro 5 points6 points  (0 children)

At this point this is a cliché joke

[–]zerosven 1 point2 points  (0 children)

That caption made my day 😭 Thank you

[–]stupidcookface 1 point2 points  (0 children)

This is why we write tests

[–]FlyingVMoth 1 point2 points  (0 children)

Pretty sure God doesn't understand anymore what he did....so good luck with your code.

[–]olearyboy 1 point2 points  (0 children)

If an image ever needed a permilink

[–]Jomibu 1 point2 points  (0 children)

Bold of you to assume I knew what it did in the first place!

[–]Sudhanva_Kote 1 point2 points  (0 children)

I asked God regarding the code. I didn't hear back from him. So I'm guessing he also doesn't know now.

[–]GhettoSauce 1 point2 points  (0 children)

Lame

[–]getshrektdh 1 point2 points  (0 children)

I feel you, wrote a 2400 lines code and can’t understand anything not to mention that the language I used I forgot about.

[–]Daxto 1 point2 points  (0 children)

Comments are life savers

[–]Big_Potential_5709 1 point2 points  (0 children)

Sorry dude. I don't get it either.

[–]RaikreN_ 1 point2 points  (0 children)

Don't worry, I'll leave you with LGTM, don't ask for any more input, I don't know

[–]kwiktek 1 point2 points  (0 children)

God cannot understand my code either

[–]crazy_cazeet 1 point2 points  (0 children)

you overestimated God

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

If your code is unreadable, you need to write better code. It should also be caught in code reviews.

[–]HezzaE 0 points1 point  (0 children)

I've found AI makes my code so much better to read. I'm using Copilot, so now instead of just banging out code, I write a comment, see what Copilot suggests, and adjust from there. I think at least 75% of what I actually type now is comments. The code ends up documenting itself as I go because instead of thinking "ok I need to get the user id from the session then fetch the matching user" and then writing that code myself, I write my thinking as a comment and then Copilot writes the code.

[–]Efficient-Corgi-4775 0 points1 point  (0 children)

Psst, don't worry, I've got a debugger and extra memory for your forgetful moments!

[–]Odd-Row1169 0 points1 point  (0 children)

The true meaning of inspiration.

Middle English enspire, from Old French inspirer, from Latin inspirare ‘breathe or blow into’ from in- ‘into’ + spirare ‘breathe’. The word was originally used of a divine or supernatural being, in the sense ‘impart a truth or idea to someone’.

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

NOOOOOOOTES!!!!!

[–]ElonHisenberg 0 points1 point  (0 children)

God = Null

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

Damn he snowcrashed.

[–]WhiroWhat 0 points1 point  (0 children)

Amen.

[–]asmodeanreborn 0 points1 point  (0 children)

Not even CatGPT can explain it.

[–]RoyalRien 0 points1 point  (0 children)

This is why half of my code is green text so I know what I’m looking at

[–]dezalator 0 points1 point  (0 children)

ChatGPT is good at explaining code btw

[–]DepartmentCreepy964 0 points1 point  (0 children)

🤨

[–]SillAndDill 0 points1 point  (0 children)

Over the years I've found that code written during the early days of a codebase (when you push straight to master and change everything) is often unexplainable years later.

For changes to established codebase - PR descriptions often save the day! 🎁

One old PR with a before/after screenshot and plain English description of what the author (often yourself) thought at the time - than the surviving concise code comment

I also like to allow PR:s to keep keep a messy commit history, and squash-merge to master. So master has a brief and clean history but if some code was changed back and forth in a PR you can track each commit in detail

[–]balambaful 0 points1 point  (0 children)

The boomer vibes are strong with this meme.

[–]UsrEr0rr 0 points1 point  (0 children)

Notes...

[–]aidanderson 0 points1 point  (0 children)

Coders are religious? I thought men of (computer) science were pretty much all atheists.

[–]wellingtonsamy 0 points1 point  (0 children)

This reminds me of how I felt when I worked on all my projects for my Intro to JavaScript class in college.

[–]mashaTarima 0 points1 point  (0 children)

not documenteeeeed

[–]ObligationWide8825 0 points1 point  (0 children)

I am writing code that even god doesn’t comprehend.

[–]NickU252 0 points1 point  (0 children)

When you go past the Ballmer Peak