Thoughts on the Generic vs. Specific Tradeoff
Recorded at:
- Sections
- Enterprise Architecture
- Process & Practices
- Architecture & Design
- Development
- Topics
- Database
- Rich Internet Apps
- Portal/CMS
- Enterprise Architecture
- HTTPPost
- W3C
- Methodologies
- SOA
- Domain Specific Languages
- HTML
- XML
- Architecture
- HTML 5
- Modeling
- Web Services
- REST
- Web Development
- UML
- HTTP
- QCon London 2009
- QCon
- Markup Languages
- HTTP GET
Sounds familiar
by
Michał Rembiszewski
I found one important for me point missing there though, which is code maintenance. I do agree forcing a generic solution to a peculiar problem often results in extra tedious and unnecessary work. Sometimes when the choice is not so obvious I would also consider the fact a generic solution might save you a couple thousands lines of code. These lines might be easy to write but you will have to maintain them later. And if they are easy to write you might be tempted to have them written by a novice developer which certainly won't help the code readability. So maybe it would be better to have a hundred lines of clumsy configuration after all in such case?
+100
by
Sake .
"It depends.." .. A truly generic answer :)
Probably, a generic solution is merely a specific solution to a set of similar problems.
Unfortunately, most of the time there is no definition for that similarity.
Re: Sounds familiar
by
Thomas Tarnow
Even worse is the specific and undocumented configuration DSL that you invent for your generic framework. It might work for you but 'then come the next guy'.
I would say go for the safe solution, the solution that you know will work. Boring code is very quick to write, it's the thought of repeated work that is hard to cope with. Then when you have a working solution, look for patterns, refactor and generalize.
I would worry more about the novice architect than the novice developer.
Brand New Thing Machine
by
Andreas Kleffel




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think