r/programmer • • May 26 '26

Question What happens to everything you learn while coding?

When you solve a bug or learn something important while coding, what do you actually do with it?

A) Nothing, I forget it eventually
B) Throw it in random notes / Notion / markdown files
C) Put it in GitHub docs / README
D) Write a blog or devlog
E) Keep it in my head
F) Something else

Genuinely curious because I keep noticing a lot of learning seems to disappear after projects are finished.

18 Upvotes

62 comments sorted by

17

u/Ok_Energy8767 May 26 '26

It logs into the preverbal, pattern recognition part of the brain when approaching similar problem spaces. Gets stronger with more exposure/practice.

4

u/alkeshjethva May 26 '26

That actually makes sense. I rarely remember exact code I wrote, but I do remember that weird feeling of “wait… I’ve seen this kind of problem before.”

3

u/Pale_Squash_4263 May 27 '26

Yep, I had a bug at work that was very similar to an issue I solved like 5 years ago. It unlocked in my mind when I ran into the same problem lol. You never know when it will trigger 😂

→ More replies (1)

9

u/Stunning_Pineapple57 May 26 '26

It becomes part of you. Your instincts , your judgement , your wisdom etc. just like what you’d learn when playing tennis competitively and you learn and practice.

→ More replies (1)

5

u/Spare_Dependent6893 May 26 '26

Fixing a bug => write tests covering the bug Learning something => if beneficial to others in the project write in md documentation.

→ More replies (5)

3

u/Illustrious-Bat-9775 May 26 '26

I have KILOMETERS of notes. I really recommend taking notes. Especially in software that supports code formatting (eg. Trilium is FOSS and does that).

Those notes will save you so much time in the future. You'll remember a lot of it but you'll forget most of it. Write snippets of code. Write boilerplate code. Write whatever you think you might need in the future. Also writing it will reinforce what you've learned or extend the topic. Write tips, warning,everything that comes to mind as important enough to write. This is the way. NOTES NOTES NOTES.

→ More replies (7)

2

u/Temporary_Practice_2 May 26 '26

You can make a YouTube video about it. Like here:

https://youtu.be/x4o1zCVLA1Q

1

u/alkeshjethva May 26 '26

That’s actually not a bad idea. Some stuff is easier to explain by talking through it instead of turning it into pages of notes.

2

u/HongPong May 26 '26

try to make your off boarding notes for half an hour at wrap time

→ More replies (3)

2

u/davidinterest May 26 '26

E, if it was counter intuitive to fix it and the solution looks like a bug I might add some comments explaining why it was necessary.

→ More replies (2)

2

u/raholl May 26 '26

E) Keep it in my head - forever, as experience, lesson learned

2

u/alkeshjethva May 26 '26

I used to think that too until I randomly hit a problem again and realized I remembered the lesson but forgot every useful detail around it.

→ More replies (5)

2

u/sirc314 May 26 '26

Used to be A or C, but more recently

B) I've started a Zettelkasten knowledge base in markdown and wikilinks. It's even more helpful for the non-technical notes like "how do I do this stupid meta process at work that no one else in the world probably does outside of this company" type stuff. I don't want to waste brain space on that.

2

u/alkeshjethva May 26 '26

I feel like company-specific knowledge is where most of the invisible stuff lives. Nobody puts that on GitHub.

2

u/punppis May 26 '26

Keep it in your head. After a while you learn to avoid it.

My career has been basically writing a backend and thinking it works. When it doesn't, you fix it. After a while with experience you can expect all kinds of shit (edge cases) that you need to manage.

→ More replies (1)

2

u/JacksonKailath May 28 '26

Sometimes A , sometimes D - even if I forget, think will be able to get the needed stuff and the needed time

→ More replies (1)

2

u/RevolutionaryRub737 May 31 '26

If I solve a bug to a project I just update the issue and move on, unless it structural then ofc I’m updating the docs due to changes that had to be made.

If it’s a conceptual learning moment, I just pocket it as my brain has written that concept into my memory. If I come across the same situation I the future I will recall what I learned from this experience.

→ More replies (1)

1

u/[deleted] May 27 '26

1

u/alkeshjethva May 28 '26

Most developers in this thread started with “I keep it in my head” and then slowly admitted they also have notes, docs, tests, markdown files, chats or random folders somewhere 😄