From an encoder point of view, which project should select python on top of php, where can both do this work?

I have not used python before. I have been using php for about 5 years now. I plan to study python, but I don’t know what to do yet. If I can think of a project that might be better done in python, I will use it to find out.

Edit: just add this as an important note, I mean strictly for linux, and not for multi-platform. Editing 2: I hope for objective answers, as for a specific project, and not for the general area of ​​projects, etc.

+3
source share
8 answers

Python is best suited for anything that is not part of the PHP specialty domain that creates websites.

If you need a list of programming projects that you could work on, check out this thread: https://stackoverflow.com/questions/1022738/i-need-a-good-programming-project

+16
source

PHP for sites. Python for almost any other, such as command line tools, long scripts, daemons, etc. If you are writing a PHP script and you are accessing functions in extixstix, shared memory, or other low-level materials, then this is usually a sign that Python is better suited. It's not that PHP cannot do this, but Python just does it better and is less buggy.

, , Python. PHP , . , Python (, STDIN, STDOUT STDERR. PHP posix_dup2()). , Python : -)

, PHP , - (, MVC, CakePHP).

Python , , , Python C. , Python , PHP (OpenGL, ..). , , Python .

+5

, .

Perl - CGI, . , Perl , , .

-, PHP. Perl PHP , . , PHP , , Perl. , Perl, PHP - , -.

... Django, , , Python , . Python :

  • ( , , )
  • (/ , , )
  • - ( )

Python, , , , . Python , !

+4

, .

PHP-, - , HTML , PHP .

Python - .

, , .

+3

php :

( , 2), Python. , php, , . , . , Google App Engine , Python.

, Python PHP. PHP, , , php.ini .

IMHO, , , PHP - , . Python - , , .

, , . , , , .

+2

, , . Python , Python script ; PHP .

+1

- , , Flex. -, - .

, , . - , , .

, Python... - .

+1

, Python PHP.

+1

Source: https://habr.com/ru/post/1724663/


All Articles