News for hackers. Stuff that matters.
Re:Tips for beginning systems and software engineers by mbrock on Thursday May 19, 2016 @06:54AM (#11729249)
Unfortunately, it's difficult to pinpoint the time to abandon that initial flexibility and create a test suite.

Moreover, creating that test suite after the project has grown is likely to be tedious, too... and often requiring serious refactoring to accommodate testing practices.

The XP folks were always all about changing requirements and flexible code, and unless they're all deluded, it's not true that testing necessarily hampers a new project.

Re:Tips for beginning systems and software engineers by lowmagnet on Friday May 20, 2016 @07:48PM (#11742420)
When I start a new maven project, it comes with junit by default and with the test tree created. The first thing I do when starting a nontrivial class is to hit the shortcut for create new test. I should make it fail empty classes in the test tree. Automating the testing burden helps especially when interfacing with a tricky API; sometimes it's mocking, sometimes it's a real object in isolation.