ProgrammerHumor

fromVibeToObliviousCoding

fromVibeToObliviousCoding
https://i.redd.it/id6e1y0qmmdf1.png
Reddit

Discussion

Landen-Saturday87

The trick is not to touch it again until you advanced to be a senior dev. And then it‘s another juniors problem

1 day ago
thonor111

def function_doing_y(parameter_a, parameter_b)

I wonder what my code is doing. Might it be doing y and using a and b for that?

Naaah, impossible, but because I haven’t added the comment

computed y(a,b)

I guess I will never know what it does

1 day ago
anengineerandacat
:cs::j::kt::lua::rust::ts:

Eh it happens, it's even funnier when your reviewing some code with a peer and your like "Who did this?!" and git blame points the finger back to you. Very humbling moment.

22 hours ago
Fissionmaild

//Howdy future me

1 day ago
tbhaxor OP

This is present me

20 hours ago
Altruistic-Tiger-293

Amateurs

22 hours ago
HexKernelZero

Right... I don't understand why you wouldn't want to have all your functions and logic pathways somewhat memorized. Maybe this is some programmer form of self depreciation BDSM kink I don't understand. 🤔

22 hours ago
Yousoko1

Dude, I’ve got 20k files and hundreds of thousands of lines of code. I’ve touched at least 40% of it. And the moment I finish a dev cycle, the first thing I do is flush it all the fuck out of my head. Because I don’t need that info anymore — and there’s just way too much of it.

18 hours ago
mrgk21

That's what I said to my team lead today morning when he asked me what I coded 2 weeks ago

And yes he did ask the question again

21 hours ago
conundorum

Later...

Jr. Dev: "Help! I forgot what my code does!"

Sr. Dev: "No comment."

18 hours ago
Bldyknuckles

The biggest lie ever told is self documenting code.

23 hours ago
TheMinus

Fun thing, event though I write comments a lot, problems usually occur in the places not covered by comments. So they are useless anyway.

23 hours ago
Self_Aware_Idiot_9

Wdym I need to write documentation?

21 hours ago
MidnightPrestigious9

For my serious answer:

  1. function names handle_keypress... // like no shit     ...
  2. comments ``` // ======= KEYBOARD SHORTCUTS ======= ...

// ======= ACTUAL TEXT INPUT ======= ... ``` 3. cleaning up after yourself and not making a convoluted mess (which often happens right after I solve some problem)

...works well enough for me.

Also, I personally, find that code is more skimmable when aligned vertically (works only sometimes and not that impactful)

21 hours ago
kbielefe

I thought most people save their code to disk so they can read it later.

8 hours ago
BigTinyTempo

Step 1: “Who wrote this steaming pile of crap!!!?”

Step 2: git blame

Step 3: “Oh, it was me”

6 hours ago
Such-Vegetable2460

This happens.....but having diagrams on the source code documentation will help with recognition of old code...or keep the files and functions neat with good name choosing :)

1 hour ago
redditorstearss

Hell I'll be in the middle of writing a function and forget what it does

58 minutes ago
Plenty-Hat-846

just gotta write better readable code

57 minutes ago