8 ms·
Do both. You need the vocab - variables, types, methods, classes, etc. And then the application - deck of cards, real life inheritance, etc. It's a highway, if
by devwastaken 5y ago
Do both. You need the vocab - variables, types, methods, classes, etc. And then the application - deck of cards, real life inheritance, etc.
It's a highway, if you teach mainly the high level mental theory, they'll get it, and won't know how to implement it. They won't be able to associate the syntax to the logic of the theory. Inversely, if you teach only the syntax and implementation, they don't understand the theory and have a very difficult time applying that code in other ways. The problem of "take this loop that does this with the data and make it do something else.".
The solution to this is simple. Practice, and purpose. You just have to get the brain used to all the funny symbols and ways of doing stuff. The best way of doing that is for the learner to care and have a goal for doing it. Self taught programmers before uni will breeze through the intro classes, while new students struggle heavily. The self taught had a purpose to make things on their own.