You just don't wake up one day and understand software development. If you do work as a software developer though, you will wake up one day and realize that you actually know very little about software development.
If your boss understands software development, then the "dangerous" situation of being asked to do "easy" (but actually hard) things disappears, because your boss will understand that the "easy" things are actually hard, and the "hard" things are actually easy.
spoiler: if your boss understands this they 1) are not doing their jobs 2) they will fail hard if they try to push their own thinking on HOW to do things
Interesting. To be clear I'm a developer and my boss is a director of application development. He used to be a dev so he understands these kind of issues.
If my boss was a product owner or a stakeholder I would not want them mandating random details about how I do things.