Click here to Skip to main content
15,505,126 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
DRHuff17-Sep-20 9:12
DRHuff17-Sep-20 9:12 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
User 1106097917-Sep-20 9:27
User 1106097917-Sep-20 9:27 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
rnbergren17-Sep-20 11:48
rnbergren17-Sep-20 11:48 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Bogatitus19-Sep-20 9:42
Bogatitus19-Sep-20 9:42 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
rnbergren19-Sep-20 12:08
rnbergren19-Sep-20 12:08 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Gerry Schmitz17-Sep-20 12:31
mveGerry Schmitz17-Sep-20 12:31 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Daniel Pfeffer17-Sep-20 12:38
professionalDaniel Pfeffer17-Sep-20 12:38 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Gary R. Wheeler17-Sep-20 16:22
Gary R. Wheeler17-Sep-20 16:22 
I can provide a well-aged perspective here. Most of the software I write professionally has a long life. Development typically takes a couple of years and then maintenance lasts for a decade or more. I have an internal tool that got its start in 2000 and I'm still actively developing and maintaining it. In other words, I get to go back and look at code I wrote a long time ago - a lot.

Over time my coding and commenting style have matured. I write things as simply as possible. I avoid being clever, and I avoid 'clever' language features. I name things carefully, especially when they are tied to a particular part of the product or hardware. I use comments only to say things the code can't and to link the code to hardware or documentation when necessary.

During maintenance I refactor to simplify things or just to improve readability. The worst case is that I branch the code in question and refactor the branch until the cognitive dissonance from it is tolerable. Usually it doesn't go that far, as I'm probably trying to fix a problem, and I'll find it during the refactoring. Often I can just discard the branch, fix the bug in the original code, and go on. Sometimes I'll keep some of the refactoring. It depends upon the scope of the problem, the fix, and the risk associated with them.

The end result is that it's fairly rare for me to look back at something I wrote and be baffled or confused by it. The point here is that you only acquire this skill by doing it. If you only write code that you never revisit, you've lost the learning opportunity that arises when you do.
Software Zen: delete this;

GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
honey the codewitch17-Sep-20 16:33
mvahoney the codewitch17-Sep-20 16:33 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Gary R. Wheeler17-Sep-20 18:06
Gary R. Wheeler17-Sep-20 18:06 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
honey the codewitch17-Sep-20 19:31
mvahoney the codewitch17-Sep-20 19:31 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Gary R. Wheeler20-Sep-20 8:30
Gary R. Wheeler20-Sep-20 8:30 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
honey the codewitch20-Sep-20 9:12
mvahoney the codewitch20-Sep-20 9:12 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Rage17-Sep-20 20:56
professionalRage17-Sep-20 20:56 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
honey the codewitch17-Sep-20 21:06
mvahoney the codewitch17-Sep-20 21:06 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Peter_in_278017-Sep-20 23:17
professionalPeter_in_278017-Sep-20 23:17 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
honey the codewitch18-Sep-20 2:32
mvahoney the codewitch18-Sep-20 2:32 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Member 1368006017-Sep-20 23:05
Member 1368006017-Sep-20 23:05 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
CPallini17-Sep-20 23:53
mveCPallini17-Sep-20 23:53 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Keefer S18-Sep-20 3:02
Keefer S18-Sep-20 3:02 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
MKJCP18-Sep-20 3:50
MKJCP18-Sep-20 3:50 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Mark Starr18-Sep-20 4:28
professionalMark Starr18-Sep-20 4:28 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Stefan_Lang18-Sep-20 5:05
mveStefan_Lang18-Sep-20 5:05 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
honey the codewitch18-Sep-20 7:35
mvahoney the codewitch18-Sep-20 7:35 
GeneralRe: Isn't it fun when you write something and look back months later and wonder how you did it? Pin
Matt McGuire18-Sep-20 6:19
professionalMatt McGuire18-Sep-20 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

How would you describe your current job?
Fighting dragons everyday or clicking the same boxes on the same forms, day after day?
  Results   980 votes