|
Just FYI, it's a long way to the top if you wanna rock n roll... even longer with a broken guitar...
|
|
|
|
|
|
|
Wordle 871 4/6
⬜⬜⬜🟩⬜
⬜⬜🟨🟩🟩
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 871 4/6
⬜🟨⬜🟨⬜
⬜⬜🟨🟨🟩
🟩🟩⬜⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 871 6/6
⬜⬜⬜🟩⬜
⬜🟨⬜🟩⬜
⬜⬜🟨⬜⬜
⬜🟩⬜⬜⬜
🟩🟩⬜🟩⬜
🟩🟩🟩🟩🟩
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Wordle 871 4/6*
⬜🟨⬜⬜⬜
⬜⬜⬜🟩🟨
⬜⬜🟨🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
Wordle 871 6/6
⬛🟨⬛⬛⬛
⬛⬛🟨⬛🟩
⬛⬛🟨🟨🟩
⬛🟩⬛🟩🟩
⬛🟩⬛🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 871 4/6
⬜⬜🟨⬜⬜
⬜🟩🟨⬜🟩
🟩🟩⬜⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 871 4/6
⬛🟨⬛⬛⬛
⬛⬛🟨🟨⬛
🟩🟩⬛⬛🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 871 3/6
⬛⬛⬛⬛⬛
⬛⬛⬛⬛🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
⬜⬜⬜⬜⬜
⬜🟩⬜⬜⬜
🟩🟩⬜🟩⬜
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
#Worldle #654 3/6 (100%)
🟩🟩🟩🟨⬜⬇️
🟩🟩🟩🟩⬜⬅️
🟩🟩🟩🟩🟩🎉
https://worldle.teuteuf.fr
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
My take:
A class should group related data and actions that center around a single concept. A car class might contain 4 Tire class instances as data members, an Engine instance, and a Gearbox instance. Each one has actions relevant to its operation like Engine.Start(), and Wheel.Rotate()
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.
Am I wrong here?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I'm not a OO person but it seams like TextFile.read() encapsulates much better what action is being performed on an instance of TextFile than TextFileRead which might be applied to some unknown object that may or may not support "read". Or worse, has subverted TextFileRead to do something totally unrelated, like open a can of beer. Maybe the Profs in question are confusing an interface with a class? Dunno. Seems wrong to me.
Keep Calm and Carry On
|
|
|
|
|
Your take is the way I learned it.
I thought it was the way Bjarne Stroustrup intended it.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
He designed C++ not OOP
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
pkfox wrote: He designed C++ not OOP
No one person "designed" OOP.
Like many concepts it evolved over quite a long time with different people working on the concept.
And at least when the "C++ Programming Language" was published for available books there were perhaps only four (or three) of them. And two were on C++. The concepts in all were basically the same.
|
|
|
|
|
But he explained OOP that way and the implmentation in C++ was that way as well.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
Mixing (up) function(s) and actions.
ReadTextFile is some clumsy rewording of a "TextReader" class.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
In this case it was part of an assignment to read phony medical records from a CSV.
A more horrible name I could scarcely fathom. I was helping with their homework, and trying to teach them what their prof wasn't.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I would say TextReader is the superclass of ReadTextFile. Text doesn't always come in files.
|
|
|
|
|
Personally I can't make a bridge between ReadTextFile and the car...
Anyway you example shows a classic thing, that classes are usually not 'stand alone' and in a certain way 'connected'/'depended'
Your examlpe:
Engine.Start() does depend on the state of the Gear. Either Engine asks the gear for 'I'm ready to start' or the gear sends a message to the engine 'hey, I'm at gear 1 (without pressed clutch), not really good to start at the moment' and so on and on and on...
Abstracting the reality is usually very hard.
Only my two cents.
|
|
|
|
|
Of course, but I was simplifying and glossing over details to simply get to the larger point, to wit: In my mind, a class is a noun, not a verb, essentially.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: a class is a noun Not really, since a class encapsulates properties (nouns), and actions (verbs); so it could be an ablative gerund.
|
|
|
|