Re:Applying the Unix Philosophy to Object-Oriented Design
by zimbatm on Tuesday December 04, 2012 @09:18AM
(#4870990)
I don't think we'll have an agreement so I'll stop there :)
Every time I see something like SomeClass.new(val).some_method it makes me cringe. For me it's as if you would refactor Math.sqrt(2) to SquareRoot.new(2).value in case you want to change the implementation in the future.
Every time I see something like SomeClass.new(val).some_method it makes me cringe. For me it's as if you would refactor Math.sqrt(2) to SquareRoot.new(2).value in case you want to change the implementation in the future.