Object Design Style Guide by Matthias Noback

Object Design Style Guide by Matthias Noback

Author:Matthias Noback
Language: eng
Format: epub, pdf
Publisher: Manning Publications


“A third-party library has some object design issues. What do I do?” The QueryBuilder example in this section was inspired by the actual QueryBuilder class from the Doctrine DBAL library (http://mng.bz/dx2v). It is just one example of a class that doesn’t follow all the rules in this book. You’re likely to encounter other classes that don’t (in third-party code, and in project code itself). What to do with them?

There are different trade-offs to be made depending on how its used. For example, do you use the “badly” designed class only inside your methods, or do instances of it get passed around between methods or even objects? In the case of Query-Builder, it will likely only be used inside repository methods. This means that it can’t escape and be used in other parts of your application, mitigating the design risk of using it in your project. So even if QueryBuilder has some design issues, there really is no need to rewrite it or work around it.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.