Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
pwillard Guru Joined: 07/06/2022 Location: United StatesPosts: 313
Posted: 07:09pm 11 Jul 2022
Copy link to clipboard
Print this post
Oh, man... I also saw a lot of this "unnecessary" setting and assigning being done in Arduino code... to the point of feeling nauseous about it. Granted... most Arduino coders are absolute beginners so it is sort of expected... but they should be willing to see why they can write better code. (sometimes, they even listen to advice... but it's rare)
Tinine Guru Joined: 30/03/2016 Location: United KingdomPosts: 1646
Posted: 06:21am 12 Jul 2022
Copy link to clipboard
Print this post
This is why MMBasic on a MCU should be in every school. I imagine students being graded based on code/memory efficiency.
The impression I get (not being too informed) is that every Arduino solution is a library function.
I was so anal regarding efficiency in the QuickBasic/DOS days that I couldn't get enough of doing whatever I could in MASM. Ended-up with QuickBasic being not much more than the glue for MASM .obj's.