Joey deVilla sums up the monkey knife fight
Joey deVilla has, at least so far, the best wrap up of the ongoing Monkey Knife fight, to quote him on that lovely term, started by Fowlers post on Human Interfaces over at his blog. He not only does a good job on summing up the discussion, but he has funny pictures as well! :)
Personally I'm somewhere in the middle. I don't think Human Interfaces necessarily go against YAGNI and Jon Tirsén, I think, has a good explanation why.
I do think that a 25 method class is easier to maintain than one with 78 methods.
However if we're talking about core libraries I do think that they should, as should most code, support the developer in not only achieving his goal but also help him do that in a way that makes his code clean and easy to understand. So I'd rather see if(list.isEmpty()) than if(list.size() == 0). Hence I'd rather see ... = list.getFirst() and ... = list.getLast() than ... = list.get(0) and ... = list.get(list.size() - 1), but then again, how often do you do need the first and the last list element? All the time? Now and then? Never?
And I do think there's a lot of crap in Rubys Array class. I think a core library should contain "utility" or alias methods for the most common use cases to make the clients code easier to read, understand, and maintain even though this might add a couple of what could be considered extraneous methods. But what's enough?








0 Comments:
Post a Comment
<< Home