You are here: Re: class or function (login&calender) « PHP Programming Language « IT news, forums, messages
Re: class or function (login&calender)

Posted by Tim Roberts on 11/07/05 06:26

Carramba <nospam@note.com> wrote:
>
>I'am wondering tha is benifit off creating loggin class instead of
>function? is there eny?
>and my next thought is about calendet. I ll have 3 calenders (for 3 diff
>month) on page with ll show week, day, and they ll by clickble.
>is there any benefits to writte class instead of funktion? I mean if I
>writte class so I have to create 3 object with ll take more place in
>server memory. but if I have one funktion wich I call 3 times it ll by
>faster(?).

"Faster" should not be your concern at this point. Whatever tiny
difference there might be in performance will be swamped by the web
latency. If the class-based scheme makes more sense to you, then that's
the right way for you to make the decision.

>as for more generall class question, when in webaplications it's benefits
>to create classes instead of function?

Does it make more sense to you? Does it result in code that you can use
again in another application? Those are the right kinds of questions to
ask.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

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

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