News for hackers. Stuff that matters.
Re:Testing code is simple by cowls on Thursday September 26, 2013 @08:20AM (#6450199)
Plus the article only shows the most basic kind of unit test possible. Yes, unit testing an 'add' function is easy
Re:Testing code is simple by dsuth on Thursday September 26, 2013 @08:23AM (#6450217)
I think that was kind of the point.
Re:Testing code is simple by mercurial on Thursday September 26, 2013 @08:36AM (#6450269)
The point being that testing simple things is simple?
Re:Testing code is simple by 6cxs2hd6 on Thursday September 26, 2013 @08:48AM (#6450333)
I imagine the point is to overcome inertia --- to get people to take a first step. Often that's the hardest part when someone is facing something they expect to be painful, dreary, and complicated.

It's sort of like "the first dose is free", but applied for good.

Re:Testing code is simple by steveklabnik on Thursday September 26, 2013 @08:41AM (#6450296)
Yup. "testing" is sometimes mythologized as this huge, complicated, complex thing. And it is. But it's also really, really easy. As the post says, fundamentally, you do something, then see if it did it right. That's it. Everything else builds from there.