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

I feel the same way. Repetition is fine when you're working within a solid, well established framework. If you're writing 100s of GET endpoints, and most of them requires you to prefix your endpoints withs some @GET and @RequriesToken decorators, so be it.

If there are other forms of repetition within the user-code, there are ways of dealing with it. But writing a super class to solve superficial code repetition is most often the wrong way to go.



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

Search: