Click here to Skip to main content
15,886,919 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: Code comments - how old is your code? Pin
maze318-Jul-23 4:21
professionalmaze318-Jul-23 4:21 
GeneralRe: Code comments - how old is your code? PinPopular
Dave Kreskowiak17-Jul-23 11:30
mveDave Kreskowiak17-Jul-23 11:30 
GeneralRe: Code comments - how old is your code? Pin
DerekT-P17-Jul-23 23:35
professionalDerekT-P17-Jul-23 23:35 
GeneralRe: Code comments - how old is your code? Pin
PIEBALDconsult17-Jul-23 11:47
mvePIEBALDconsult17-Jul-23 11:47 
GeneralRe: Code comments - how old is your code? Pin
Slacker00717-Jul-23 12:23
professionalSlacker00717-Jul-23 12:23 
GeneralRe: Code comments - how old is your code? Pin
Gary R. Wheeler17-Jul-23 13:17
Gary R. Wheeler17-Jul-23 13:17 
GeneralRe: Code comments - how old is your code? Pin
Slacker00717-Jul-23 13:33
professionalSlacker00717-Jul-23 13:33 
GeneralRe: Code comments - how old is your code? Pin
Matt Bond18-Jul-23 3:26
Matt Bond18-Jul-23 3:26 
I like Hungarian notation. When you have a single Windows Form with several hundred components on it across many layers of tab sheets and panels, knowing if you are looking at a button, label, or textbox component by its name in the code really saves you time. I do this in my C# code too, which has a lot less components per form.

I view variable names as a cognitive map. Start with the big picture and then get more precise. So which component is it? Then which area does it live in? Then what does it do? txtLoanAmount is very clear what I'm dealing with. If I just saw LoanAmount, is it a label or a textbox or the value stored in memory to be used by the textbox? Let me see that tooltip - oh there goes a second or 2 waiting for it to pop.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere

GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz18-Jul-23 5:33
mveGerry Schmitz18-Jul-23 5:33 
GeneralRe: Code comments - how old is your code? Pin
Mircea Neacsu17-Jul-23 14:52
Mircea Neacsu17-Jul-23 14:52 
GeneralRe: Code comments - how old is your code? Pin
Greg Utas17-Jul-23 15:35
professionalGreg Utas17-Jul-23 15:35 
GeneralRe: Code comments - how old is your code? Pin
trønderen17-Jul-23 16:16
trønderen17-Jul-23 16:16 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz18-Jul-23 5:39
mveGerry Schmitz18-Jul-23 5:39 
GeneralRe: Code comments - how old is your code? Pin
Gary Wheeler18-Jul-23 2:39
Gary Wheeler18-Jul-23 2:39 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz17-Jul-23 15:36
mveGerry Schmitz17-Jul-23 15:36 
GeneralRe: Code comments - how old is your code? Pin
Derek Hunter17-Jul-23 20:14
Derek Hunter17-Jul-23 20:14 
GeneralRe: Code comments - how old is your code? Pin
Jonas Hammarberg17-Jul-23 20:49
professionalJonas Hammarberg17-Jul-23 20:49 
GeneralRe: Code comments - how old is your code? Pin
Sander Rossel17-Jul-23 21:02
professionalSander Rossel17-Jul-23 21:02 
GeneralRe: Code comments - how old is your code? Pin
Slacker00717-Jul-23 23:40
professionalSlacker00717-Jul-23 23:40 
GeneralRe: Code comments - how old is your code? Pin
Sander Rossel17-Jul-23 23:43
professionalSander Rossel17-Jul-23 23:43 
JokeRe: Code comments - how old is your code? Pin
trønderen18-Jul-23 6:49
trønderen18-Jul-23 6:49 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz18-Jul-23 5:43
mveGerry Schmitz18-Jul-23 5:43 
GeneralRe: Code comments - how old is your code? Pin
Amarnath S17-Jul-23 21:06
professionalAmarnath S17-Jul-23 21:06 
GeneralRe: Code comments - how old is your code? Pin
_WinBase_17-Jul-23 23:36
_WinBase_17-Jul-23 23:36 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz18-Jul-23 5:46
mveGerry Schmitz18-Jul-23 5:46 

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.