6 ms·
Symfony is an outstanding framework and a real pleasure to build with.
by tudorw 6y ago
Symfony is an outstanding framework and a real pleasure to build with.
- tasuki 6y agoI've moved on from PHP some 5 years ago. I'm not missing the language. But damn I'm missing Symfony! I prefer Scala to PHP, the language is much more expressive. When you want to replace a bit of core functionality, in Symfony, you extend the desired class, add it to the dependency injection container, and you're done. In the Play framework, I once wanted to make a one-line change to the routing. When it turned out I'd have to touch 30+ files which have hardcoded dependencies on each other, I quickly gave up.
- out_of_protocol 6y agoCheck out Rails (ruby) and Phoenix (Elixir)(Rails' successor, personal favorite of mine). Many frameworks on many languages tried to mimic rails but most failed to achieve desired level of polishing/comfort/completeness/etc
- http-teapot 6y agoThis is exactly my experience as well. Moved from PHP to Scala about 6 years ago. Symfony is absolutely amazing. For example, you can import a UserBundle from github, extend the original service class, change a couple of lines and then you have a fully functional user auth system without to rewrite/wire a bunch of things. Although I don’t enjoy writing PHP anymore, I do miss how mature it is.
- piotrkubisa 6y agoThe really nice thing of Symfony framework is database schema mapping and migrations, which have compatibility with numerous database systems and provides abstraction layer [0], that among many options of interfaces have quite handy YAML-formatted schema mapping [1]. Nothing extraordinary these days but it is really stable and simple to use. [0]: https://symfony.com/doc/current/doctrine.html https://symfony.com/doc/current/doctrine.html [1]: https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/yaml-mapping.html https://www.doctrine-project.org/projects/doctrine-orm/en/2....
- mnm1 6y agoDo you ever profile doctrine? I found its overhead to be 10x the actual time of my average query. Most of the time is spent hydrating. I wonder how people can put up with such a level of performance reduction and still claim they are using decent tools.
- aosmith 6y agoOh doctrine, those were the days... I spent a couple years working on a project that was eventually rewritten in rails because there was a memory leak that required restarting the server ever night via cron.
- piotrkubisa 6y agoYeah, PHP scripts in CRON, especially those using some relational database were my nemesis that time too. The nice thing, which in PHP 5.5 was introduced is generators, that almost completely resolved the problem with memory leakage in such scripts IMHO. [0]: https://www.php.net/manual/en/language.generators.overview.php https://www.php.net/manual/en/language.generators.overview.p...
- pqb 6y agoOf course! I believe almost all PHP devs noticed, they have terrible slowdown by Doctrine and used XDebug to check where is the problem. I am not PHP dev anymore and I hope it has improved a lot since my last adventure with this ORM but I'd still advocate to not use it on client-facing interface - you can use Doctrine only for database management (CLI), while for web interface use raw PDO or equivalent (Eloquent). You can also use cache or transform page into static-site. Sky is the limit.
- conradfr 6y agoI have a love/hat relationship with Symfony but it is a a very well run project, the attention to developer experience is very underrated.
- tudorw 6y agoMust confess I do have a special hat for writing YAML :)