43

I have always developed web software using a framework (Agile Toolkit) and it was helpful to me in all situations, but one question always concerned me:

In which circumstances it's NOT advisable to use a framework?

So a question to other veteran framework developers - when would you code in a raw good PHP instead of your framework of choice?

8
  • I can't find the exact question, but I believe this has been asked before. Commented May 8, 2011 at 3:13
  • This kind of question has a better home at programmers.stackexchange.com. Commented May 8, 2011 at 3:13
  • The benefits of not using a framework are breadcrumbs compare to the benifits of using one. If you don't like the existing frameworks, write one of your own, thats what i did Commented May 8, 2011 at 3:14
  • 3
    @Jonathan it's not duplicate. I saw that answer and it does not answer my question. Commented May 8, 2011 at 3:20
  • 2
    it looks like this questions gets quite some interest and attention. Even though it was closed originally, perhaps it's useful after all? I have nominated it for re-opening. Commented Sep 4, 2012 at 0:27

2 Answers 2

79

There are many reasons that people will suggest not to use a framework.

  • You will learn a lot by writing your own. I have been working on my own and I have learned a lot of different things about PHP that I did not know before. Overall it is a great learning experience that can be used in an interview or on your resume. It shows that you have a big interest in the language and most importantly the theory behind it rather than just the mindless implementation.
  • There are a lot of things in frameworks that you do not need and by making your own you can get only whatever you want. The framework is tailored to your own needs specifically. I for one did not like how any of the frameworks handled templates which was the biggest trigger for me to make my own.
  • Also, I am not positively sure about this one, but thinking of it logically...your own framework that is tailored to only your needs will be much faster than any of the other frameworks. Think about all of the settings that the other frameworks have to go through when loading and the database queries that involves. You save yourself all of that loading.
  • If you are going to be making a small project that will not need to be expanded on, such as a simple portfolio website, then a framework would just be more work than necessary.

There is also a very good article here that goes into other details. The author of this article starts out by talking about how he always was such a big proponent of frameworks.

http://jpst.it/jiYX

I am always going to push towards making my own frameworks unless I start doing some freelance work. I am constantly updating my framework and learning more and more. You will never hear anybody say definitely use or definitely do not use a framework because it all depends on the use.

Edit: There is also a question over at the Programmers site on this: https://softwareengineering.stackexchange.com/questions/49488/when-not-to-use-a-framework

Edit #2: One last article about why frameworks are not necessary: http://www.amberweinberg.com/you-dont-need-a-framework-if-you-have-a-good-developer/

Sign up to request clarification or add additional context in comments.

3 Comments

@romanish Thanks! Make sure to read some of my edits that I have added.
Ok I am done editing my answer. I added one last article that gives some more good points on it too.
I agree most php framework don't use templates well. This was actually why i first made a framework.
7

First Read Why use PHP framework and then decide why not use a PHP Framework

Why use a framework with PHP?

Why do I need to use a popular framework?

PHP framework (cake/smarty): How to use it and when?

6 Comments

I know that. I use frameworks for 10 years. Please read question carefully.
@romaninsh so if you have a very small scale website project then going for framework isn't a good idea!
i don't see reason, why not...
@romaninsh: "I use frameworks for 10 years. Please read question carefully." So you probably know enough to answer your question.
I never had a situation big project or small, where NOT use the framework would be somewhat beneficial. But from other responses they seem to have been is such situations. I asked what are the reasons, that's all.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.