Click here to Skip to main content
15,885,278 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: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
OriginalGriff26-Oct-20 6:47
mveOriginalGriff26-Oct-20 6:47 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
honey the codewitch26-Oct-20 6:26
mvahoney the codewitch26-Oct-20 6:26 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Southmountain26-Oct-20 6:38
Southmountain26-Oct-20 6:38 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
honey the codewitch26-Oct-20 6:50
mvahoney the codewitch26-Oct-20 6:50 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Gerry Schmitz26-Oct-20 6:47
mveGerry Schmitz26-Oct-20 6:47 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
honey the codewitch26-Oct-20 6:56
mvahoney the codewitch26-Oct-20 6:56 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Greg Utas26-Oct-20 6:50
professionalGreg Utas26-Oct-20 6:50 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
trønderen26-Oct-20 7:48
trønderen26-Oct-20 7:48 
In my first formal Pascal training, the professor taught a discipline of collecting related attributes into RECORDs types, describing some object (I don't remember if he used that term). All handling of a given RECORD type should be done by a set of functions taking a pointer to an instance of the RECORD type as its first parameter. All the functions on a RECORD type should be declared together, and should not process other RECORD types.

So when OO appeared a few years later, we said "OK, we can switch around MyFunc(myInstance, ...) to myInstance.MyFunc(...). We can move the functions in before the END of the RECORD type definition. We can call it a 'class' rather than a RECORD, now that the functions appear before the END. Fine with us!"

Certainly: Pascal 'variant record fields' were just a tiny start of today's complex super- and sub-classes with virtual functions and multiple inheritance and whatnots. Yet, as complex OO-concepts matured (they came gradually!) we saw them as stepwise extensions to the variant record concept. OO languages provide some syntactic sugar, but if the concepts are in place and you have a good programming discipline, it doesn't make that big a difference!

In hindsight, I have often been thinking that this professor must have had an impressing understanding of OO long before it became a household term. (I took this Pascal course in 1977.)
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Greg Utas26-Oct-20 7:54
professionalGreg Utas26-Oct-20 7:54 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
trønderen26-Oct-20 7:20
trønderen26-Oct-20 7:20 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Greg Utas26-Oct-20 7:34
professionalGreg Utas26-Oct-20 7:34 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
rnbergren26-Oct-20 7:47
rnbergren26-Oct-20 7:47 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
David O'Neil26-Oct-20 8:07
professionalDavid O'Neil26-Oct-20 8:07 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Greg Utas26-Oct-20 8:15
professionalGreg Utas26-Oct-20 8:15 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Dan Neely27-Oct-20 4:06
Dan Neely27-Oct-20 4:06 
GeneralRe: when is your first moment to get enlightened to understand real OOP design &implementation? Pin
Gerry Schmitz27-Oct-20 5:41
mveGerry Schmitz27-Oct-20 5:41 
GeneralThought of the Day Pin
OriginalGriff26-Oct-20 5:50
mveOriginalGriff26-Oct-20 5:50 
AnswerRe: Thought of the Day Pin
megaadam26-Oct-20 6:13
professionalmegaadam26-Oct-20 6:13 
GeneralRe: Thought of the Day Pin
Ravi Bhavnani26-Oct-20 7:08
professionalRavi Bhavnani26-Oct-20 7:08 
GeneralRe: Thought of the Day Pin
W Balboos, GHB26-Oct-20 7:29
W Balboos, GHB26-Oct-20 7:29 
GeneralWSO CCC OTD 2020-10-26 Solution Pin
Sandeep Mewara26-Oct-20 3:58
mveSandeep Mewara26-Oct-20 3:58 
GeneralRe: WSO CCC OTD 2020-10-26 Solution Pin
Greg Utas26-Oct-20 4:14
professionalGreg Utas26-Oct-20 4:14 
GeneralRe: WSO CCC OTD 2020-10-26 Solution Pin
Sandeep Mewara26-Oct-20 4:20
mveSandeep Mewara26-Oct-20 4:20 
GeneralRe: WSO CCC OTD 2020-10-26 Solution Pin
pkfox26-Oct-20 4:40
professionalpkfox26-Oct-20 4:40 
GeneralRe: WSO CCC OTD 2020-10-26 Solution Pin
DerekT-P26-Oct-20 6:40
professionalDerekT-P26-Oct-20 6: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.