|
Posted by gosha bine on 05/16/07 15:20
On 16.05.2007 16:21 Toby A Inkster wrote:
>
> In object-oriented programming, everything's focused on "nouns". In real
> life, verbs are just as important. In pure OO, a verb (method) can only
> exist as an appendage to a noun (object). Thus instead of creating a
> function like log_error(), OO programmers create an object ErrorLogger
> with a method doIt() and somehow imagine that this is a better design.
>
In your everyday natural language, how often do you use verbs without
nouns and nouns without verbs? In OOP, when you say
client.connect_to(server)
this is exactly how you'd say it in english.
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|