Dmitry Dezuk (Dezhurnyuk)dmitrydezuk.com·Dec 5, 2024Implementing a Value ObjectIn the previous article, I introduced the concept of Value Objects as handy wrappers around primitive C# types. These objects ensure that they represent a valid value and enforce Customer invariants, which are the explicit and implicit rules that are...value objects
Charles Griffinchazbit.hashnode.dev·Nov 25, 2024Where On Earth Part 1Problem Summary In this 2 part tutorial series, we will build a software package that uses an api to take two addresses and determine the distance apart. This can be used in a variety of applications. For example, determining the optimal distance in ...30 readsstructs in php
Mayank Janiblog.mayankjani.com·Oct 7, 2024Demystifying Value Objects in PHPValue Objects are simple PHP classes that allow us to compare the values of an entity that could be in different formats. For example, money could be in multiple currencies, and it cannot be directly compared with just an amount. Let’s dive right int...PHP
screshscresh.hashnode.dev·May 28, 2024DDD Value Objects: Mastering Data Validation in PythonAlthough DDD (Domain-Driven Design) is not widely adopted within the Python community, there are several resources available on how to implement this approach in the language. Unfortunately, only a few of them offer a good way of defining Value Objec...566 readssingle-field-value-objects
Sean Kegelseankegel.com·Sep 30, 2023Laravel Data and Value ObjectsRecently, I was presented with a problem using value objects with the Laravel Data package by Spatie. I have been trying to use value objects a lot more in my code for things like money, emails, phone numbers, etc. When I am working with data from an...1 like·2.7K readsLaravel
Peter Hrobardihjital.hashnode.dev·May 19, 2023Supercharge Laravel’s validation with value objectsPhoto by Tim Gouw on Unsplash Laravel is a popular PHP framework that provides a robust and flexible validation system for handling user input and ensuring data integrity. Laravel’s validation system allows you to define validation rules for incomin...1 likePHP