DEV Community

Discussion on: My approach to teach programming

Collapse
 
larswaechter profile image
Lars Wächter • Edited

I definitely like the way you teach him programming. Especially the testing part.

The new interns at our company started with the basics like HTML/CSS and some Javascript. Afterwards they learnt our backend language and version control.

Within the next 3 months they had the basic knowledges. Like loops, if-conditions and so on.

Afterwards I asked them to build simple algorithms like switching the position of the highest and smallest number in an array or to sort it in a certain order. It was really hard for them to solve these tasks, even after several days they couldn't solve them and they didn't want to solve such kind of tasks any more.

Though I think these tasks helps one a lot to learn the principles of programming and the way of thinking you need. So I would recommend everybody who has already basic knowledges of a programming language to solve such kind of tasks.

Collapse
 
kodierkroete profile image
Steffen Frosch

I know exactly what you mean. I once tried to do code dojos in a company i worked. Interns besides senior and "regular" devs (whatever the hell that means). A 20 minute duration is not much to solve a problem and we time boxed it to 2 hours (with discussions between the iterations).

With each iteration the interest in solving the problem shrunk more and more. I think when you deal with complex problems on a daily basis you need a lot of discipline to challenge yourself to do these "trivial" task to learn more.

So maybe it is a motivational problem. And you are absolutely right that everybody once in a while should do these kind of tasks. And even if it is only to stay "sharp"