Hot tip 🔥

If you're passing a lot of arguments to a constructor or method, try to see if you can group them and create a new class/object with the arguments as properties. It'll better describe the domain and provide additional documentation🙂

P.S. these are called DTOs (Data Transfer Objects) or Value Objects

patoui boosted

Every team member should have a voice in the decision because every developer has to live with the decision.

Show thread

Where are you finding your contributions for ? 🎃👨‍💻

How do you handle HEIC image manipulation/conversion in ?

"Simplest" solution (not really) seems to be to compile imagick with `--with-heic=yes`

Cool site note about Canada's election, all of the big political party websites are built with

WordPress:
conservative.ca
liberal.ca
blocquebecois.org

Drupal:
greenparty.ca
ndp.ca

Messed around with Kafka this weekend, setup a very basic demo using Docker. Looking to dive deeper, if you have great resources for Kafka + PHP please share! 🙂
github.com/patoui/test-kafka

Hot tip 🔥

If you're passing an associative array around, consider converting it to an object. It'll better describe the domain, provide type checks (via constructor or properties assuming you're on PHP 7.4+), and potentially documentation if you add docblocks 😃

Hello PHP social verse! How have you found your PHP calling? Whatever it may be, blogging, making tutorials, contrib to OSS, etc?

I'd like to contrib to OSS but I'm having a hard time figuring out which project make sense and how to start 😅️

PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.