Piotr Horzycki (@peterdevpl) header
Piotr Horzycki (@peterdevpl) profile picture

Trying to make software development more fun. My ebook "Mastering PDF with PHP" out on Leanpub!

Gdansk, Poland
Joined September 2016
Pracuję od 16 lat w IT i nie pamiętam, żeby odchodzący pracownicy zabierali drukarki ze sobą. Jak już ktoś inny napisał, odchodząca osoba odpowiada za przekazanie wszystkich materiałów, by umożliwić sprawną pracę nowej osobie.
6
2
102
2,776
Here's a summary of the e-commerce/fintech topics I presented at various conferences: youtube.com/watch?v=OhFzgdy_… It covers handling monetary amounts, fighting with decimal numbers, APIs, localization, etc. Hope it will be useful for someone!
1
1
120
Also, don't use PHP streams to get data from a microservice working under Roadrunner. Use curl. Symfony HttpClient with curl works fine.
1
1
30
Replying to @suckup_de
Roadrunner changes the philosophy of PHP development. If you have static arrays for local cache (like "private static array..."), you need to empty them on __destruct(). Otherwise, the data persists - it wasn't a problem in a classic "serve and exit" system.
1
1
57
Replying to @andrzejkrzywda
Timestamp Coordinate Fingerprint Certificate InvoiceNumber
1
42
Moreover, immutability refers to the fact that, for example, "EUR 100" and "GBP 100" are different monetary amounts, so it makes sense to store them as separate value objects. On the other hand, if a user changes their password, do they become a different user?
21
How do you define "important data"? A value object is immutable. Not because it's "important", but because we want to avoid bugs when passing the object to several method calls. For example, a "User" definitely contains important business data, but should it be a value object?
2
32
Great presentation, thanks for joining the meetup!
1
51
Replying to @norbert_tech
Welcome to the club! Started my vacation just 3 weeks ago, got savings for 9 months. Italy is on my list too. Development-wise, I'm investigating KSeF (mandatory from July 2024) and it's already hilarious.
1
129
Such worthless meetings often contain a lot of "maybe we should..." and "it would be nice to..." phrases. Lack of accountability.
25
It's ok to have a discussion only to find out that some things aren't worth doing. But what frustrates me is making rumble like it was the most important thing in the world and then not caring at all, hoping that someone else will take responsibility.
1
35
The most frustrating meetings are about things that someone believes are important, but turn out to be so irrelevant that even the meeting host loses interest in them shortly after.
1
129
It should be mandatory to do 10 push-ups every time someone ignores a line for @phpstan. And get a candy if you drop an ignore from the baseline 🎉🍬
1
106
Właśnie skończyłem opowiadać o branżowych mitach podczas @PHPConPoland 2022 :) Zapraszam do oglądania slajdów: slideshare.net/PiotrHorzycki…
5
In 10 days time I'll be speaking at @PHPConPoland 🎉
3
Replying to @mariuszgil
Same here - "refactoring" a bathroom after bad architectural decisions that someone else made 30 years ago, with typical "quick fixes" from PRL ;-)
1
Replying to @RyszardTerlecki
To nie jest rzetelna wiedza, a tylko propaganda. Nie, nie jestem wrogiem Polski. Uczciwie pracuję i płacę solidne podatki. Też jestem Polakiem!
1
Replying to @vlad_mihalcea
So is it considered a dad joke now?