Dragan Atanasov
Dragan Atanasovthe_daci@phpc.social
2023-04-03

@bobmagicii "but its good to think about it like what you have done, because now Patient can be reused in like Appointment and Prescription, etc, very cleanly."

Yes, exactly what you've said! :D

Dragan Atanasovthe_daci@phpc.social
2023-04-03

@bobmagicii thank you for your comment. Absolutely, every object has a state, and I don't think that's a problem if I'm doing something infrastructure-related or from a higher level domain, like building support classes for your entity classes or a custom ORM, as I already mentioned. This is more of a database issue than a business logic issue. However, when it comes to domain logic, inheritance can be a difficult concept to manage.

Dragan Atanasovthe_daci@phpc.social
2023-04-02

New blog post on composition and inheritance as concepts, when to use them and when not to, with PHP examples.
#php #programmingconcepts #inheritance #composition
draganatanasov.com/2023/04/02/

Dragan Atanasovthe_daci@phpc.social
2023-01-19

@djustink thank you!

Dragan Atanasov boosted:
Dejan Angelovangelov@phpc.social
2023-01-14

Published a new blog post: "Centralized exception handling with Symfony and custom PHP attributes" #php #symfony

angelovdejan.me/2022/11/24/cen

Dragan Atanasovthe_daci@phpc.social
2022-12-24

On December 15th, I spoke at the WordPress meetup in Skopje. It was a fantastic time! It's always a pleasure to hang out with such enthusiastic people as this wonderful community. Thank you for the invitation, guys!
#WordPressSkopje #PHPSkopje #php #wordpress

Dragan Atanasovthe_daci@phpc.social
2022-11-16

@nadinengland thanks for the comments! Yes, that would be the next logical step. I already have the usage of the Request class mentioned in the examples and I mentioned that I use Laravel specific stuff, but unfortunately I didn't actually add the custom Request class in the example.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst