<p>At what level of complexity is it mandatory to switch to an existing framework for web development?</p>

<p>What measurement of complexity is practical for web development?  Code length?  Feature list?  Database Size?</p>

[{'answer_id': 68345, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': "<p>I don't think there is a level of complexity that necessitates a framework.  For me whenever I am writing a dynamic site I immediately consider a framework, and if it will save me time, I use it(it almost always does, and I almost always do).</p>\n"}, {'answer_id': 68349, 'author': 'aku', 'author_id': 1196, 'author_profile': 'https://Stackoverflow.com/users/1196', 'pm_score': 0, 'selected': False, 'text': "<p>All factors matter. You should measure how much time you can save using 3rd party framework and compare it to the risks of using other's code</p>\n"}, {'answer_id': 68351, 'author': 'ctcherry', 'author_id': 10322, 'author_profile': 'https://Stackoverflow.com/users/10322', 'pm_score': 0, 'selected': False, 'text': '<p>Never "mandatory." Some problems are not well solved by any framework. It would be suggestible to switch to a framework when most of the code you are implementing has already be implemented by the framework in question in a way that suits your particular application. This saves you time, energy, and will most likely be more stable than the fresh code you would have written.</p>\n'}, {'answer_id': 68354, 'author': 'mjallday', 'author_id': 6084, 'author_profile': 'https://Stackoverflow.com/users/6084', 'pm_score': 3, 'selected': True, 'text': "<p>If you work on several different sites then by using a common framework across all of them you can spend time working on the code rather than trying to remember what is located where and why.</p>\n\n<p>I'd always use a framework of some sort, even if it's your own, as the uniformity will help you structure your project. Unless it's a one page static HTML project.</p>\n\n<p>There is no mandatory limit however.</p>\n"}, {'answer_id': 68359, 'author': 'Jim Kiley', 'author_id': 7178, 'author_profile': 'https://Stackoverflow.com/users/7178', 'pm_score': 0, 'selected': False, 'text': "<p>This is really two questions, you realize. :-)  The answer to the first one is that it's never <em>mandatory</em>, but honestly, parsing HTML request parameters directly is pretty horrible right from the start.  I don't want to do it even once, so I tend to go toward a framework relatively early on.</p>\n\n<p>As far as what measurement is practical, well, what are you worried about?  All of the descriptions that you list have value.  Database size matters primarily for scaling, in my opinion (you can write a very simple app if you have a very simple schema, even if there are hundreds of thousands of rows in the database).  The feature list will probably determine the number and complexity of UI pages, which will in turn help to dictate the code length.</p>\n"}, {'answer_id': 68370, 'author': 'neouser99', 'author_id': 10669, 'author_profile': 'https://Stackoverflow.com/users/10669', 'pm_score': 0, 'selected': False, 'text': '<p>There are frameworks that are there for getting moving very quickly with a simple blog, <a href="http://www.djangoproject.com" rel="nofollow noreferrer">django</a> or <a href="http://www.rubyonrails.org" rel="nofollow noreferrer">RoR</a> all the way to enterprise full-stack applications <a href="http://www.zope.org" rel="nofollow noreferrer">Zope</a>. Not to be tied to just the buzz world, you also have ASP.Net and J2EE, etc.</p>\n'}, {'answer_id': 68371, 'author': 'scubabbl', 'author_id': 9450, 'author_profile': 'https://Stackoverflow.com/users/9450', 'pm_score': 0, 'selected': False, 'text': '<p>All frameworks and libraries are tools at your disposal. Determine which ones will make your life easier for your given project and use them. </p>\n'}, {'answer_id': 68375, 'author': 'Doug T.', 'author_id': 8123, 'author_profile': 'https://Stackoverflow.com/users/8123', 'pm_score': 1, 'selected': False, 'text': '<p>Consider that the question may be faulty. Many of the most complex websites don\'t use any popular, preexisting, framework. Google has their own web server and their own custom way of doing things, as does Amazon, and probably lots of other sites.</p>\n\n<p>If a framework makes your task easier, or provides added value, go for it. However, when you get that framework you are tied to a new dependancy. I\'m starting to essentially recreate a Joel on Software post, so I will redirect you here for more on adding unneeded dependencies to your code:</p>\n\n<p><a href="http://www.joelonsoftware.com/articles/fog0000000007.html" rel="nofollow noreferrer">http://www.joelonsoftware.com/articles/fog0000000007.html</a></p>\n'}, {'answer_id': 68394, 'author': 'Kibbee', 'author_id': 1862, 'author_profile': 'https://Stackoverflow.com/users/1862', 'pm_score': 0, 'selected': False, 'text': "<p>I would say the reverse is true.  At some point, your project gets so expansive, that you actually get slowed down by the shortcomings of the framework.  For sufficiently large projects you may, in fact, be better off developing your own framework, to meet your own needs.  I have seen many times where people were held back in the decisions they could make, or the work they could produce, because they were trying to do something that the framework didn't anticipate.  And doing these things that the framework doesn't anticipate can be very troublesome.  The nice thing about making your own framework, is that it can evolve with your project, to be a help to you system, instead of a hindrance.</p>\n\n<p>So, to conclude, small projects should be use existing frameworks.  Large projects should contain their own framework.</p>\n"}]
['https://Stackoverflow.com/questions/68340', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9094/']