Click here to Skip to main content
15,887,477 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: Fighting a monster Pin
den2k882-Mar-23 22:49
professionalden2k882-Mar-23 22:49 
GeneralRe: Fighting a monster Pin
MadGerbil3-Mar-23 1:47
MadGerbil3-Mar-23 1:47 
GeneralRe: Fighting a monster Pin
Gary Wheeler3-Mar-23 2:03
Gary Wheeler3-Mar-23 2:03 
GeneralRe: Fighting a monster Pin
Mircea Neacsu3-Mar-23 2:11
Mircea Neacsu3-Mar-23 2:11 
GeneralRe: Fighting a monster Pin
MadGerbil3-Mar-23 2:14
MadGerbil3-Mar-23 2:14 
GeneralRe: Fighting a monster Pin
englebart3-Mar-23 3:41
professionalenglebart3-Mar-23 3:41 
GeneralRe: Fighting a monster Pin
wapiti643-Mar-23 6:09
wapiti643-Mar-23 6:09 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 6:33
trønderen3-Mar-23 6:33 
My rule-of-thumb for creating functions (/methods/procedures/...): If it represents another level of abstraction, then create it. If it doesn't, write it as inline code.

It really is obvious. Yet, I often see code where the programmer obviously went "Ooops! Max line count reached! I'll have to put the lines above this point into a function, and create another function for the remaining lines." Functions representing nothing but some sequence of statements with no common purpose or meaning of life.

Of course this is more prominent with junior programmers. But a fair share of programmers never grow up.
GeneralRe: Fighting a monster Pin
jschell6-Mar-23 7:33
jschell6-Mar-23 7:33 
GeneralRe: Fighting a monster Pin
rnbergren3-Mar-23 2:33
rnbergren3-Mar-23 2:33 
GeneralRe: Fighting a monster Pin
englebart3-Mar-23 3:50
professionalenglebart3-Mar-23 3:50 
GeneralRe: Fighting a monster Pin
rnbergren3-Mar-23 5:23
rnbergren3-Mar-23 5:23 
GeneralRe: Fighting a monster Pin
WPerkins3-Mar-23 3:39
WPerkins3-Mar-23 3:39 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 6:21
trønderen3-Mar-23 6:21 
GeneralRe: Fighting a monster Pin
WPerkins17-Aug-23 6:23
WPerkins17-Aug-23 6:23 
GeneralRe: Fighting a monster Pin
dandy723-Mar-23 3:34
dandy723-Mar-23 3:34 
GeneralRe: Fighting a monster Pin
Mircea Neacsu3-Mar-23 3:41
Mircea Neacsu3-Mar-23 3:41 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 6:24
trønderen3-Mar-23 6:24 
GeneralRe: Fighting a monster Pin
Owen Lawrence3-Mar-23 3:49
Owen Lawrence3-Mar-23 3:49 
GeneralRe: Fighting a monster Pin
Alexey Shtykov3-Mar-23 4:03
professionalAlexey Shtykov3-Mar-23 4:03 
GeneralRe: Fighting a monster Pin
Matt Bond3-Mar-23 3:54
Matt Bond3-Mar-23 3:54 
GeneralRe: Fighting a monster Pin
Getulio_Domingues3-Mar-23 5:05
Getulio_Domingues3-Mar-23 5:05 
GeneralRe: Fighting a monster Pin
Cezar Lamann3-Mar-23 8:50
professionalCezar Lamann3-Mar-23 8:50 
GeneralRe: Fighting a monster Pin
Cezar Lamann3-Mar-23 8:25
professionalCezar Lamann3-Mar-23 8:25 
GeneralRe: Fighting a monster Pin
destynova3-Mar-23 8:25
destynova3-Mar-23 8:25 

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.