List Info

Thread: Classes or functions?




Classes or functions?
user name
2006-06-28 14:32:06
Hi all,

I have a question that's been debated very well over the internet but i'm looking for an opinion from those who use the same development language as me. I have a medium size groupware solution application which will be deployed in the next 2 months. My main concern right now is the speed in production mode. Till now i've been using functions to do everything in the application but as the size of the app grows I see the need to write more and more functions thereby increasing the size of the include files and thus affecting speed. I was wondering if classes would be better to use in such a scenario. What would you use to build a medium sized application and to make it futureproof?

Thanks,
Gaurav

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

Classes or functions?
user name
2006-06-28 15:44:50
This is a huge difference. 4 years ago, i wouldnt touch
classes in PHP,
since than, almost everything i write is OOP PHP. Since the
release of
5, not using object code is a sin.

I would not judge the need for classes on the 'size' of
the
application, but more about the application itself... think
of data
rows as 'objects'... how could they be represented as self
contained
entities, and how would those entites interact with each
other?

Basic needs for OOP should determine the use, not the size
of the app
alone.

Joel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )