3 ms·
PHP is getting good, sometimes I feel better than Typescript even. You can't do named parameters in Typescript unless you put every parameter as a dictionary a
by mekster 4y ago
PHP is getting good, sometimes I feel better than Typescript even.
You can't do named parameters in Typescript unless you put every parameter as a dictionary and destructure it at the method.
I just want array of class type hinting or else every return value returning an array of a class is treated as an array of mixed values unless you complement it with PHPdoc.
- ramesh31 4y ago>PHP is getting good, sometimes I feel better than Typescript even. PHP is good, and has been for years. The Zend VM is probably top 3 in the world next to JVM and V8. Incredibly more performant than Ruby or Python. The bad rap that PHP got in the early days is from all the pre-7.0 spaghetti code that was written. It’s a solid choice nowadays.
- gremlinsinc 4y agoimho, as someone who was almost a Ruby on Rails dev, because of gems, and the ease of adding packages. When laravel hit, and composer got popular that was a moot point, and php being more widely used on shared servers which was more popular w/ small clients for being 'cheap', I went w/ laravel and honestly laravel feels way more polished... For example even now with Rails you need to role your own authentication system (95% of the time that's devise) and a lot of other things baked into Laravel you need to figure out on your own, and I think they've switched asset provisioning/build systems a bunch of times, laravel has a few but each one sunset the previous mostly, except mix and vite are kinda still both in production, vite I think will probably become the defacto before long in most new projects. PHP is beautiful since 7.0, and keeps getting better. Before 7 and Before composer it was just a hackety POS, and didn't look appetizing at all, there's definitely sexier languages/frameworks out there that have 10x the reqs/second than php can get, but there's costs w/ that - and that's usually length, and time to market.
- deleted 4y ago[deleted]
- nesarkvechnep 4y agoMaybe outside the top 3 if we count the BEAM VM too.
- nuncanada 4y agoActually, I think most of the bad rap comes from the community. A community where the majority still thinks that using the CodeIgniter framework is a reasonable way to develop in 2022.
- JonoBB 4y agoI'm not sure what "community" represents here, but I don't think that CodeIgniter is the majority in any shape or form. The _vast_ majority would be Laravel and Symfony.
- jw1224 4y ago> I just want array of class type hinting This is pretty much the only thing I still need to use PHPDoc for these days... I guess it shows how far things have come :)
- gremlinsinc 4y agoIsn't that supposed to be something they're working on? I think I read that somewhere. Maybe in the 9.0 release though.