Click here to Skip to main content
15,884,298 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
kmoorevs10-Feb-23 14:36
kmoorevs10-Feb-23 14:36 
GeneralRe: My dirty little coding secret Pin
Amarnath S10-Feb-23 15:27
professionalAmarnath S10-Feb-23 15:27 
GeneralRe: My dirty little coding secret Pin
5teveH10-Feb-23 20:57
5teveH10-Feb-23 20:57 
GeneralRe: My dirty little coding secret Pin
BillWoodruff11-Feb-23 2:55
professionalBillWoodruff11-Feb-23 2:55 
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 
My dirty little secret is that quite often I won't write functions unless that code is used exactly the same way in at least three other places. And if an existing function doesn't do exactly what I want it to I will create a new version rather than add a new parameter. Or (even worse) I will inline a copy of the entire (existing) function and modify it in the main body of my code.

Why do I do this? Because after thousands of code walk-throughs I know it is easier for someone to understand a linear block of code. Every meaningful function call (i.e. a function call that changes something rather than just return something) or call-back reduces the comprehensibility of code.
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 
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 

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.