I'm interested in how experienced.Net developers might handle routine
display tasks as a general strategy. Let's say you have a use in your domain
for value objects that encapsulate a person's Name, for example.
Would anyone write a custom format provider to display the last name first
("Phelps, Michael"), or first name first ("Michael Phelps")? Or use the
familiar name instead ("Mike"). Would you use some other technique? Would
you provide a Parse method?
How about generalized debugging ToString stratagies? Any favorite techniques
and / or tools? For example, "[FIRSTNAME = Mike, LASTNAME = Phelps]".
TIA, and thanks for sharing your experience!
display tasks as a general strategy. Let's say you have a use in your domain
for value objects that encapsulate a person's Name, for example.
Would anyone write a custom format provider to display the last name first
("Phelps, Michael"), or first name first ("Michael Phelps")? Or use the
familiar name instead ("Mike"). Would you use some other technique? Would
you provide a Parse method?
How about generalized debugging ToString stratagies? Any favorite techniques
and / or tools? For example, "[FIRSTNAME = Mike, LASTNAME = Phelps]".
TIA, and thanks for sharing your experience!
Comment