Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:02 02 Aug 2025 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : Constant Keyword Useage

     Page 2 of 2    
Author Message
pwillard
Guru

Joined: 07/06/2022
Location: United States
Posts: 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 Kingdom
Posts: 1646
Posted: 06:21am 12 Jul 2022
Copy link to clipboard 
Print this post

  pwillard said  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.


 


  pwillard said    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)



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.

Miss those days  


Craig
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025