@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
#software #engineer at
@TheBrightBox
| #guitarist | #musicoholic | #booklover
@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
@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.
New blog post on composition and inheritance as concepts, when to use them and when not to, with PHP examples.
#php #programmingconcepts #inheritance #composition
https://draganatanasov.com/2023/04/02/composition-vs-inheritance-in-php/
@djustink thank you!
New year, new blog post :) Some thoughts on the repository pattern.
#php #laravel #nodejs #nestjs #designpatterns
https://draganatanasov.com/2023/01/15/repository-pattern-explained-with-laravel-and-nestjs-examples/
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
I'll be speaking at the #SkopjeWordPressMeetup on December 15th. Come hang out!
https://www.meetup.com/skopje-wordpress-meetup/events/289904689/?fbclid=IwAR10f312wPwaFUIt0k_DCJ3Fh5W8rPmJIaq-dXiNqLr_smbMBDNo9W3vyz8
@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.
How you can use Data Transfer Objects in PHP https://draganatanasov.com/2022/11/12/data-transfer-objects-in-php/ #php #webdevelopment #designpatterns