Refactoring towards the ubiquitous language

1,813 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
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,813
On SlideShare
0
From Embeds
0
Number of Embeds
988
Actions
Shares
0
Downloads
11
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • Loket bedienden zoveel betalen
  • Save us form boilerplate
  • Data
  • Something that acts on that data
  • 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.

    ×