Notifications
Clear all

[Closed] Object Oriented techniques - Example 1 - "Hello Class"

302 Posts
10 Users
229 Reactions
20.7 K Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad Of course I am here to learn as well. 

I don't understand why you are so antagonistic?

Back in the day when I was working for a living I did look after a lot of code, probably in the order of a few thousand lines, but we had one project with just over a million. OOP wasn't invented yet, so I have no idea if OOP would have helped reduce code size.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@zander

Posted by: @zander

@frogandtoad If that happens it's a good thing, I just haven't seen it yet and could care less given I will likely write about the same amount of code in the rest of my life equivalent to what I would do in a few weeks when I was a paid codeslinger.

Ron, I know it's not easy... but please when replying, quote the context of what you are replying to if you can take the time to do so, otherwise, I have to guess at what thread/post you are referring to.

This is a problem of the forum software, which is pretty crap in my opinion... it has many many problems that need to be addressed!


   
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad No problem, but if you mention me I will respond, that is the nature of communication after all.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1123
 
Posted by: @frogandtoad

How about something like: "reminiscing and waffling"

Really! and this post on a C++ thread. Not going off topic are we?


   
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@zander

Posted by: @zander

@frogandtoad Of course I am here to learn as well. 

I don't understand why you are so antagonistic?

Back in the day when I was working for a living I did look after a lot of code, probably in the order of a few thousand lines, but we had one project with just over a million. OOP wasn't invented yet, so I have no idea if OOP would have helped reduce code size.

Huh?

Where did you get that idea?
I've been nothing but supportive towards you, trying to help you and other members to learn and improve your skill set, by way of promoting and introducing you and viewers to work more efficiently in C++ OOP ways.

Grumpy old man? 🙂


   
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad Never a waste of time

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@byron

Posted by: @byron
Posted by: @frogandtoad

How about something like: "reminiscing and waffling"

Really! and this post on a C++ thread. Not going off topic are we?

LOL... Please read between the lines cobba, or do you need me to provide a tutorial just for you eh?


   
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad Research is difficult for me, remember I am on the spectrum and learning new stuff is very tedious. Since I only have a few years left it seems like a waste of time for ME. I think I can say with confidence that I have not seen much OOP code in all the arduino code I have looked at.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad Why would I do that, I have freely available code in the arduino IDE samples library.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad Exactly

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
frogandtoad reacted
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad TBH, I hadn't noticed that and when reading your comment it isn't displayed. I will unsubscribe now that you have brought this to my attention, but I was certain it started out elsewhere.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@zander

Posted by: @zander

@frogandtoad Research is difficult for me, remember I am on the spectrum and learning new stuff is very tedious. Since I only have a few years left it seems like a waste of time for ME. I think I can say with confidence that I have not seen much OOP code in all the arduino code I have looked at.

Again... please quote the post that you are replying to, and address the person you are replying to... Do you know how to do that?  If you don't, then please ask!  Otherwise, we have to guess who exactly you are replying to, and for what topic OK?

Research is difficult for me too, but I still do it if I am interested in the subject matter.

In fact, one of the greatest skills of the IT professional is in their research skills!

Ain't no doubt about it!


   
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@frogandtoad I will be doing that as soon as I have responded to all the comments that mention me, it's polite.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@zander

Posted by: @zander

@frogandtoad I will be doing that as soon as I have responded to all the comments that mention me, it's polite.

Again... I have no idea what thread of mine you are referring too... Please take the time to copy/paste and quote the thread material with additional pertinent information to make it clear what you are talking about!


   
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7100
 

@byron I do have 3 Pi's, 2 Pi4-4GB, a Pi0 for a bird cam, many ESP8266, ESP32, a dozen ESP32-CAM's, a couple new PICO's. I will have a look at python, but since all the sample code I have looked at is C it doesn't make sense for the little projects I am working on to switch languages. I am pretty sure the arduino cloud is only C or C++.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
Page 16 / 21