Hacker News new | past | comments | ask | show | jobs | submit login

if it's just used for display, use a new value.

if there's more to the domain context, i'd call it rename(~). i think from the outside, it's better to articulate what you want in domain semantics, rather than implementation semantics.




i think from the outside, it's better to articulate what you want in domain semantics, rather than implementation semantics.

You've articulated here what I've actually been trying to communicate. I have no problem if a method does nothing but get/set a variable. I just think they should be named with domain semantics.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: