Course of Domain Modeling: Value Objects

Javier FerrerRafa Gómez

By Javier Ferrer y Rafa Gómez Software Design and Architecture

The Value Object pattern is one of the most well-known, but also one of the most hated. In the course, we see how to make the most of it and how to facilitate its use to turn that hate into love.

💸 First lesson available without registration 💸

Value Objects are a Software Design pattern that provides many advantages. To list a few:

  • Immutability: Value Objects are immutable, meaning that once created, they cannot be modified. This immutability can help prevent errors and make the code easier to reason about since you don't have to worry about state changes.
  • Readability: By stopping the use of primitives and starting with classes, we will give semantic names. We will also have methods within the Value Objects that help us better understand the code thanks to their names.
  • Reusability: Value Objects act as a magnet for our code. From the moment we model a CourseName class, any logic that belongs to it will go there instead of being duplicated in multiple places or with some forced abstraction.

Among other things, in this course you will learn to:

  • ✨ Leverage the potential of Value Objects: More maintainable applications
  • 🧼 Transform an application without Value Objects
  • 🫡 Value Objects beyond their class
  • 🫰 Value Objects under discussion: How we store, instantiate, and test

Related courses

See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Access to a subset of courses to lay the foundation for maintainable, scalable, and testable code
  • Company invoice
Popular

standard

24,92 €
Save 121
Annual payment of 299
per month
  • Full course catalog
  • Design and architecture challenges
  • Highlighted solutions videos for challenges
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89
Annual payment of 499
per month
  • All previous benefits
  • Early access to new courses
  • More benefits coming soon

We won’t increase the price while your subscription is active