Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
deleted and reposted because you called php a framework, but youre still comparing frameworks to languages. smh
-
tahnik389918y@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.
-
Can't really compare those like that.
And if you think so you know nothing John Snow -
elazar10308yA 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.
-
elazar10308y@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.
-
@yusijs which PHP version did you compare? PHP 7 with Zend 9 has some pretty interesting performance figures.
-
yusijs12508y@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 -
@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... -
yusijs12508y@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!
-
@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.
Related Rants
How I make my decisions.
undefined
javascript
php
google
nodejs