@Doug... Wow...
Unfortunately, no two projects are the same, even if they use the same hardware to achieve the same outcome.
There are no rules HOW to write ‘sketches’, or code - but there are plenty of rules how NOT to write code. The compiler often catches these!
This reflects back on my earlier comment that there are usually three or more ways to approach each individual question & answer.
If you think of that as (each function x 3 methods], and [you have 10 functions] in your code, [factorial that together], and you have a boatload of perfectly legitimate strategies to address the same question and get the same answer!
About the only two coding examples I can think of with maybe TEN possibilities each are - ‘Blink a LED’, and ‘Hello World’.
The problem grows exponentially, and the skill is not only knowing your tools, but when to use each one.