Parenting is like learning a new programming language while building a product with it, and deploying every single change to production.
No one teaches you this stuff, any decision you make is “live” and could easily be wrong, but you do learn over time how to be better.