DEV Community

Discussion on: 5 Pillars of Learning Programming

Collapse
 
quii profile image
Chris James

I'm not sure if I agree with the notion that beginners should not write tests. Yes it can be difficult, but is a fantastic tool for training good software design because if you cant test your code there is a high chance it has a design issue.

As with everything you can 100% start simple and work your way up. I've got a number of posts on this website for taking beginners through learning TDD and i think theyre ok!

Collapse
 
rainerhahnekamp profile image
Rainer Hahnekamp

In my experience this is simply too much for beginners. They are struggling with the basic concepts like variable assignments or conditions.

Therefore I advise only to provide them with existing unit tests and make sure they are coding against them.

Collapse
 
markschweiger15 profile image
Mark Schweiger

I think there's some middle-ground there:
If the tests are quite complex then they should be provided at first, but they should be explained and not given as a black box.
If the tests are rather simple, I think some of them should be written to "get the feeling".

All in all, a great article and very interesting insight. I hope that this approach will be picked up by universities and coding bootcamps, though I don't think the academy will change their approach anytime soon.