> As two chances to think about your code. As "pair > programming with Java". You are reminded to think about > the left side, which should be an interface. And is this > a List or a Set? Is there an order, can an element appear > twice, think!. Maybe it's a Map!
By application of the inductive hypothesis, I propose:
List foo is_a List = (List) new create allocate ArrayList() is_a List as List
My God. Think of the productivity.
Here's a mental exercise: every time you use your IDE to generate a bunch of boilerplate java code, think to yourself: why isn't the compiler doing this? My conclusion is that it is primarily due to a lack of two things: type inference and closures.
What's that saying about arguments and the internets?
Cheers, Carson
Flat View: This topic has 370 replies
on 371 pages
[
«
|
171819202122232425
|
»
]