I
I
Igor2013-11-19 06:47:05
Freelance
Igor, 2013-11-19 06:47:05

PHP or Python, which is more convenient and profitable?

Interested in web development. At the moment, a few I know, mostly use php, python, ruby. The latter somehow does not impress (plus, they say, it is gluttonous, and I have little RAM), php and python remain. By rn more orders. A lot more. But is it worth the hassle? And how much longer, compared to PHP, does it take to learn python to reach the level of earning the first money on freelance?
And yes, if PHP, then which framework should you pay attention to? With python, there are no particular options - django is everything for us.

Answer the question

In order to leave comments, you need to log in

14 answer(s)
X
xmoonlight, 2013-11-25
@HashCode

PHP of the latest actual release version - definitely.
Framework: yiiframework.com

A
Alexsandr Pegushin, 2013-11-19
@jijidesign

Honestly, you wrote complete nonsense.
Money, money, money everywhere. But how to grow spiritually?
PS
PHP - there is a chance to make money - write various tricks for CMS, as well as all sorts of websites of entrepreneurs Vasya from the provinces of X. (This level contains a lot of school competition)
Python - A powerful tool. There are brains and direct hands, you will find work both in freelancing and in the office.
Why did I specify the brains in Python, but not PHP? In fact, in both cases it is better to have brains well trained in algorithmic tasks, but in PHP, as practice shows, everyone is coding.
Make a conclusion.

P
Pavel Dolinin, 2013-11-19
@pavel_dolinin

For freelancing, definitely start with PHP

X
XimikS, 2013-11-19
@XimikS

Ruby hasn't been a glutton for a long time. And writing is much nicer than in php.
I do not recommend this PHP at all. Yes, there is a lot of work, but there are a lot of programmers, but there are only a few good programmers.
The language, compared to Ruby and Python, is generally very ill-conceived - it was originally created for non-programmers.
I recommend Ruby on Rails. Copying my old answer:
I started with Django, but one day I came across rails and this tutorial and fell in love with them.
Why Rails?
- Rapid development. Rails puts this at the forefront, and at the same time, Rails scales pretty well.
— Ecosystem. For rails, a whole cloud of gems for all occasions. Authorization, authentication, templating engines, paginators, working with images..
— Testing. Probably the most advanced testing in the rail ecosystem :) Just try such gems as RSpec, Capybara, FactoryGirl
- Language. After a simpler python, I was a little afraid of ruby. Well-written code reads like English text, especially when using DSL.

C
Crash, 2013-11-27
@Bandicoot

As I already wrote in one of the comments, I would advise a newbie to the web to start with layout and learning JavaScript. From the front end, in short. PHP is dangerous as the first language, it corrupts) And it is more difficult to find a job in python and, as a rule, already held specialists are needed. Python, Ruby and other languages ​​can always be studied in parallel, in your spare time

N
nixischev, 2013-11-19
@nixischev

Learn PHP first, then learn Python. this way you will have a freelance job, and let Python remain as a hobby while you study

Q
Quber, 2013-11-19
@Quber

I would recommend Node JS + Angular JS + HTML5 + CSS. Speed ​​+ Asynchrony. Yes, and easy to learn. There may not be many orders for such a bunch, but this is a promising direction.

A
Aleksei Podgaev, 2013-11-20
@alexiusp

I, like the authors above, recommend learning both languages. As one of the above unsubscribed correctly noted, truth is known only in comparison. To understand how this or that language works, what features, strengths and weaknesses it has, in what tasks it is better to use this language in the end, you always need a sample for comparison, i.e. another language.
Therefore, learn both languages ​​in order to be able to apply them in different tasks, which means having a wider range of potential freelance customers.
And, yes, about freelancing, I would not be in a hurry. It is better to first work full-time in some office in order to gain experience: planning working hours, interacting with colleagues and customers, and so on. When you work for a year at a normal job, then decide whether you need this freelance. Not everyone can successfully freelance. Sometimes it's more convenient in the office.

D
Dmitry Prikhodchenko, 2013-11-19
@LazyProger

I'll tell you my vision of everything that happens: Php Vs Python. In php, yes, there are more orders, but there are many more developers, if you don’t have a portfolio or a name thanks to which you will find orders, then php dominance will not help you. But then Python, there are fewer orders, but, accordingly, developers in this language too. And what is better to learn, then as a PHP developer I can say that PHP, if you die, will take a very long time, so this language will be relevant for a long time, but you always need to have a card up your sleeve!

V
Vladimir Balin, 2015-02-16
@krocos

To program for the web, first understand the client/server architecture and re-read the definition of http a few times! An ordinary programmer experiences a lot of new emotions when he suddenly realizes that http is a request-response exchange in text form ... Believe me, there are many such unfortunate progers (shkolota?) Who don’t even know this! Actually, it seems to me that they create a negative image of php among other PLs. The right framework will help you understand all this. Correct, in the sense - focused on the http philosophy, for example, symfony (I’ll also say yii and laravel, so as not to offend anyone;), because just reading the symfony book already expands the minds of beginners))) And even if you do web programming applications, then you need to be a pro in this, in order to fulfill yourself, in order to love it, otherwise,

A
atawerrus, 2018-11-11
@atawerrus

I am a php developer, and I advise it, but again, not because I write on it, I also write js and the popular vue framework, I also used a node, and actively, php helps to create many times faster and more productively and better supported architecture than the same python, thanks to the development of OOP, it also increases the speed of python, it has a lot of orders and cool specialists are out of competition, you decide.

V
Vitaly Zheltyakov, 2013-11-19
@VitaZheltyakov

It's better to learn PHP + JS (with AJAX of course).

A
avegolove, 2015-01-04
@avegolove

If you learn php, you will break your brain, you will fall into a deep hole and get stuck there for a long time and it will be difficult to get out... Learn ruby ​​For freelancing, definitely rub. And it’s natural to take orders not on a freelance site, but to get a job online in a company as a ruby ​​on rails programmer. And you will have a pleasant job and a steady income. And not brain-fucking with this pehepe.

W
wegas22, 2019-08-11
@wegas22

My opinion is that the programming languages ​​Python and PHP are different and useful in their own way.
**Python is not exactly Web, its main advantage is artificial intelligence, neural networks.
***PHP can also write a semblance of all this, but it will not be quite cool like in Python ... PHP is still sites, most sites work on it, these are cool CMS on which you can deploy Landing (one-page sites) much faster and easier. If you need something more, use frameworks.
My opinion if you go the PHP way. Learn PHP basics -> PHP 7 OOP basics -> MVC pattern -> Laravel PHP framework (very handy and well developed framework).
**Python is a language for everything, it can also be used to write applications for Android, IOS, Windows, linux.
***PHP is a language for the Web, you won't be able to write full-fledged applications for Android, IOS, Windows, Linux. Applications for Windows, Linux can be written, but it will not be quite a program. Maybe it will look like a program, but when you run it, Apache and the browser will be launched
. It will choose the type itself, even if you didn't explicitly specify it, but for example in PHP 7 you can force the data type to be specified, again PHP will not swear if you don't... All this makes PHP programmers write "Crutches" ( proverb: and so it will do ...) - the programs seem to work, but a situation may arise when the user did something wrong (indicated the wrong type) and everything fell.
Again, it all depends on the programmer, the language has nothing to do with it. You can write in any language with crutches... In any programming language, you can write shitty code even in Python.. It all depends on you, good luck!!...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question