You are here: Re: working with classes + php « PHP Programming Language « IT news, forums, messages
Re: working with classes + php

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация