Jérémy Decool 6/23/2015

Quand utiliser le pattern Value Object ?

Read Original

L'article explique le pattern de conception Value Object, souvent méconnu en PHP. Il détaille quand l'utiliser, par exemple pour remplacer des tableaux associatifs afin d'améliorer la lisibilité, la maintenabilité et le respect des principes SOLID. L'auteur illustre son propos avec un exemple concret de parsing XML et évoque l'utilisation d'une Factory.

Quand utiliser le pattern Value Object ?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
4
Introducing RSC Explorer
Dan Abramov 1 votes
6
Fragments Dec 11
Martin Fowler 1 votes
7
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
8
Refactoring English: Month 12
Michael Lynch 1 votes
10