Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
A person wouldn't have any method. Persons are autonomous objects. They use their sensors as only input data and react to that autonomously. There are no direct ways to control their behaviour. - hence no methods. You can only indirectly make their sensors give them information that might or might not make them decide to do what you want them to do.
-
@Oktokolo For ease of use, we still consider people as a facade with certain general methods. You tell something to a person, not an ear.
-
@lorentz Actually, you don't even tell anything an ear - you just broadcast the message into the air and hope that it will be sensed by the intended receiver 😛
-
@Oktokolo That is the transport layer. The act of telling someone something involves picking a medium based on known schedules, urgency, significance, sensitivity. If the medium is sound, it likely depends on a channel. In most western cultures, the handshake for this channel begins with broadcasting the recipient's contextual name.
-
@lorentz Still no methods - just messages that get passed into a repository and then (maybe) "pulled" from that.
-
@Oktokolo The abstraction of delivering a message to a recipient exists. It is fallible, there are false negatives and, to the extent that you can tolerate them, false positives, but it's still a unit action and therefore a method, at least in my model. Often of course I prefer a more refined approach, but the fact that I can have very similar conversations over both instant message, high latency VoIP and a beer, is testament that the abstraction works.
-
TheEnd7042yA few implementation ideas:
AddHope(IList of Lie Objects)
GetFirstJob() {this.hope —} (that’s
minus minus)
AttendMeeting() {this.hope = 0;}
Professor: Envision a person as an object, what methods would it have?
Student: Run
Prof: Yes, good example.
Other student: Jump
Prof: yes, people also do that
Me: Die
Prof: Well yes, but I'd prefer we don't take this any further
random