137

How I make my decisions.

Comments
  • 6
    C'mon... at least search for "nodejs vs PHP benchmarks"
  • 5
    @ulaikamor more like "javascript vs php benchmarks"
  • 2
    deleted and reposted because you called php a framework, but youre still comparing frameworks to languages. smh
  • 1
    @Matthewb I think it's more about which stack to go with. If PHP is slow a framework build with PHP will also be slow.
  • 0
    I am stealing this method 👿
  • 0
    @ulaikamor did, nodejs crushed php in the first result :3
  • 0
    Can't really compare those like that.

    And if you think so you know nothing John Snow
  • 1
    A framework *is* a language. A library is also a language. I could say that JS (for example) is awful but JS+jQuery is awesome. Or any other combination. It doesn't mean that the comparison is fair, since there are useful frameworks for PHP; but OP is right that JS+node.js is probably better than "vanilla" PHP.
  • 0
    @tahnik it's not completely true. PHP is a language. It is not fast or slow. Its properties makes it hard to implement efficiently, but a framework might be able to make you write code in a way that will be easier to run fast.
  • 1
    @yusijs which PHP version did you compare? PHP 7 with Zend 9 has some pretty interesting performance figures.
  • 2
    @ulaikamor I just googled and opened the first result for giggles. I have faith in php7. I most likely wont use it, but that's more of an issue I take with the language. even then, it's probably just my eyes that have seen to much spaghetti code.

    fun fact, when I entered my current job, I looked at source for a php site. The entire form was written as an array that was looped over. nobody knew how it worked, and nobody wanted to touch it because oooompfgg spaghetti and it works :p
  • 0
    @yusijs At my current job, we use an in house development framework with a MVC architecture. It's mostly based in PHP with JavaScript to handle the initial part of the requests.

    The only problem I have with PHP is its lack of need for strict form on your code. You can have syntax errors in your PHP code and it will not break and still execute...
  • 0
    @ulaikamor agreed. We still use php a lot for work. It has its merits, but just having typechecks and interfaces (I mostly use typescript nowadays) is sooo useful, along with intellisense!
  • 1
    @ulaikamor PHP7 only perform well in microbenchmarks, it still suffers from the idiotic "run each request in isolation" thing PHP enforces which makes it slower than pretty much everything else in practice (since it has to do a lot more work each request) once you start to actually build something with it.
  • 0
    That was a bad one
Add Comment