Notifications
Clear all

Python vs. C/C++

21 Posts
5 Users
10 Reactions
599 Views
Lee G
(@lee-g)
Member
Joined: 6 years ago
Posts: 130
Topic starter  

@byron,

I haven’t played with the AI Hat+2 extensively yet. I know there are a ‘bunch of hoops’ you have to jump through to get it set up correctly (as with most things these days). And it’s a whole different mindset in how to work with AI than what McWhorter teaches. He has sorta ‘written off’ the board (doesn’t plan to teach anything about it), because of the required setup steps and the different way of doing things with the board. From what I’ve read, the RPI AI Hat has received good marks for it’s vision model processing capabilities 

McWhorter is a good teacher (IMO). He’s very methodical, goes step-by-step, and uses his HW’s as the introduction to the next topic, which is good. But, he has his idiosyncracies and you have to get used to them. His coding style is… well, that’s not the way I was taught how to do it (way back when)! Thanks for the ‘heads up’ on the book.

@tfmccarthy,

"What you can take some credit for (as well as @lee-g, but don't tell him 'cuz he has a swell head already.) is that it provokes more members to contribute to the discussion. That's something we need more of around here, me thinks."

Agreed, with one small exception:

"A swelled head...."  Me??  Never!!  I'm just a (really) old, fat, retired guy, going around and causing trouble!! 🤣

Take care, y'all!!



   
ReplyQuote
Inq
 Inq
(@inq)
Rocket Scientist or Space Cadet
Joined: 5 years ago
Posts: 2072
 

Posted by: @tfmccarthy
↑

What you can take some credit for (as well as @lee-g, but don't tell him 'cuz he has a swell head already.) is that it provokes more members to contribute to the discussion. 

Posted by: @lee-g
↑

"A swelled head...."  Me??  Never!!  I'm just a (really) old, fat, retired guy, going around and causing trouble!! 🤣

Take care, y'all!!

 🤣 Do you all know each other outside of the forum?  You sound like life-long buddies and crack me up! 🤣 

Posted by: @tfmccarthy
↑

My premise is that the "traditional" methods of teaching C++ are so god-awful and scare people away. In this regard I would recommend the book Principles and Practice Using C++ by Stroustrup as a excellent example of how to present C++.

Maybe you can see a way.  I did give it a lot of thought.  I just couldn't see a way to ensure they're getting some value out of the class.  For C++ at the entry level, any assignments out of class can easily be solved by AI in seconds.  Having them code in class w/o AI sounds kind of ridiculous too.  It's not the grading for their GPA or the school's benefit, it's that if I'm going to teach it, I want to know they understand it and are actually getting the education they're paying for!

My background is coming from Fortran and then lock-step with Microsoft.  I used every version of Microsoft C from version 1.0 in '83.  I was entrenched with procedural programming and when C++ hit me in '92 I wasn't ready.  "Why should I double my code base to do the same thing with this OOP stuff!?"  It took me many months of self abuse before it finally clicked.  Now, I can't imagine doing any coding without OOP.  Hell, I even force JavaScript into OOP designs.  The point being, I'm not sure I see a way to jumpstart that click for students within a semester.  I'll take a look at your recommendation.  Thanks!

Posted by: @tfmccarthy
↑

That's something we need more of around here, me thinks.

When I returned to the forum a couple months ago, it was instantly apparent that something had seriously changed while I was gone.  I understand Ron was excommunicated for something and I'm sure that probably cut the traffic by 80%.  It must have been major whatever it was because I remember far more abusive people getting away with derogatory remarks AT people.   He somehow found a way to contact me directly later.  I didn't broach the subject nor did he elaborate on it.  We chatted about other things in our lives.

But, yes! more encouragement to the new people, beginners or experts...

 

... which brings me to the real post reason.  Do you have topic for your Smart Car?  I did a search via the built-in search engine AND Google Advance Search and neither of them brought up a likely candidate.  Do you have a link to your topic?  If none exist... WHY?  Shouldn't you take your own advice and publish?  I've tried goading @lee-g about his robot too?  You never know... a casual comment to your all's projects might just open the flood gates.

Don't make me get out the cattle prod.  

https://www.youtube.com/shorts/GpBked6k9Uk

Regards,

Inq

 



   
ReplyQuote
TFMcCarthy
(@tfmccarthy)
Member
Joined: 2 years ago
Posts: 519
 

@inq 

Do you all know each other outside of the forum? You sound like life-long buddies and crack me up!

No, we don't know each other. Just two old farts who don't give hoot. Though I confess I instigate a lot of the banter. My impish nature.

For C++ at the entry level, any assignments out of class can easily be solved by AI in seconds.

I agree that AI assistants present a real challenge for educators. I'm going to hold off on my answer becasue I haven't focused on that aspect. I'm more concerned with understanding algorithms and the programming process. I think understanding the problem is more valuable than how you got the answer. In any case, this issue will resurface.

Do you have topic for your Smart Car? ... Do you have a link to your topic? If none exist... WHY?

A fair question.

The answer is my sad tale of my year 2026 so far.

Last winter we had an unusual snowfall here in Baltimore with heavy snow that turned into concrete. The accumulated snow on my roof came down in a huge slabe that crushed the awning on my front proch. We're talking bent metal. Ripped the awning itself to shreds. Had to wait until spring to replace it at a pretty penny.

I think that's when I started the SmartCar 4 project. I purchased the kit, built the car, and ran the demo programs. I was just starting to write the kit review when I discovered the main sketch didn't work. I began investigating that when...

...one third of the ceiling in my living room collapsed! No warning; no failure indicaters, cracks, or leaks. It just fell out onto the furniture. I was lucky not to be underneath it becasue I would have gone to the hospital with serious injury. A day later, another thrid fell out.

I was able to get a contractor in to demolish the rest of the cieling and get it replaced. That was an even prettier penny. The Smartcar Project was set aside until construction ended in about Jume. At that time we decided to examine the dining room ceiling and discoverd the panels there were bulging suspiciously. I decided to schedule that ceiling for repare. Two weeks later....

...one thrid of that ceiling collapsed! The only indicator was a slight bulging of the panels. There were no cracks, leaks, etc. Luckily, all the furniture had been moved out due to the work in the living room so there was no additional damage.

I got the insurance company to send out a structual engineer and he inspected all the rooms in the house. Result: they all showed tha same fatugue. The house was built in the 40's during the war and the building code then specifed the panels and the screws. That code changed over the years but nobody expectd the ceiling fall out. Hence it was called normal "wear and taer" and not covered. So I had to replace the ceilings in 5 rooms, move all the furniture, dishes, etc. not once, not twice, but three times, and go live in the cellar for a few moths breathing ceiling dust. Of course the expense made me weepy.

Now the furniture is back in place and I'm slowing getting everything back in order but it's taking time. Recently I decided to poke my nose into DBWS but didn't have the energy to post anything. I've been reviewing what did on the SmarCar and I think I have a handle on where I was an what I was up to. But I have to reset to get things back in order.

The plan is to write a kit review of what I found and then write separate project topic on my refactoring/rewrite of the project (the "Hekawi") which I intend to show how to incorporate Google Test with the program code as well as some C++ techniques that should be interesting.

I think that answers why I haven't posted the proejct so far. But I'm getting there. I haven't decided who I'm going to blame for all this but it'll come to me.

Tim


The one who has the most fun, wins!


   
Inq and Lee G reacted
ReplyQuote
Inq
 Inq
(@inq)
Rocket Scientist or Space Cadet
Joined: 5 years ago
Posts: 2072
 

OMG!  That's tragic and a blessing no one was hurt.  And certainly understandable how it would kill ALL recreational activities.  

Posted by: @tfmccarthy
↑

Hence it was called normal "wear and taer" and not covered.

Which insurance company?  That just doesn't sound right.  No! It sounds criminal.  It sounds like what some medical insurance companies used to do (or may still do) where they, deny a claim and 90% of the people "just" accept the ruling.  Especially us elderly folk.  I'll have to ask my company what they'd do in the same situation.  Besides shingles, there are no "wear and tear" items in a roof.  Unless they can prove you didn't replace shingles when there was obvious leak damage, they don't have a leg to stand on.

CAR

Now I'm real curious... can you give me a thread to pull on?  I searched the forum and Internet for "SmartCar 4" and didn't find anything.  I even added "Hekawi" and came up empty.  What was the kit you started from.  I look forward to when you can feel comfortable and get back to the important pursuit of "The one who has the most fun, wins!"

Inq



   
ReplyQuote
TFMcCarthy
(@tfmccarthy)
Member
Joined: 2 years ago
Posts: 519
 

@inq 

OMG! That's tragic and a blessing no one was hurt.

Yes, it was and I'm very grateful there was no injury.

But this is behind me now and I want to leave it in the rear-view mirror.

Now I'm real curious... can you give me a thread to pull on?

Sure.

ELEGOO Smart Robot Car Kit V4.0 Tutorial – ELEGOO Official

Don't forget Bill's video: Building the Elegoo Smart Robot Car Part 1 - Arduino based robotics project

Today's price was like $79, which I think is a good deal. The is a good platform to build on for autonomous navigation, which is a hot topic in DBWS. e.g. robotbuilder, TRandall

I'm not going to post on this here anymore until I get the kit review up. (Apologies to Lee G)


The one who has the most fun, wins!


   
ReplyQuote
Lee G
(@lee-g)
Member
Joined: 6 years ago
Posts: 130
Topic starter  

@tfmccarthy 

OK McCarthy... Enough of this moping around and feeling sorry for yourself!! I'm sorry about your problems with the storm damage, insurance, and contractors (it's enough to send anyone to the 'looney-bin!). But... chop, chop... let's get with it!! 🤣 

Have a nice day!!

...lg



   
ReplyQuote
Page 2 / 2