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
-
I personally use it at work (with Drupal 8 (I hate this shit)), and use Laravel for one big side project. I also liked how Symfony's logic works, but I think Laravel is more fun and a lot closer from how Rails works
-
PHP is a fundamentally flawed language.
The execution model doesn't make sense for the modern web (it was an ok idea when shared hosting was the norm but with virtualization and containers it is idiotic).
The standard library is a mess.
The Java style OO functionality is not a good fit for a weakly typed dynamic language and without generics it doesn't work well with strict types (if they add generics, scalar objects and make strict types the default this would be less of an issue).
Unicode support is horrible(which is unacceptable for the web) and dependant on a crappy extension (mb_)
As for what you should use instead, it depends, PHP may be a piece of shit language that is a royal pain in the arse to work with but it is still very powerful, commonly used and reasonably fast as long as you respect the execution model (don't use laravel).
All languages suck, you just have to decide which one sucks the least for what you are doing and live with the pain. -
@kmdrn7 There a lot of stuff in common: how you manage your migrations, the seeds, the way you display the datas in the view (if you use twig / erb), how Eloquant / ActiveRecord works to find your datas ( $record = Entity::find(1) / @record = Entity.find(1))...
Obviously, Rails has its syntax and its language, but going from a techno to another has never been this easy for me :D
Related Rants
-
Andi2How to talk as a dev to a dev: 1.) Talk normally 2.) Start shouting 3.) Slow down but say it more aggressively...
-
nothappy22Why don't school and colleges don't teach git?
-
HoloDreamer25I wonder if flappy bird dev is in this community. Anyway, I want to ask you guys - What would have you done if...
Why is there so muche hate on PHP, and what should one use instead? 🤔
undefined
real question
discussion
no hate please
ok hate allowed