lastchancename:
This is another really valuable observation.
Once you understand the rules and syntax of code structure, you will soon realise there’s always three or more ways to solve the same programming problem.While(), for(), nested loops, switch-case vs if/else and so-on.
There are countless options which can only be understood after two or more YEARS of exposure to different ciding styles by different people. There is not one ‘right’ way, but some are better than others (and faster, portable, more reliable and readable)!
How you apply that code, and choose one method over another comes down to personal preferences, habit, urgency, readability and that magical ‘elegance’ touted by many seasoned developers.
(Joke: Elegance, often involves coding for the least number of compute cycles in the least relevant part of the program!)
Excellent post, unfortunately experience is pretty dirty word in this context.
Some people just do not want experience - they just want the robot to work - without it.
.
Allow me to add
writing software USED to be referred to as an "art", unfortunately it is now mostly "cut and paste" without much
thinking why.
My favorite is when people try to merge two or more "Arduino sketches" into one.
Sorry for OT remarks.