Criminal court procedure is governed by numerous pieces of legislation and by custom. All lawyers learn about procedure, first through going to law school and then by mentorship from senior lawyers. The most important lesson about court procedure is to be respectful and to always listen to the judge.