Comment 1C2 Re: Reading your old code


Programming ruining my memory?


Reading your old code (Score: 3, Insightful)

by on 2014-05-03 22:23 (#1BT)

It's even worse when you look at something you did 5 years ago. Kind of a What the heck was I thinking when I wrote this crap. type thing.

Re: Reading your old code (Score: 3, Insightful)

by on 2014-05-04 16:36 (#1C2)

One of the things with programming is that you usually need to interact with way more functions, libraries, and concepts than you can retain or burn into your memory. Your own code almost always falls into this category because you only hung out with the implementation while doing it and so it is not usually part of your embedded knowledge.

I have learned that "clever" code is almost never good long term unless you can implement it behind an interface and the underlying implementation rarely needs to be revisited. Otherwise, you're almost always better off writing transparent code with transparent naming conventions and functions structure whose purpose and behavour and layout are easy to "reoccupy" at a glance.


Time Reason Points Voter
2014-05-05 04:35 Insightful +1
2014-05-06 03:36 Insightful +1

Junk Status

Not marked as junk