Re:Write tests. Not too many. Mostly integration
by diggernet on Friday October 27, 2017 @02:14AM
(#15566114)
Perhaps a well written, easy to follow guide on how to structure different types of code to simplify testing would be helpful. Know of any?
[ Parent
| on HN ]
Re:Write tests. Not too many. Mostly integration
by arkh on Friday October 27, 2017 @03:27AM
(#15566367)
Working Effectively with Legacy Code is a good read: it presents what kind of code you want to attain and methods to get there from a crappy code base.
The definition of legacy code for the author (which I like) is: untested code. So the book is more about getting code in a testable state than random refactoring to get to Clean Code level.
Re:Write tests. Not too many. Mostly integration
by josteink on Friday October 27, 2017 @04:07AM
(#15566537)
That book is indeed good, at least on a personal level.
It has helped me refine what I consider good code and good effort wrt to testing.
Re:Write tests. Not too many. Mostly integration
by davidjnelson on Friday October 27, 2017 @02:47AM
(#15566234)
Object Oriented Software Guided By Tests is good.