Click here to Skip to main content
15,890,438 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: I love when that happens! Pin
Richard Andrew x6423-Oct-21 8:00
professionalRichard Andrew x6423-Oct-21 8:00 
GeneralRe: I love when that happens! Pin
honey the codewitch23-Oct-21 8:02
mvahoney the codewitch23-Oct-21 8:02 
GeneralRe: I love when that happens! Pin
Nelek23-Oct-21 9:18
protectorNelek23-Oct-21 9:18 
GeneralRe: I love when that happens! Pin
jschell24-Oct-21 7:03
jschell24-Oct-21 7:03 
GeneralRe: I love when that happens! Pin
honey the codewitch24-Oct-21 7:23
mvahoney the codewitch24-Oct-21 7:23 
GeneralRe: I love when that happens! Pin
jschell23-Dec-21 5:18
jschell23-Dec-21 5:18 
GeneralRe: I love when that happens! Pin
honey the codewitch23-Dec-21 5:21
mvahoney the codewitch23-Dec-21 5:21 
GeneralRe: I love when that happens! Pin
englebart25-Oct-21 7:19
professionalenglebart25-Oct-21 7:19 
I like the state machine setup that is basically an abstract/pure virtual super class where each possible input is a method that returns the next state. Each state is a concrete class that must implement all of the input methods.

It would likely take up more memory with vtables than your approach, but I like that it makes the introduction of a new input a compile time check on all of the states. Same if you add a new state; you have to define transitions for every input.

I prefer compile time checks, but I work on a memory hog of a system where we have that luxury.😊

GeneralRe: I love when that happens! Pin
honey the codewitch25-Oct-21 7:25
mvahoney the codewitch25-Oct-21 7:25 
GeneralMy takeaway from Arden's Theorem. Pin
honey the codewitch22-Oct-21 7:44
mvahoney the codewitch22-Oct-21 7:44 
GeneralRe: My takeaway from Arden's Theorem. Pin
PIEBALDconsult22-Oct-21 8:04
mvePIEBALDconsult22-Oct-21 8:04 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 9:00
mveRickZeeland22-Oct-21 9:00 
GeneralRe: My takeaway from Arden's Theorem. Pin
OriginalGriff22-Oct-21 9:16
mveOriginalGriff22-Oct-21 9:16 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 9:19
mveRickZeeland22-Oct-21 9:19 
GeneralRe: My takeaway from Arden's Theorem. Pin
Greg Utas22-Oct-21 10:06
professionalGreg Utas22-Oct-21 10:06 
GeneralRe: My takeaway from Arden's Theorem. Pin
Cp-Coder22-Oct-21 11:23
Cp-Coder22-Oct-21 11:23 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 19:15
mveRickZeeland22-Oct-21 19:15 
GeneralRe: My takeaway from Arden's Theorem. Pin
stoneyowl222-Oct-21 9:29
stoneyowl222-Oct-21 9:29 
GeneralRe: My takeaway from Arden's Theorem. Pin
Roger Wright23-Oct-21 21:35
professionalRoger Wright23-Oct-21 21:35 
GeneralSound of the Week Pin
Sander Rossel22-Oct-21 0:13
professionalSander Rossel22-Oct-21 0:13 
GeneralRe: Sound of the Week Pin
David O'Neil22-Oct-21 7:34
professionalDavid O'Neil22-Oct-21 7:34 
GeneralRe: Sound of the Week Pin
Sander Rossel23-Oct-21 1:36
professionalSander Rossel23-Oct-21 1:36 
GeneralRe: Sound of the Week Pin
BernardIE531722-Oct-21 8:07
BernardIE531722-Oct-21 8:07 
GeneralRe: Sound of the Week Pin
Sander Rossel23-Oct-21 1:12
professionalSander Rossel23-Oct-21 1:12 
GeneralRe: Sound of the Week Pin
BernardIE531723-Oct-21 1:40
BernardIE531723-Oct-21 1:40 

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.