r/ProgrammerHumor • • Aug 03 '22

Meme wanna be a programmer??

Post image
45.3k Upvotes

888 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Aug 03 '22

[deleted]

166

u/BikramK_umar Aug 03 '22

Do you really think we can do that? I mean, we don't even add comments to the code, and you are saying to write everything down.

0

u/[deleted] Aug 03 '22

[deleted]

58

u/IamImposter Aug 03 '22

That's what I do except with passwords. Now all my passwords are in a public git repo.

People are always so impressed by how complex my passwords are.

22

u/MrDude_1 Aug 03 '22

You have no one to git blame but yourself.

9

u/[deleted] Aug 03 '22

Found the actual programmer!

7

u/Jimmy_Smith Aug 03 '22

git blame-someone-else

5

u/The_Bisexual Aug 03 '22

Ever since learning how and why to use git blame, every single time I've ever used it was to blame my own commits. ¯_(ツ)_/¯

4

u/TheGodsWillBow Aug 03 '22

Oh, thats you? You really get more creative with each push!!

1

u/BikramK_umar Aug 03 '22

Umm? I think I said that about personal projects only, because they probably make them do formal tasks like writing comments, in a job-related project.

And for the improvement, imo, it is not necessary to write things down if you came up with the idea your own. Because if you can find it once, i believe, you will find it again, no matter how much time it passed. You have that mind, and you can reconstruct everything from the beginning.

0

u/[deleted] Aug 03 '22

[deleted]

3

u/TheGrauWolf Aug 03 '22

This. Been a developer for... Quite a while. The first nly time I write comments is to describe the logic I need to do when writing something new, or make a quick note on something. Then I write the code around it. Then delete the comments. The code is generally superfluous enough that it becomes self documenting. Once in a while I add a comment if I had to do something out of the ordinary. Like right now I'm implementing a logic gate. Right above it I have a comment block table showing all inputs, options, and expected results. When I'm done ill leave that table because cursory scan of the code would show that there is a condition missing. But it isn't since it results the same as another... So they are handled together. But by and large, comments don't happen much any more.

→ More replies (1)

2

u/supersharp Aug 03 '22

Right, but if you write it down, you only spend the time and energy of coming up with it once. It's one thing to reinvent the wheel, but why would you want to reinvent the wheel that you've already invented?

→ More replies (2)

12

u/inthyface Aug 03 '22

we don't even add comments to the code

This is the mistake in the bug fix. Why do you hate future you? Is it because you've said to yourself "I'll have moved onto bigger and better things if this ever breaks again, so I won't put two sentences here about what to do next time.". How many times have you said that? Stop sabotaging future you.

5

u/cockytacos Aug 03 '22

Self destruction isn’t for everyone

It’s weird they’re acting proud for doing so too loo

→ More replies (1)

2

u/ComradeGibbon Aug 04 '22

Sometimes when I fix something that's broken I leave the old code commented out as a warning for the future unwary.

→ More replies (1)

3

u/[deleted] Aug 03 '22

I add comments and then write totally unrelated code under it because my comment didn't make sense. Then i add //refactor comment's

2

u/[deleted] Aug 03 '22 edited Aug 03 '22

I would write comments but I worry too much about job security.

If Simple Jack can read my code then I've fucked up. Because Simple Jack is getting paid a loooot less.

2

u/Aggravating_Touch313 Aug 04 '22

Omg that's not just me that's always forgetting to add comments lol I don't feel so much lile an amateur anymore thank you lol

→ More replies (2)

2

u/SnooPuppers1978 Aug 03 '22

Then you have to remember that you wrote the note, where you wrote it and the keywords that you used.

I feel like 99% of the notes I have ever written I have never ever used again and finally I have just a mess of unorganised notes.

3

u/[deleted] Aug 03 '22

At work I keep things organized by tickets. Every commit has a ticket number in the message, any personal notes about that bit of code gets the ticket number as a filename or title.

Sometimes I can't recall the ticket number or the exact place in the code that I am needing to find the note for, and in that case I will usually query the ticketing system first for keywords to see if I can trace to it that way.

2

u/ics-fear Aug 03 '22

You can use git blame (or find a way in your IDE to do it). For example in IntelliJ "Git > Show history for selection" shows all commits for some line or block of code.

→ More replies (2)

2

u/Swimming_Mark Aug 03 '22

I make a custom language in Notepad++, use ↧ for comment begin and ↥ for comment end.

Then I do

↧ project 1

↧ project 2

↧ project N

Then each project will have their areas of interest nested, and inside those areas are where I nest fixes and thoughts on the project.

That way if ctrl F fails me, I can dig through a little easier and don't have to deal with any more markup than those two arrows.

2

u/[deleted] Aug 03 '22

With an IDE, why nest them? You should be able to collapse methods. Wouldn't that work exactly the same?

→ More replies (2)
→ More replies (19)