Wedge

Public area => The Pub => Off-topic => Topic started by: Dragooon on October 11th, 2011, 10:50 PM

Title: Existing framework vs creating my own?
Post by: Dragooon 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....
Title: Re: Existing framework vs creating my own?
Post by: Arantor 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.
Title: Re: Existing framework vs creating my own?
Post by: Dragooon 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.
Title: Re: Existing framework vs creating my own?
Post by: Arantor on October 12th, 2011, 12:08 PM
Sounds quite reasonable though for that size project, Yii would be pretty suitable as well, I think.
Title: Re: Existing framework vs creating my own?
Post by: Dragooon on October 12th, 2011, 12:10 PM
TBH I'm not exactly comfortable with a code generating framework. Not sure why.
Title: Re: Existing framework vs creating my own?
Post by: Arantor 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?
Title: Re: Existing framework vs creating my own?
Post by: Dragooon on October 12th, 2011, 12:16 PM
According to : http://www.yiiframework.com/tour/

Although I can be completely off the hook since I didn't really dig into it.
Title: Re: Existing framework vs creating my own?
Post by: Arantor 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.
Title: Re: Existing framework vs creating my own?
Post by: JBlaze on October 12th, 2011, 10:45 PM
Symfony 2 is my personal choice.

http://symfony.com
Title: Re: Existing framework vs creating my own?
Post by: Dragooon on November 13th, 2011, 02:51 PM
I've been using Yii and it's a great framework, especially it's ORM model.