Existing framework vs creating my own?

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Existing framework vs creating my own?
« on October 11th, 2011, 10:50 PM »
I just picked up project and am wondering if using an existing framework would be a better idea than creating one. I have never used a framework before since I always create my own whenever I work on another project, plus this isn't exactly a big project.

What do you guys think? If a framework then which one?

This project is hourly. Thanks.

PS : Typing on an iPad sucks....
The way it's meant to be

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Existing framework vs creating my own?
« Reply #1, on October 11th, 2011, 11:04 PM »
It really depends what you need the framework for. For really basic stuff (a couple of forms, minimal MVC, little/no DB scaffolding), don't bother, just roll what you need of your own.

Alternatively, big project... definitely a framework. Depending on what I need, I tend to have two positions. If it's mostly my own code but with certain biggish components, I'll look at Zend Framework. It provides lots of useful components but you're not required to use any of them - it gives you individual components for different uses. Be warned, it's pretty heavy if you use a lot of components, but it does make life easier for individual components.

If you want something more integrated as an MVC framework without the hassle, I tend to go to Yii. It's lightweight and isn't that hard to extend and work with. I've also used CodeIgniter but I found Yii easier to work with myself.

I don't know what you're aiming to get from a framework and how much you're expecting it to do on your behalf.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Existing framework vs creating my own?
« Reply #2, on October 12th, 2011, 11:57 AM »
The project is mid-sized and I want proper MVC separation. I think I'll make my own framework using some known libraries and my past experiences. Basically I'll be using TOX-G, Inspekt, custom DB query class similar to wesqlQuery, custom Token/Session handling class and my standard View/Subview class. I'll take a look at CakePHP and CodeIgnitor to give a second thought but this seems to be my current direction.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Existing framework vs creating my own?
« Reply #5, on October 12th, 2011, 12:14 PM »
Um, Yii isn't? It just throws out a sample project that you can build on top of... unless it drastically changed in the year since I last looked at it?

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Existing framework vs creating my own?
« Reply #7, on October 12th, 2011, 12:20 PM »
You *can* do it that way but you really don't have to if you don't want to.

Like everything else, it's a case of to each their own.

JBlaze

  • Boldly going where no idiot has gone before
  • Posts: 67

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841