"value":"\n <p>Something interesting that <a href=\"https:\/\/www.daveliddament.co.uk\">Dave Liddament<\/a> and I discussed was the use of value objects in application code.<\/p>\n\n<p>Instead of using a primitive type, such as <code>string<\/code>, you can create a new value object for a specific type of string, such as an <code>EmailAddress<\/code> or, in my side project, a <code>LicenceKey<\/code>.<\/p>\n\n<p>Both are strings, but using value objects of specific types can make the code more readable and its intent clearer.<\/p>\n\n<p>A value object can contain additional logic, such as validation to execute an ensure the value object is valid, such as making sure a string is not empty, is a specific length or only contains valid characters.<\/p>\n\n<p>This an approach that I'm going to use more going forward.<\/p>\n\n<p>I also found <a href=\"https:\/\/www.youtube.com\/watch?v=yJpvObzKewY\">a lighting talk by Dave<\/a> at a PHPSW meetup where he explains this further and, of course, you can listen to the podcast episode after it's been released.<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>Something interesting that <a href=\"https:\/\/www.daveliddament.co.uk\">Dave Liddament<\/a> and I discussed was the use of value objects in application code.<\/p>\n\n<p>Instead of using a primitive type, such as <code>string<\/code>, you can create a new value object for a specific type of string, such as an <code>EmailAddress<\/code> or, in my side project, a <code>LicenceKey<\/code>.<\/p>\n\n<p>Both are strings, but using value objects of specific types can make the code more readable and its intent clearer.<\/p>\n\n<p>A value object can contain additional logic, such as validation to execute an ensure the value object is valid, such as making sure a string is not empty, is a specific length or only contains valid characters.<\/p>\n\n<p>This an approach that I'm going to use more going forward.<\/p>\n\n<p>I also found <a href=\"https:\/\/www.youtube.com\/watch?v=yJpvObzKewY\">a lighting talk by Dave<\/a> at a PHPSW meetup where he explains this further and, of course, you can listen to the podcast episode after it's been released.<\/p>\n\n ",