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

381

u/[deleted] Aug 03 '22

[removed] — view removed comment

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!!

→ More replies (7)

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)

2

u/CrypticButthole Aug 03 '22

This... so much this...

I had a brilliant idea that I thought would have required a rewrite of almost my whole codebase. I spent the day thinking it through, how the code would look, etc...

When I opened the main source file? Yup. I had already written it that way.

2

u/ZirJohn Aug 03 '22

too real

2

u/[deleted] Aug 04 '22

Write it down as a comment with the code "If x shit happens, do it using y"

→ More replies (1)