T
T
Tsigulev Vitaly2011-06-02 18:46:24
Web development
Tsigulev Vitaly, 2011-06-02 18:46:24

On what to write the project today? PHP(Zend, Symfony) or Python(Django)?

Before starting the development of a new serious project, there is a choice between two frameworks of different technologies, let's discuss the advantages / disadvantages of both without holivars. I would especially like to hear the opinion of developers who have switched from PHP to Django.

Answer the question

In order to leave comments, you need to log in

20 answer(s)
T
tripiz, 2011-06-02
@tripiz

Many Yandex portals work on Dzhang - this is what it says. However, if you need something more ascetic, smarter, then pylons (also in python). I consider rails to be too slow, good for intranet portals where there is no tension in speed, and you can use pure Ruby OOP in all its glory, but on loaded projects you will have to pay for it.

G
Gibbzy, 2011-06-03
@gibbzy

Now I write a lot in php.
I'm learning python at the same time.
I think there is a tool for every purpose.
If you need to quickly make a site with 3 dynamic pages, then php will do.
Something more complicated where architecture is needed, here I always have a difficult choice between ZF and Django, but given that ZF hasn’t moved at all for a year, and they still promise a new version, I’m more inclined towards django. Symphony vs Django, it seems to me that Symphony loses significantly in terms of performance.
A young framework with a strange name Yii is now gaining popularity in php, I often use it very simple, fast enough, a lot is borrowed from rails.

J
Jazzist, 2011-06-02
@Jazzist

With PHP it is easier to find developers, and they are cheaper. There are no other advantages :)
With Python, you will get a solution with significantly better characteristics (security, performance, flexibility, etc.), and most importantly, get it much faster.

L
lesha_penguin, 2011-06-04
@lesha_penguin

If you are counting on the growth and development of your project, then definitely PHP .
Because if for PHP you can then find (of course, for a price) a couple of really experienced developers who have 5-10 years of real web development behind them.
What about experienced Python developers - can you name a lot of really experienced? Those. not those who read “Python Tutorial for Dummies” the day before yesterday, but those who have a dozen real projects behind them?
Maybe one and a half of such super-Pytonists can be found in all of Moscow, but only these super-experienced Pythonists sit in such warm places that, believe me, you won’t have enough money to lure them to you.
By the way, in this regard, I would not recommend using all sorts of "beautiful" Java type and "fashionable" Ruby type.

N
nuclear, 2011-06-02
@nuclear

Rails
High development speed, a lot of ready-made solutions, a large and active community, and performance is much higher than PHP.
Plus Ruby with beautiful OOP, again unlike PHP.

M
Mark, 2011-06-02
@printf

A few years ago I stopped writing PHP in favor of Python (Django).
The first couple of weeks I had the feeling that this does not happen. This thing is really very convenient, well documented, reduces a lot of routine tasks to two lines of code (for example, site admin, forms and validation, site versions in different languages, working with different DBMS, caching, creating RSS and sitemap.xml ...)

N
Nostromo, 2011-06-04
@Nostromo

There is a sufficient number of experienced pythonists in Moscow. And not those who have mastered one framework, namely the language and can qualitatively implement fairly large projects. I judge, because I have data on the experience of selecting such. Therefore, the post lesha_penguin with such beautiful accents is wrong, in my opinion.
The Django + tornado/gunicorn bundle is also capable of withstanding quite impressive loads. I'm more and more leaning towards not my phrase (no holivors, if anything)) "Django is the best way to program for the web."

A
antivir, 2011-06-02
@antivir

I can say that Python has advantages over PHP that do not even need to be discussed. This is generally why many choose Django. In your case, I would also add rails as an option.
An initial assessment can be made by assessing the popularity of a particular framework. For example, you can go to perhaps the most reputable programming site and measure the popularity of the tags (by entering them in the field)
stackoverflow.com/tags
Trust me, people tend to gravitate toward convenience.

V
Vladimir Chernyshev, 2011-06-02
@VolCh

With all my love for Symfony (especially the second one), I would recommend Django or RoR. I would have switched (rather to RoR), but the sins of the past are not allowed.

A
Alexey Pomogaev, 2011-06-03
@Foror

If I were you, I wouldn’t start a serious project asking such questions :) But you still won’t listen to me, as they say - “if youth knew, and old age could ...” :)

M
myadzel, 2011-06-04
@myadzel

If the "writer" has a head, then both are good. If not, it won't help.

A
Alexey Varfolomeev, 2011-08-24
@jellyfish

recently faced the same choice: django vs php-framework
a small "research" on superjob.ru gave some unexpected results:
framework (number of resumes):
django (36)
zend framework (70)
codeIgniter (33)
symfony (25)
yii php (16)
cakephp (14)
kohana (11)
programmer level is another question, but the fact is that there are django developers, and you shouldn't abandon django because of the fear of "being left without developers".

@
@nolled, 2011-06-02
_

I would take it like this:
Under Linux - python / django
under windows - asp.net mvc

U
uve, 2011-06-03
@uve

Python(Django) on Google AppEngine. An excellent choice, it is written much faster and if it shoots, there will be no problems with scaling.

A
Andrew Boyko, 2014-11-28
@anderles

MechanisM As a result, they changed their minds about doing the project. More than 3 years can not choose. ))

J
Jazzist, 2011-06-02
@Jazzist

For work, I write in PHP, because. require.
For myself - only Python.

P
Pirro, 2011-06-02
@Pirro

Depends on what you know best. Basically, I'm one of those who jumped off the PHP needle a long time ago, having come a long way through many languages ​​and frameworks. Django is a great choice, but especially for those who have been on it for a very long time. I dare to recommend you the Tornado framework, which has fewer bells and whistles, but is cleaner and easier to learn, especially for fans of the Python-way.
If you are also faced with the task of learning the language, then I direct your attention to the Go programming language and the Twisted framework.

M
multlurk, 2011-07-22
@multlurk

If you write for yourself, then first of all, see which language you like best.
If for others, then, it seems to me, the size of the community is important, well, the pace of development of the framework.
My choice is django. He is developing and the language is good. And the community is adequate, although smaller than Zend/Symfony

M
MechanisM, 2012-06-05
@MechanisM

What was chosen in the end?

Z
ZmeeeD, 2011-12-09
@ZmeeeD

I don’t know about projects on py / dj, I’m doing PHP and I’ll speak out about frameworks from personal experience (comparative analyzes inside PHP about FW are a bunch).
Maybe it will be useful for the author of the post if he leans towards the puff ... I
worked quite closely with Yii about a year ago - I really liked it and there are good ORMs there (and even under MongoDb I found it), and architectural ideology, and all sorts of modularity and many more goodies. In short, there are a lot of advantages in terms of coding. Plus, rapid development and a community with a bunch of plugins.
At the same time, I came across codeIgniter… not for long… not much, but at first glance the product also seemed to be of high quality.
Now we have been sitting with the guys on Symfony 1.4 + Doctrine for about a year. The obsolescence of the product is already felt, but everything is quite convenient (of course, it’s complicated at the time of study) - Schemes, models, plugins.
AR from yii is somehow more logical than Doctrine ORM, but this is probably subjective. We look towards sf2 - it's interesting, but it's too early to make long-term projects on it (let's wait at least a year).
And summing up - I would return to Yii.
PS
There are people who are familiar with serious projects in py and PHP. Team leaders sometimes tend to puff - they say it's more profitable.
I can’t say anything about ruby, which lives on rails, but in the light of the market economy and intuition, ROR has been pushed into the furnace for now ... and it feels like it’s not in vain))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question