Hacker News new | past | comments | ask | show | jobs | submit | waibelp's comments login

I'm using vagrant to work on our legacy system which is not fully migrated to docker, yet.


We used it for some testing environments, and Docker largely removed the need for it for us as well. A simple docker-compose file is often far quicker to start and with much less local system overhead than the typical VM vagrant might spit out. It’s also much more reliable - if “docker-compose up” passes for me, it’s very unlikely to fail for others. Vagrant has much more external dependencies (things like virtualbox etc) and often users can have differing versions that introduce all kinds of fun issues.

Personally I now just put a little effort into shoving whatever software we might need into a container, it’s usually not that difficult for web app style stacks.

I am by no means arguing docker plus docker-compose is a 1:1 replacement for vagrant, but for many use cases I think it can be much nicer. I would only resort to vagrant in the event containers cant solve the task at hand now.


It's possible to write bad code in every language.


Sure it is... and nearly every language has concepts i like and concepts that i don't like...

The above list is just an indeed subjective list of things i don't like about PHP, although i like PHP in general and it is NOT a PHP rant!


Symfony 4 is much more lightweight than previous versions. If you create a new symfony 4 project with composer you just get an empty project with just a hand full of dependencies. First time I tried out the v4 (coming from 2.x & 3.x) I thought that the installation did not work properly because stuff like twig (for templating) and other things were missing.

The whole integration in composer with the symfony flex component makes developing even easier than before: https://symfony.com/doc/current/setup/flex.html


Great logo!


Instead of including the vendor folder into projects you may use satis [0] to "mirror" all of your dependencies. That means you will not have any broken stuff if packagist is down or any of your dependencies are missing.

[0]: https://github.com/composer/satis


I know some php devs from munich in germany which started at 64k per year. Others earn 70k+ per year. In agencies (wordpress i.e.) jobs start at 48k.


Tbf, 70k€ in Munich is like 50k€ nearly anywhere else in Germany.


Layout is broken on mobile


Yeah unfortunately we aren't UX experts (this is the first website I've made actually) and we've been focused on building the backend and desktop site, so we haven't made the website responsive yet.


Nice article.

Worst thing I've ever seen was a class which inherited another just to keep the lines of code short (<2500). That said it wasn't just one time inheritance... It was up to four times. There was no logical split of the inheritance. It looked like someone simply split one huge file into some smaller ones.

We called that kind of inheritance "code sharding" and we had a lot of headache at that time.


This library is a great example of clean and beautiful php code out in the wild!


It's called German precision.


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: