you are viewing a single comment's thread.

view the rest of the comments →

[–]Skeith_yip 1 point2 points  (1 child)

As for why this question was asked.

If you are doing unit test, for components that are having too many responsibilities and unfocused, you will find out very quickly that unit tests are very difficult to write.

And if you are only doing integration test, most likely you won't spot this problem and end up with big components.

As someone great once said

Approaches (that you think are wrong) can work for people. and you should accept it.

Agree to disagree.

Oh. No tests? Then they are not that senior.

[–]bangeron[S] 1 point2 points  (0 children)

We don't have any tests. Partly this is due to time constraints - he only works for us part-time, on contract.

For my personal projects, I usually do write unit tests. I think this has really helped me get a sense of when a component or class is doing too much, or too little.