Click here to Skip to main content
15,887,676 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: My dirty little coding secret Pin
Daniel Pfeffer11-Feb-23 5:56
professionalDaniel Pfeffer11-Feb-23 5:56 
GeneralRe: My dirty little coding secret Pin
dandy7211-Feb-23 7:08
dandy7211-Feb-23 7:08 
GeneralRe: My dirty little coding secret Pin
den2k8812-Feb-23 21:31
professionalden2k8812-Feb-23 21:31 
GeneralRe: My dirty little coding secret Pin
Derek Hunter12-Feb-23 22:56
Derek Hunter12-Feb-23 22:56 
GeneralThe dirty little coding secret Pin
john morrison leon12-Feb-23 23:30
john morrison leon12-Feb-23 23:30 
GeneralRe: My dirty little coding secret Pin
Cpichols13-Feb-23 1:55
Cpichols13-Feb-23 1:55 
GeneralRe: My dirty little coding secret Pin
MSBassSinger13-Feb-23 2:08
professionalMSBassSinger13-Feb-23 2:08 
GeneralRe: My dirty little coding secret Pin
rjmoses13-Feb-23 3:26
professionalrjmoses13-Feb-23 3:26 
Several coding secrets:

1) Being consistent -- Use the same naming convention, indentation, structuring, etc., throughout all code.
2) Small modules -- Typically 40-60 lines or so.
2a) Module on a page -- Look at a complete module without having to scroll/page through it.
3) But not too small -- Avoiding 1-3 lines of actual code as a function (nothing more ineffecient than looking at 10 lines to see something like "int GetAsValue() { return A; }"
4) Nothing fancy -- Avoid complex templates, macros, etc.
5) Adding some comments for relatively complex code, but avoiding unnecessary comments.

6) And, finally, frequent trips to the coffee pot, with associated trips to the men's room, to get the body moving and the blood circulating.
GeneralRe: My dirty little coding secret Pin
honey the codewitch13-Feb-23 4:08
mvahoney the codewitch13-Feb-23 4:08 
GeneralRe: My dirty little coding secret Pin
Steve Naidamast13-Feb-23 5:05
professionalSteve Naidamast13-Feb-23 5:05 
GeneralRe: My dirty little coding secret Pin
Bruce Greene13-Feb-23 6:39
Bruce Greene13-Feb-23 6:39 
GeneralRe: My dirty little coding secret Pin
maze313-Feb-23 22:37
professionalmaze313-Feb-23 22:37 
GeneralRe: My dirty little coding secret Pin
Max Santos14-Feb-23 8:18
Max Santos14-Feb-23 8:18 
General*Every* browser is dropping support for 7... Pin
dandy7210-Feb-23 3:57
dandy7210-Feb-23 3:57 
GeneralRe: *Every* browser is dropping support for 7... Pin
megaadam10-Feb-23 4:04
professionalmegaadam10-Feb-23 4:04 
GeneralRe: *Every* browser is dropping support for 7... Pin
PIEBALDconsult10-Feb-23 4:15
mvePIEBALDconsult10-Feb-23 4:15 
GeneralRe: *Every* browser is dropping support for 7... Pin
megaadam10-Feb-23 4:28
professionalmegaadam10-Feb-23 4:28 
GeneralRe: *Every* browser is dropping support for 7... Pin
dandy7210-Feb-23 4:45
dandy7210-Feb-23 4:45 
GeneralRe: *Every* browser is dropping support for 7... Pin
Mircea Neacsu10-Feb-23 4:56
Mircea Neacsu10-Feb-23 4:56 
GeneralRe: *Every* browser is dropping support for 7... Pin
dandy7211-Feb-23 7:12
dandy7211-Feb-23 7:12 
GeneralRe: *Every* browser is dropping support for 7... Pin
Ron Anders10-Feb-23 6:18
Ron Anders10-Feb-23 6:18 
GeneralRe: *Every* browser is dropping support for 7... Pin
dandy7211-Feb-23 7:09
dandy7211-Feb-23 7:09 
GeneralRe: *Every* browser is dropping support for 7... Pin
Gerry Schmitz10-Feb-23 7:03
mveGerry Schmitz10-Feb-23 7:03 
GeneralRe: *Every* browser is dropping support for 7... Pin
jschell10-Feb-23 10:09
jschell10-Feb-23 10:09 
GeneralRe: *Every* browser is dropping support for 7... Pin
dandy7211-Feb-23 7:15
dandy7211-Feb-23 7:15 

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.