Classes

This is a discussion on "Classes" within the PHP Forum section. This forum, and the thread "Classes are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 12th, 2007, 00:09
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Classes

I'm really getting stuck into php now and I have recently discovered classes. I just thought I'd let people know how awesome I think they are. That's all, I don't have a question. Does anyone else think classes are awesome?

Pete.
Reply With Quote

  #2 (permalink)  
Old Jul 12th, 2007, 00:33
Up'n'Coming Member
Join Date: Sep 2006
Location: UK
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Classes

Yes, classes and OOP in general are wonderful, and in my opinion, especially when working with databases.
Except when they cause problems like this. :P

I like how the sentence "I don't have a question" is followed by a question.
Reply With Quote
  #3 (permalink)  
Old Jul 12th, 2007, 00:40
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Classes

Yeah, I never really thought that one through. I'mm looking forward to playing around with all my new found knowledge. I've previously been strictly static (html/css) but this development stuff is pretty fun too. I think so anyway though i must admit I'm finding databases to be less than riveting. Database design sparked my interest but it isn't half as exciting as it sounded. I must admit though, I think people overlook database stuff. They always seem to jump into php when I think all the MySQL stuff I'm learning now is just as challenging.

Pete.
Reply With Quote
  #4 (permalink)  
Old Jul 12th, 2007, 01:10
Up'n'Coming Member
Join Date: Sep 2006
Location: UK
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Classes

Yes, databases can be annoying.
If I find it difficult to do something with MySQL queries, I normally just pull the data I want from the database, assign it to variables, and process the variables in PHP rather than SQL. Usually solves any problems.
Reply With Quote
  #5 (permalink)  
Old Jul 12th, 2007, 13:45
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Voodoochilli
Re: Classes

I use classes for big projects, but i think some people over use them and they are a bit over kill for little jobs.
Reply With Quote
  #6 (permalink)  
Old Jul 12th, 2007, 15:08
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: Classes

I use them all the time, even for little jobs (don't shoot me voodoo! LOL).
Although I don't use PHP, I work with VBScript classes, which are sh*t in comparison.
Looking back, when I started programming, I wish I'd chosen ASP/Javascript instead of ASP/VBScript because Javascript is AWSOME for classes/objects. Everything is object oriented so you can literally do this:
Code: Select all
Number.prototype.halfMe = function(){ return this/2; };
var n = 8;
alert(n.halfMe()); // shows 4
I have loads of these little tricks that make javascript programming so much quicker, easier and enjoyable...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #7 (permalink)  
Old Jul 12th, 2007, 15:22
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Voodoochilli
Re: Classes

:zapping:

He he only joking
Reply With Quote
Reply

Tags
class, oop, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
variable classes CloudedVision PHP Forum 4 Feb 14th, 2008 03:07
Using Classes tox0tes Flash & Multimedia Forum 1 Nov 9th, 2007 14:12
Classes in PHP pas2gether PHP Forum 11 Oct 13th, 2007 17:24
Classes Gee Bee JavaScript Forum 1 Mar 8th, 2006 08:31
Styles in classes? timmytots Web Page Design 4 Dec 2nd, 2005 01:20


All times are GMT. The time now is 11:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43