Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, it's messaging that really forces clean encapsulation. Otherwise, you can end up in getter/setter hell, where everybody still knows everything about everything, even though all data is private.


Verbs!

Getter and setter methods on objects are like OK and Cancel buttons in dialogs. Just because it's uniform industry "best practice" doesn't make it not completely retarded and obscurantist.


Usually people think "best practice" is "everybody does it this way".


Sad, but true. And this explains the state of the Linux desktop today: copied from Microsoft instead of inspired by Apple.




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

Search: