5 ms·
Because it wasn't designed for long-running processes or data processing at first. It evolved a lot, but I don't see it outside of simple backends for websites.
by f311a 5y ago
Because it wasn't designed for long-running processes or data processing at first. It evolved a lot, but I don't see it outside of simple backends for websites.
- The_Colonel 5y agoThat applies to Ruby and Python as well.
- f311a 5y agoNot sure about Ruby, but Python is a pretty popular choice. There are tons of open source projects that are used by big players for data processing and complex backends.
- The_Colonel 5y agoMight be used for that, but Python certainly wasn't "designed for long-running processes or data processing at first" which was your original argument. These 3 languages are pretty comparable in many ways.
- captn3m0 5y agoUnless you're doing matrix multiplications, PHP will work reasonably well. It's probably not the right tool for the job (because python's data ecosystem is too deeply entrenched in the ecosystem), but if your codebase is already in PHP, you can easily do long running processes in PHP (similar to how you'd write Rails jobs with ActiveRecord queries in Ruby).
- mschuster91 5y ago> It evolved a lot, but I don't see it outside of simple backends for websites. I'd say that something like MediaWiki, Wordpress or Drupal exceeds the definition of "simple backend". Personally, I even tend to write shell scripts in PHP simply because the language is far more sane than Bash (and god forbid naked old sh) and I don't have to fight whitespace with Python.
- f311a 5y agoWordpress is a complex project, but its backend does not require any background processing.
- mschuster91 5y agoIt does, even Wordpress has a cronjob - scheduled publishes, UGC postprocessing, IP ban expirations, there's a lot going on behind the scene.
- f311a 5y agoDon’t they trigger when a user opens a page?
- The_Colonel 5y agoIsn't it funny how (ba)sh always gets a pass and PHP is hated even though bash is a complete insanity?
- darthrupert 5y agoDoes anyone think bash is good though, like some people on this thread seem to believe about PHP?