vineri, 30 octombrie 2015

Advantages of using PHP over Python, for large scale web projects


Advantages of using PHP over Python, for large scale web projects:
  • type hinting
  • privates, protected keywords, final methods
  • interfaces and abstract classes (and traits)
  • constants/defines
  • methods are not properties!!!
  • consistent foreach usage (for both lists and dictionaries)
  • you can't read globals from a function scope without using global keyword so accidental masking will be avoided
Some advantages of Python:
  • reliable package system
  • decorators
  • class methods
  • strong duck-typing; for example you cannot concatenate an integer to a string
  • a portable alternative to shell scripts