What makes some programming languages ​​more powerful than others?

I am going to reveal my ignorance here, but in my defense I am an accountant and I have never studied computer science.

I'm going to start a new project, and I'm considering using Python instead of PHP, although I am much more familiar with PHP because I heard that Python is a more powerful language. It made me wonder what makes one programming language more powerful than another? I believe javascript is not very powerful because it (usually) works inside the browser. But why is Python more powerful than PHP? In each case, I give instructions to the computer, so why is it better to understand some languages ​​when interpreting and following these instructions? How do I know how much “power” I really need for a particular project?

+5
source share
6 answers

Lisp, , . . . ( ) - . .

( ) , , . , , .

+8

: " X , Y". , . X ( ) , Y, , X "".

... , .

+4

, , . , Python " ", ++ " ", Haskell " ", - , . , PHP, -, ++ (, , ).

, "" . , Haskell:

factorial 0 = 1
factorial n = n * factorial (n-1)

, , . , ? . ( , .)

, , , - PHP, Python, . , , . , " ".

+4

, " ", , .

, PHP - , - ; , , , . IMHO PHP .

IMHO Python , , - , flamewars.

+1

- , , , , .

LISP , , , .

0

, . , "" , . , , , "python " .

python ( 2 ), PHP-. , python, django -help, - .

PHP , - . ", - .

- - , - . , python , . PHP .

- .

0

All Articles