4 ms·
> What do you do when you're fired? You collect all your belongings, wipe your machine, and leave. I'm sure you meant to say, the you tell all your belongings
by valenterry 6y ago
> What do you do when you're fired? You collect all your belongings, wipe your machine, and leave.
I'm sure you meant to say, the you tell all your belongings to collect themselves together, the machine that it better wipe itself and then you tell yourself to go through the door...
- Udik 6y agoHaha, smart one. The point is, you can perform actions on what you own, and in turn you can ask what you own (for example a laptop) to perform an action on itself or its belongings. You don't need to know how to handle a filesystem and a specific brand of hard drive to ask your laptop to wipe itself; the laptop in turn doesn't need to know all the internals of the hard drive to ask it to perform that action.
- valenterry 6y agoI agree with that. But my answer was for https://news.ycombinator.com/item?id=25118437 https://news.ycombinator.com/item?id=25118437 > So a method call fire() on an object Employee is more "object oriented" than having HREmployeeService.fireEmployee(employeeId) Which doesn't make sense - ignoring the "to set field employedTo directly on EmployeeDAO" because that is unrelated.