Jump to content

Classes


doddsey_65

Recommended Posts

im currently doing a large php project and i am confident i can do it. Its a basic forum like phpbb or mybb where users can download the files and instal. however i have looked through their code and i see they use classes. I have never learned to do classes since i havent had to use them yet. should i be using them now for this project? do i need to? and if so then what are the benefits?

Link to comment
https://forums.phpfreaks.com/topic/212457-classes/
Share on other sites

Hi there Doddsey_65,

 

Well, now is a good a time as any to invest some time in learning OOP, it's a real head bender though if you haven't done anything like it before, so start of simple and progress from there.  I must admit it took me a while to get into it, but really it depends on the project and whether you feel comfortable doing something new for such a large project.

 

What would be a good idea is to do it the way you feel confident, then get that into the public domain, then slowly start upgrading, then you can incrementally change it to a class driven project - coincidentally I am in the process of doing that now.

 

But we all work different, I depends on what you feel comfortable with.

 

Cheers,

Rw

Link to comment
https://forums.phpfreaks.com/topic/212457-classes/#findComment-1106911
Share on other sites

thanks for the reply. I feel more confident without doing it and i am sure i can create the whole thing without them. I just thought since this will be open source when its done that most people would see the code and think me some sort of noob with the way it is written. ive got a few tabs open atm with OOP tutorials so i will start reading them anyway.

Link to comment
https://forums.phpfreaks.com/topic/212457-classes/#findComment-1106912
Share on other sites

I agree with Pickachu, so long as the application functions and is secure & does everything as advertised, then you should be fine.  I am more or less doing the same thing as you but I have got the the point where I am trying to refine my class now; but only knowing the basics up to yet has done me no harm.

 

A decent php book will be my next acquisition - don't forget though that php4 & php5 handle classes in different ways, you can't mix them you just need to be aware of this before starting your project.

 

Cheers,

Jw 

Link to comment
https://forums.phpfreaks.com/topic/212457-classes/#findComment-1106917
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.