Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

arielvalentin/sample-ruby-webservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sample-ruby-webservice

I put this example together to demonstrate how I write sinatra apps. Some of the design principles I want to demonstrate:

Domain Driven Design

  • Leverage terms in the ubiquitous language to name domain models
  • Create types that make implicit concepts explicit

Single Reponsibility Principle

  • Avoid large classes and long methods
  • Minimize logic in the web layer

Dependency Inversion Principle

  • Reduce coupling by depending on message protocols instead of types
  • Minimize dependencies to other libraries/frameworks
  • Use Rack Middleware pipeline to build up dependency tree

Common Closure Principle and Common Reuse Principle

  • Isolate the domain layer from the web application layer
  • Group types based on a bounded context

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages