What is SOLID? 🙄
It is a set of principles to have good software design practices compiled by Uncle Bob.
Why should I use the...
For further actions, you may consider blocking this person and/or reporting abuse
Hello Emmanuel, great article, really. I'm looking for a complete guide and with this I really find it and help me to learning these principles and how to implement on my work. I have a question, on LCP principle, and example two (invariants), do you explain: "The easiest way to avoid this would be to simply create the variable $weightOfPackageKg as a private constant" -> do you mean really to this var, or the class Shipping propiety $weightGreaterThan ?
Great explanation! The code samples (correct vs. incorrect) are great - they really helped illustrate the principles well. I am definitely bookmarking this. Thanks for putting so much work into this and sharing.
First of all thank you for the comment.
And on the other hand to tell you that thanks to comments like this I have the intention of continuing to post like this
Wow, this is really great.
This is the best explanation of SOLID Principles I found on the internet, I really like the drawing illustration as it explain well.
Very good explanation of the SOLID principles. Thank you!
In the middle of 2021-pandemic-chaos, this post came to refresh and enhance some pieces of my daily coding. I really appreciated the effort and time invested on this keystone summary as it's SOLID for coding in a good way.
I'm really happy that the post helped you
I find this article by mistake, but it's awesome explanation of SOLID principles. By myself I understand only first two. The other three are nicely explained.
First of all, thank you for the feedback, I would like the post to have more visibility but you can see the algorithm of dev.to it's not helping
Your article showed up in "Top 7 Posts From Last Week" (which is how I found it), so the algorithm doesn't seem to be hurting you. 🙂
Hahahah, Yes so it seems, but I have a small reader in which I read the dev.to via the API, and I haven't see my post on the api :D
Pretty good practical explanation! Here I go into philosophical detail about why those principles are that way, how they relate to Separation of Concerns, and how they are coherent with the natural way things are.
dev.to/xedinunknown/separation-of-...
😍 Love it
Cool article Emmanuel, thank you.
PS:
PaymentFactory.initialize()
can havePayableInterface
return type, by the way.Updated the signature of the method to
public function initialize(string $type): PayableInterface
Thank you for the feedbackLearning by making mistakes is my mojo, the way you explained SOLID is the best to teach me how it's really working. Thank you
🙏 thanks really for saying that, I'm glad my article can help you
This post is great. Good job 👏
Thank you Chema :D
I love this explanation! I learn well through analogies so I found your illustrations to be very helpful 👍🏽
Nice article, topics were really well explained!
Thank you 🤩
Best thanks.
Hey man great piece, wanna talk about in our conference? Submit here cfp-poa.thedevconf.com.br/
Regards
Really useful and nicely explained !
Thank you!!!
Loved the way you explained.
Thank you
In PHP mine too
What's the sense of this statement "$user->authenticateUser($user)"?
What do you mean?
Don't you see the double "$user"?
You are right Thank you
Recommend a website
refactoringguru.cn/design-patterns
the examples of some patterns are from that website