N
N
nonil2014-11-16 20:42:49
Ruby on Rails
nonil, 2014-11-16 20:42:49

Should I learn TDD right away while learning rails?

Hello!
I am studying rails using Hartle's tutoriol. It comes with a creak, but there is understanding and progress. However, he immediately gives testing.
After Hartle, I plan to start writing my project right away.
Do you think it’s worth it to immediately bother with studying and understanding development through testing, or is it better to leave it for later?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor Vsk, 2014-11-16
@viktorvsk

At first, I gave up because the customers didn't understand why they should pay for tests, you have to write "high-quality code" anyway.
Now there is a half-written project and we just started testing. And we understand that it comes with a creak - when you don’t start at the beginning.
You should probably watch, and if you really don’t enjoy it, then it’s better to postpone it for now and return when you realize (from your own experience) that they really save time, and not just waste it.

E
Eugene Burmakin, 2014-11-16
@Freika

No, because everything will turn into pain and frustration and you will remember the rails as some kind of nightmare. There will be fluency in writing applications - then you can start.

S
Sergey, 2014-11-16
Protko @Fesor

You need to realize the value of tests. Refactoring a project without tests is pain and tears. It’s better to immediately understand the issues of testing the code, since then it will be much more difficult to force yourself, but most likely if the project is personally yours and it lives for more than a year, then it will still have to be refactored and the cost of changes will be higher or everything will eventually turn into an unsupported mess on crutches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question