Better HN
topnewbestaskshowjobs
Log inSign up

kjlef

4 karma · joined Mar 17, 2012 (14y ago) · 1 submissions

Submissions

comment 14y ago · link · parent

I'm not much of a python programmer, but in Java I use classes all the time. The main reason is that small classes make writing unit tests easy. I can use a mocking library like http://www.easymock.org/ to mock out whatever dependencies the code I'm trying to test depends on.

I agree on some of the presenters philosophical ideas, mainly that adding complexities into the codebase before they're needed is almost always a terrible idea, but saying that classes lead to complex code is simply not true, at least in my experience.