Piotr Horzycki

1K posts

Piotr Horzycki banner
Piotr Horzycki

Piotr Horzycki

@peterdevpl

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

Gdansk, Poland Katılım Eylül 2016
259 Takip Edilen177 Takipçiler
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@PiotrMuller @MaciejBerek @PremierRP @JanGrabiec 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.
Polski
6
2
102
2.8K
Piotr Müller
Piotr Müller@PiotrMuller·
@MaciejBerek @PremierRP @JanGrabiec Panie Ministrze, jak przychodzi nowy pracownik do pracy to standardowo przygotowuje się stanowisko pracy na nowo w tym m. in. ponownie konfiguruje się sprzęt komputerowy. Proszę nie szukać taniej sensacji.
Polski
290
94
609
47.7K
Maciej Berek
Maciej Berek@MaciejBerek·
Z ministerialnych pokoi w Kancelarii @PremierRP wyniesiono komputery i drukarki (nie poza gmach, ale nie ma ich na wyposażeniu). Dosłownie. Mali ludzie... Od wczoraj służby IT mozolnie wszystko ponownie instalują i ruszamy normalnie z pracą. Z @JanGrabiec damy radę!
Polski
198
490
2.1K
203.2K
Piotr Horzycki
Piotr Horzycki@peterdevpl·
Here's a summary of the e-commerce/fintech topics I presented at various conferences: youtube.com/watch?v=OhFzgd… It covers handling monetary amounts, fighting with decimal numbers, APIs, localization, etc. Hope it will be useful for someone!
YouTube video
YouTube
English
0
1
1
117
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@suckup_de Also, don't use PHP streams to get data from a microservice working under Roadrunner. Use curl. Symfony HttpClient with curl works fine.
English
1
0
1
30
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@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.
English
1
0
1
57
Andrzej Krzywda
Andrzej Krzywda@andrzejkrzywda·
Value objects other than Money? For my upcoming course I prepare a module on value objects. I would love to gather as many examples as possible. Can you help and share? I will start: Discount SchoolYear Price Currency Country
English
10
0
9
3.8K
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@cor3d @andrzejkrzywda 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?
English
0
0
0
21
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@cor3d @andrzejkrzywda 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?
English
2
0
0
32
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@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.
English
0
0
1
129
Norbert Orzechowicz
Norbert Orzechowicz@norbert_tech·
Two weeks ago I quit my job, it has been 8 amazing years. I meet so many great people, and learned so many things 😍 I was able to make decisions and see their consequences over the years, it's the most valuable outcome of this journey 🤩 I'm taking 3-4 months of vacation now, starting from today! Today I’m flying to Italy to recover a bit 🇮🇹 Once I get back I will probably focus more on my open source projects 😁 Already can't wait to work on something new, building things is something that makes me super excited. Time to charge batteries 🏝️
English
3
0
18
2K
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@corp_rebels @irinablok Such worthless meetings often contain a lot of "maybe we should..." and "it would be nice to..." phrases. Lack of accountability.
English
0
0
0
25
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@corp_rebels @irinablok 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.
English
1
0
0
35
Piotr Horzycki
Piotr Horzycki@peterdevpl·
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 🎉🍬
English
0
0
1
104
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@mariuszgil Same here - "refactoring" a bathroom after bad architectural decisions that someone else made 30 years ago, with typical "quick fixes" from PRL ;-)
English
0
0
1
0
Mariusz Gil
Mariusz Gil@mariuszgil·
I spent all day long at construction stores. Reason: bathroom refactoring and hard work on not-the-best decisions made years ago 😉
English
1
0
9
0
Piotr Horzycki
Piotr Horzycki@peterdevpl·
@RyszardTerlecki To nie jest rzetelna wiedza, a tylko propaganda. Nie, nie jestem wrogiem Polski. Uczciwie pracuję i płacę solidne podatki. Też jestem Polakiem!
Polski
0
0
1
0
Ryszard Terlecki
Ryszard Terlecki@RyszardTerlecki·
„Historia i teraźniejszość”, podręcznik szkolny prof. Wojciecha Roszkowskiego od jutra do kupienia w 3500 placówkach Poczty Polskiej. Dbajmy o rzetelną wiedzę młodych Polaków, brońmy przed manipulacjami wrogów Polski.
Polski
1.7K
576
2.2K
0
Vlad Mihalcea
Vlad Mihalcea@vlad_mihalcea·
SQL brings a lot to the table.
English
36
53
557
0