Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 A humble sugestion for the Dev Team
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 29 September 2005 :  18:18:17  Show Profile  Visit HuwR's Homepage  Reply with Quote
I don't have any objection to using classes, I am a delphi programmer so have been using them for a long time, you just have to be careful you don't over use them as in my above example, if all you require is a members name in a page then it is much quicker and a lot more eficient to have a global function to retrieve it, rather than having to instantiate an entire user object just to get at the name.<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 29 September 2005 :  20:24:22  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Why does it have to be either/or? The class would work best in situations where you are working with the entire profile (or at least large chunks of it); like registration, editing profiles, displaying profiles, etc. But for those situations where you need to just retrieve something like the name and title, or some other small chunk of info, use a general-purpose function.

I was thinking about the classes more so as a means of consolidating the validation procedures and reducing some of the redundant code. Like I mentioned above, appropriate, balaced usage.<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07