What we mean by discipline is not mindlessly following orders. It means that a child needs the safety of established rules and boundaries established by loving parents to help foster growth that is age-appropriate and considers brain development stages.
It means teaching a child that every behavior has logical consequences and teaching the child that they can shape their behavior to get more of the things they desire. It also means that the attitude of the parent or educator is: “Even if I do not love or appreciate your current behavior and need to impose consequences, I will always love the human being and genius in you unconditionally”