Easily 60-80% of code is boilerplate.
Been writing code since the 80s. This has always been true.
The young ones don’t seem to know how to use libraries to make good use of the linker. Its all monolithic Arduino style these days. (Embedded environment)