Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: