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

He means you'd call `increment(25)` to say you've got 25 more, or `employee.suspend()` instead of `employee.setAccess(SUSPENDED); employee.setPay(0); employee.setBenefits(NONE);`


Increment(25) still mutates the value.

What is the point here?

Point - say you have a database with 300 tables and ~3,000 columns.

You do not want to play the game of "hide the method to change the value". That is a big waste of time for everyone involved.




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

Search: