Professional programmers do things in certain ways because it's more efficient. It doesn't necessarily follow that you should change that just because someone is just starting out.
Just because they're learning to code, doesn't mean that you should put artificial hurdles in front of them.
Just because they're learning to code, doesn't mean that you should put artificial hurdles in front of them.