O
O
Olga2011-01-23 11:28:39
PHP
Olga, 2011-01-23 11:28:39

New service: code from scratch or php framework?

It is planned to create a service, among the tasks of which, the main ones will be: creation and processing of simple forms, image processing, collection of visitor statistics, affiliate system. The issue of data caching and the speed of their loading is also relevant.
Should I bother and make such a service based on any php framework? And if so, which one?

Answer the question

In order to leave comments, you need to log in

12 answer(s)
M
mamontoff, 2011-01-23
@habratchanka

It all depends on the developer. If he is well acquainted with any framework, then, of course, it is better and faster to use a ready-made solution. If not, and you need a "quick start" without bothering about the problems of support, extensibility and "irreplaceable people", then of course it's better "from scratch". Moreover, almost any programmer has developments from which he will quickly assemble a simple system for you.
Although in the end, if you are counting on any serious and long-term development of the project, any popular framework will be the best choice. In fact, anyone, since the speed of work ultimately depends on the hands and not on the tool. The reasons are as follows:
- Existing documentation and community. Get rid of the problem of "indispensability" in case of turnover in the team.
- Test coverage. All popular frameworks are covered by unit tests and support automatic testing for modules.
- A much smaller number of "hidden rakes". These are extensibility problems and all sorts of unpleasant bugs in the “core” of the system. In popular frameworks, they are either solved or quickly fixed. In the "self-written" code, these problems will greatly slow down the development of the actual functionality.

G
gro, 2011-01-23
@gro

One of the most ideal questions for breeding a meaningless holivar, from which the author still does not learn anything new.

D
Dmitry Guketlev, 2011-01-23
@Yavanosta

I think writing code from scratch without using a framework is worth it only if you write a framework. And that is not always the case.

C
CGS, 2011-01-23
@CGS

Use the framework, leave the self-written noodles for experiments;)

D
deex, 2011-01-23
@deex

It seems to me that the approach to coding still has the greatest influence here.
I personally do not like to use someone else's code and prefer to make bikes - I just enjoy writing native code. for a small service, I would prefer to do without a framework, even realizing what problems may arise in the future when expanding the functionality of
my friend - on the contrary, he drags himself from different technologies and ready-made solutions
, he could make a small project quickly and beautifully on a good framework - and this process brought him would be no less fun
so, IMHO, more depends on the person

Y
Yuri Firs, 2011-01-23
@firsyura

If speed is important, then there is no better Yii .
It has excellent documentation in Russian: yiiframework.ru/

V
Vitaly Zheltyakov, 2011-01-23
@VitaZheltyakov

With your versatile functionality, there will not be much difference in efficiency between the framework or self-written code. And here and there you have to add something.
If I allow knowledge, I advise you to write from scratch, otherwise use frameworks.

S
SMiX, 2011-01-23
@SMiX

Just writing from scratch is trouble :)

I
Ivan Trofimov, 2011-01-23
@cbone

Do you want to use CMS?

P
Puma Thailand, 2011-01-23
@opium

If you need the speed of the scripts, then of course write it yourself, if you need the speed of development, then the framework.
About frameworks it is written on Habré here
habrahabr.ru/blogs/php/50341/

S
sl4mmer, 2011-01-23
@sl4mmer

Agree with. From myself, I would also advise the Zend Framework, the possibilities are wide and there are plenty of materials on it

L
lalaki, 2011-01-23
@lalaki

I advise you to consider the third option:
choose not a full stack framework, but solutions to specific typical tasks: they do not dictate how to do a project, but they allow you not to step on a typical rake that has already been polished by the foreheads of thousands of developers.
For example, ORM is one of the areas in which bicycles are least justified: choose from ready-made ones (I advise Doctrine) - it works without a framework.
And so, according to the list, you can try to identify and close the maximum of typical needs, for example,
unit testing - PHPUnit, SimpeTest, Lime,
mail - Zend mailer, Swift,
UI: server-side MVC - one set of options, use SOFEA - much easier with the server (no requirements), more difficult with the client - I advise you to study the list insixrevisions.com/javascript/promising_javascript_frameworks/ ,
etc.
As a result, you will get at least options for standalone solutions, and even ready-made frameworks / CMS can be evaluated for compatibility with these options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question