Relative Content

Tag Archive for dry

Does decoupling trump DRY in REST?

I am building a REST API to expose most of functionality of an existing Java API. Both APIs are for internal use within my organization; I do not have to design for external use. I have influence over both APIs but am implementing the REST one. The Java API will continue to be used for local applications (it’s not being “retired”), but the REST API will be used for significant new development.

Many small classes vs. logical (but) intricate inheritance

I’m wondering what is better in terms of good OOP desing, clean code, flexibility and avoiding code smells in the future. Image situation, where you have a lot of very similar objects you need to represent as classes. These classes are without any specific functionality, just data classes and are different just by name (and context) Example:

How to avoid code duplication across unrelated projects [duplicate]

This question already has answers here: Best practices for sharing tiny snippets of code across projects (12 answers) Closed 11 years ago. I’m a contractor at a large Telco where I’m usually working on several different projects at once. The VCSs I use (mainly git and mercurial) tend to make me keep the code bases […]

Practices for domain models in Javascript (with frameworks)

This is a question I’ve to-and-fro’d with for a while, and searched for and found nothing on: what’re the accepted practices surrounding duplicating domain models in Javascript for a web application, when using a framework like Backbone or Knockout?

Practices for domain models in Javascript (with frameworks)

This is a question I’ve to-and-fro’d with for a while, and searched for and found nothing on: what’re the accepted practices surrounding duplicating domain models in Javascript for a web application, when using a framework like Backbone or Knockout?