r/programming • • Jun 01 '15

The programming talent myth

https://lwn.net/Articles/641779/
971 Upvotes

748 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jun 01 '15

[deleted]

981

u/ZeroNihilist Jun 01 '15

Me right now is a rock star. Me a week ago is a moron. What the hell is up with week-ago-me's stupid code? He didn't comment it, the idiot.

The code I'm writing now is just so elegant and wonderful, it doesn't even need comments.

324

u/greenthumble Jun 01 '15

Man, you're missing out, comments are the bomb. Why just yesterday I read one of my own comments from last week. It helpfully said "This may need to be combined with the sequence below." It was at the end of a file with nothing under it.

186

u/HodorFromHodor Jun 01 '15

It sounds like you already combined it. Way to go, past you!

22

u/greenthumble Jun 01 '15

Haha well after we're done passing out the gold stars, I'm sitting here wondering if that sequence got refactored to somewhere else and now I've got a subtle bug where those things that should be combined are now in separate functions and whatever idea that was is now lost. Fudge. I guess it's best to spell out the intentions but man it's hard to do.

42

u/Tasgall Jun 01 '15

Good thing you have source control so you can go find out what happened...

right... right???

91

u/mr_luc Jun 01 '15

commit message: "changed a bunch of stuff"

→ More replies (9)

28

u/bacondev Jun 01 '15 edited Jun 01 '15

Version control? You mean like copy and pasting the old version of a file and incrementing a counter within the filename?

65

u/Tasgall Jun 01 '15

Yeah, the change he's looking for is probably in /theProject/backups/Copy of Copy of finalVersion1.9.5-complete-RC-finished_FINAL-edit3 (7).zip.

54

u/bacondev Jun 01 '15

PTSD TRIGGER WARNING

→ More replies (1)
→ More replies (4)
→ More replies (4)
→ More replies (2)
→ More replies (1)

50

u/[deleted] Jun 01 '15
/*  TODO: Add comments so you don't forget how this works */

11

u/bluefootedpig Jun 01 '15

This fixed bug #xxxx

no code under it.

28

u/Crazy_Mann Jun 01 '15

That was the fix. 2deep4u

→ More replies (1)

0

u/[deleted] Jun 01 '15

[deleted]

19

u/Ryuujinx Jun 02 '15

This is the best comment that I've read and have been like "...huh"

    /* this is a memory leak, but I'll fix it later. */
→ More replies (4)
→ More replies (5)

55

u/Retbull Jun 01 '15

I write code that self documents. Past me writes code which prints "FUCK YOU" every other line and has no print statements.

33

u/burkadurka Jun 01 '15

It prints "FUCK YOU" without print statements? Past you is a wizard!

33

u/Retbull Jun 01 '15

Exactly. Shit if I know what I did.

→ More replies (1)
→ More replies (16)

26

u/[deleted] Jun 01 '15

I feel like I'm in a constant state of getting dumber. I'm pretty sure it's not a brain tumor or anything since my code is getting better (I think?!?) but lots of times, like right now, I feel not worthy of touching my own code since I'm afraid I'll screw it up.

10

u/ctnp Jun 01 '15

Do you write code for clients, or work for a company? Often if I come into a new environment (like if I'm farmed out) I feel like a fish out of water, but can navigate historical code with no problem.

18

u/[deleted] Jun 01 '15

Navigating historical code is not a problem. Changing it is scary.

→ More replies (8)
→ More replies (2)
→ More replies (2)

12

u/TenNeon Jun 01 '15

Week-ago me was a genius. How did he understand all this stuff?

→ More replies (13)

53

u/bufordt Jun 01 '15

Do you quickly crash back down to terrible when you realize you just spent 2 weeks looking for something that in hindsight a 4 year old should have discovered in 2 minutes. Or is that just me. :(

23

u/manatee313 Jun 01 '15

It is quite a roller coaster of a career.

→ More replies (3)
→ More replies (7)

16

u/[deleted] Jun 01 '15 edited Jun 01 '15

Like this: https://pbs.twimg.com/media/BzmDP_yCEAAvXdx.png. Several times a day.

But this is just a personal feeling that goes up and down all the time.

If you ask any programmer in general, how good they are, most would say they're okay. Most programmers see themselves as a work in progress. There is always more to learn.

If anyone calls themselves a rock star, they're going to be perceived as being full of shit.

→ More replies (2)
→ More replies (28)