Click here to Skip to main content
15,887,135 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: OOP and the scope of a class, am I wrong? Pin
Gary Wheeler7-Nov-23 1:48
Gary Wheeler7-Nov-23 1:48 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
honey the codewitch7-Nov-23 4:12
mvahoney the codewitch7-Nov-23 4:12 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
jschell7-Nov-23 5:49
jschell7-Nov-23 5:49 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Gerry Schmitz6-Nov-23 11:07
mveGerry Schmitz6-Nov-23 11:07 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
DougInNC27-Nov-23 3:09
DougInNC27-Nov-23 3:09 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Mike Hankey6-Nov-23 8:31
mveMike Hankey6-Nov-23 8:31 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Maximilien6-Nov-23 8:56
Maximilien6-Nov-23 8:56 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
raddevus6-Nov-23 10:46
mvaraddevus6-Nov-23 10:46 
honey the codewitch wrote:
But I'm hearing that professors are teaching that classes are effectively a single action like ReadTextFile and it makes me a lot more irritated than I probably should be.

This could be the beginning of a in-depth discussion on Communication.

I have to parse the beginning of your sentence very closely and pull out "I'm hearing..." part.

You are hearing that from a beginning student, I believe.

Now, we can't be sure
1.if the Professors are actually teaching this (that a class is one action / functionality)
2. if it is the way the student is understanding it

Let's say it is the latter ( choice 2 above).

Now, that may simply mean that the Professor is teaching a concept poorly -- actually doesn't believe that a class is just one action but has somehow inadvertently used words that create a students understanding to be that.

From what I remember about Professors and coding, it seems likely that the Professor is actually teaching OOP wrong. Few colleges have Professors which actually program or have been on large teams which have implemented large systems using OOP.

However, I could also see that the student learning about OOP sees a simple example (because all University examples are far too simple (because anything large requires too much work on the Professor's part) and assumes that because there is only one functionality in the class along with a phrase the student has heard (Single Responsibility Principle) leads the student to believe that a class must have only one action.

So, here we are back at the beginning.
We don't know if:
1. The professor is wrong
2. the professor is confusing and the learning lands improperly
3. The student misunderstands on her own.

We're down at the bottom, writhing in the Communication pain. Roll eyes | :rolleyes:

The best thing to do is: Redirect!!

And that seems to be what you are doing. Tell the student the proper use of Classes and why they can have more actions.
Good luck with Communication.

I'm sure that I too have added some form of communication problem while writing this up. Laugh | :laugh:
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Gerry Schmitz6-Nov-23 11:16
mveGerry Schmitz6-Nov-23 11:16 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
honey the codewitch6-Nov-23 11:36
mvahoney the codewitch6-Nov-23 11:36 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
raddevus7-Nov-23 9:23
mvaraddevus7-Nov-23 9:23 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
honey the codewitch7-Nov-23 10:53
mvahoney the codewitch7-Nov-23 10:53 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
jschell6-Nov-23 10:56
jschell6-Nov-23 10:56 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
honey the codewitch6-Nov-23 12:35
mvahoney the codewitch6-Nov-23 12:35 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
jschell7-Nov-23 5:51
jschell7-Nov-23 5:51 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
dandy726-Nov-23 10:56
dandy726-Nov-23 10:56 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Gerry Schmitz6-Nov-23 11:28
mveGerry Schmitz6-Nov-23 11:28 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Amarnath S6-Nov-23 12:48
professionalAmarnath S6-Nov-23 12:48 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Dave Kreskowiak6-Nov-23 15:01
mveDave Kreskowiak6-Nov-23 15:01 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
PIEBALDconsult6-Nov-23 15:47
mvePIEBALDconsult6-Nov-23 15:47 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Dave Kreskowiak6-Nov-23 16:24
mveDave Kreskowiak6-Nov-23 16:24 
JokeRe: OOP and the scope of a class, am I wrong? Pin
englebart6-Nov-23 15:48
professionalenglebart6-Nov-23 15:48 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
PIEBALDconsult6-Nov-23 15:56
mvePIEBALDconsult6-Nov-23 15:56 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
Christian Graus6-Nov-23 19:56
protectorChristian Graus6-Nov-23 19:56 
GeneralRe: OOP and the scope of a class, am I wrong? Pin
giulicard6-Nov-23 21:02
giulicard6-Nov-23 21:02 

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.