XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My mental model of programming is that the computer is the subject, the functions are verbs in imperative form ("commands" sic ;) and the arguments are direct and indirect objects.°
The benefit of OOP was to introduce "actors" which translates grammatically to subjects to me. So it should have better be named SOP. And this is not purely philosophical, because I'm struggling with people who design their class instances as data containers. (Remember this talk about "How Moose made me a bad OO programmer" ?) Hence the difference between push @a,$b and a.push(b) (the latter being JS) is passive vs active. The Perl form being "push into @a the $b" VOO
Cheers Rolf
Update°) actually that's incorrectly merging two phases, the programmer is the subject giving orders in imperative form, the program is the subject executing those orders. I'm starting to feel like a character from Tron ;) In reply to Re^6: The Basques introduced us to object orientation? (Update)
by LanX
|
|