4 ms·
"I was tired of writing code like this over and over again." This is getting tiring: public class MyGraphThingee extends Graph<Foo, Bar>
by sharednothing 16y ago
"I was tired of writing code like this over and over again."
This is getting tiring:
public class MyGraphThingee extends Graph<Foo, Bar>
- zoul 16y agoDoesn’t this issue mostly go away when using a decent editor? I also found out that while I don’t particularly enjoy writing boilerplate code, it gives me a second to rest my brain, relax, think about the context etc. I think I like the resulting "rhythm changes".
- sharednothing 16y agoJudging by the upvotes, the comment was misread. The point was that it is trivial to extend the generalization to avoid verbose references and type names.
- Luyt 16y agoDoes Java have typedefs nowadays?
- sharednothing 16y agoNo. Don't need them. https://gist.github.com/755824 https://gist.github.com/755824
- veemjeem 16y agoare you some kind of java troll?
- sharednothing 16y agoThe day that CODE posted to HN to address gaps in knowledge of someone (OP) who complains about "typing all those brackets" gets downvotes, and an entirely ad-hominum comment (yours) contributing zip to the discussion gets upvotes is the day that I am indeed a "Java troll".