Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Refactoring towards the ubiquitous language

2,081 views

Published on

Slides from my Euricom Spain 2013 talk on the ubiquitous language, with an example of refactoring from an anemic model to a more rich domain model.

Published in: Technology, Business
  • Be the first to comment

Refactoring towards the ubiquitous language

  1. 1. Refactoring towards the ubiquitous language @JefClaes – jefclaes.be
  2. 2. What language?
  3. 3. When a customer moves, we want to send him an email.
  4. 4. UPDATE tbl_customer SET street = … WHERE id = …
  5. 5. It’s us, not them
  6. 6. We have forgotten how to talk • Database • Framework • ORM • Tools • Code generation • UI technology • ...
  7. 7. = =
  8. 8. The ubiquitous language
  9. 9. Better understanding of ‘the business’
  10. 10. Faster and less error-prone communication
  11. 11. Less documentation!
  12. 12. Code can be understood by everyone
  13. 13. Example Our business has customers. A customer must have a customer number, an address and an email address. A customer can move to a new address. When a customer moves, we want to send them an email.
  14. 14. Can we tell this story in code?
  15. 15. Before
  16. 16. After
  17. 17. Before
  18. 18. Before
  19. 19. After
  20. 20. After
  21. 21. After
  22. 22. Work the language, make the implicit explicit
  23. 23. Disclaimer CRUD can be fine too. Learn where the value is in your system.

×