Skip to content

Instantly share code, notes, and snippets.

@laurocaetano
Created May 28, 2014 20:56
Show Gist options
  • Save laurocaetano/fc5fd9bf0ea85d9c4d15 to your computer and use it in GitHub Desktop.
Save laurocaetano/fc5fd9bf0ea85d9c4d15 to your computer and use it in GitHub Desktop.
  • root
    • domain (just my models, like Rails :trollface: .. Doesnt' know shit about the rest of the app (such as repositories, and the framework you are using.)
    • repository (Create, update, search and delete your objects. This guy is just an interface and could have its specific implementation (DAO), but I don't think it is necessary)
    • service (business rules)
    • controller (this guy just know the service)
    • view (know nothing about all items above)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment