News for hackers. Stuff that matters.
Re:I'm not sure you've really got this whole Object-Oriented... by shughes on Saturday September 04, 2010 @11:50AM (#1662878)
If you always repeat the same steps, why can't you abstract them into a single method that takes name and text as arguments. You shouldn't ever have to repeat the same set of steps in multiple locations.
Re:I'm not sure you've really got this whole Object-Oriented... by miguelpais on Saturday September 04, 2010 @12:08PM (#1662903)
Well, of course, and I ended up doing that. But that's not the point, is it? The guy in the blog post could also abstract all those lines in some method and it wouldn't make that OO design with factories and contexts any less bloated.