top | item 40256789

(no title)

mzarate06 | 1 year ago

As a longtime PHP developer, my opinion differs from yours regarding PHP vs. Python syntax.

Python took some getting used to, but the more I used it the more strongly I began preferring its lack of things like curly braces, semicolons, even parenthesis in some cases. Because of that, python feels more concise, human-readable, and more efficient to write, than PHP.

I like both languages, and still rely on PHP for a lot of web work, but for data science or ML I do end up enjoying my time with python.

discuss

order

cess11|1 year ago

PHP syntax makes it relatively easy to do ad hoc code generation, for example.

Right, Python has a purpose as a glue language.