درس قبلی
God Object Cleanup #3: Value Objects

God Object Cleanup #3: Value Objects

God Object Cleanup #3: Value Objects

قسمت 6
درس بعدی

درباره این درس

Extracting value objects, when appropriate, can be a useful technique for cleaning up messy classes. Use a simple metric: if you find multiple pieces of behavior that surround a single primitive or value, consider a value object. Please note that developers often have a tendency to "value object all the things," so be careful. Refactor toward value objects, rather than adopting them by default for every possible value. View the source for this lesson on GitHub.
دیدگاه های کاربران

× در حال پاسخ به: