Click here to Skip to main content
15,909,898 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.

 
GeneralA type down memory lane. Pin
OriginalGriff23-Aug-17 1:48
mveOriginalGriff23-Aug-17 1:48 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 1:57
CodeWraith23-Aug-17 1:57 
GeneralRe: A type down memory lane. Pin
megaadam23-Aug-17 2:06
professionalmegaadam23-Aug-17 2:06 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 2:19
CodeWraith23-Aug-17 2:19 
GeneralRe: A type down memory lane. Pin
A Jordison23-Aug-17 2:19
A Jordison23-Aug-17 2:19 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 2:25
CodeWraith23-Aug-17 2:25 
GeneralRe: A type down memory lane. Pin
A Jordison23-Aug-17 2:29
A Jordison23-Aug-17 2:29 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 3:36
CodeWraith23-Aug-17 3:36 
Which I stubbornly refuse to do. These 'rules' are for those who are to dumb to understand at which point something becomes problematic. I do this very rarely, but sometimes it's more important to keep a piece of complicated code contained in a method. No refactoring into other functions! Let's keep these eggs in one basket, despite all wise rules. Add a note that only I may work on that thing, and even then only with signatures from at least three bosses and only on highest holidays. There should be reasons for doing this and playing by the rules will break it.

In such a thing it can be easier to get out of some nested code using a GOTO than doing it with the 'good' if-else way.

In C or C++ such a function may often contain some inline assembly, providing one more good reason to keep everything in one function. That's very volatile code which you don't want to spread out all over the application.
The user can't update the up: we update it for them (Choice in the CP poll)

GeneralRe: A type down memory lane. Pin
Dave Kreskowiak23-Aug-17 4:00
mveDave Kreskowiak23-Aug-17 4:00 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 4:31
CodeWraith23-Aug-17 4:31 
GeneralRe: A type down memory lane. Pin
  Forogar  23-Aug-17 4:44
professional  Forogar  23-Aug-17 4:44 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 5:30
CodeWraith23-Aug-17 5:30 
GeneralRe: A type down memory lane. Pin
Dave Kreskowiak23-Aug-17 6:02
mveDave Kreskowiak23-Aug-17 6:02 
GeneralRe: A type down memory lane. Pin
Mycroft Holmes23-Aug-17 14:49
professionalMycroft Holmes23-Aug-17 14:49 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 18:55
CodeWraith23-Aug-17 18:55 
GeneralRe: A type down memory lane. Pin
MarkTJohnson23-Aug-17 8:28
professionalMarkTJohnson23-Aug-17 8:28 
GeneralRe: A type down memory lane. Pin
lopatir23-Aug-17 3:32
lopatir23-Aug-17 3:32 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 3:44
CodeWraith23-Aug-17 3:44 
GeneralRe: A type down memory lane. Pin
  Forogar  23-Aug-17 10:02
professional  Forogar  23-Aug-17 10:02 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 10:36
CodeWraith23-Aug-17 10:36 
GeneralRe: A type down memory lane. Pin
  Forogar  25-Aug-17 5:26
professional  Forogar  25-Aug-17 5:26 
GeneralRe: A type down memory lane. Pin
kmoorevs23-Aug-17 4:02
kmoorevs23-Aug-17 4:02 
GeneralRe: A type down memory lane. Pin
CodeWraith23-Aug-17 4:36
CodeWraith23-Aug-17 4:36 
GeneralRe: A type down memory lane. Pin
RTek2323-Aug-17 6:04
professionalRTek2323-Aug-17 6:04 
GeneralRe: A type down memory lane. Pin
User 1013254623-Aug-17 2:10
User 1013254623-Aug-17 2:10 

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.