How to get URL link on X (Twitter) App
https://twitter.com/wendell_adriel/status/1603342676597903365Before we start, one important preface: I'm big fan of explicitness and testability, so I'm using dependency injection everywhere (where's applicable). Examples in this thread will use it too by default, along with #PHP 8.0+ syntaxes.
First of all @davorminchorov mentioned me in his thread about enums. We initially had discussion about them under his PR (github.com/learnhubdev/laβ¦), but this thread extended it even more πhttps://twitter.com/davorminchorov/status/1598615498819653632
Value Objects encapsulate data and ensure its validity - constructor can, and should, check if provided primitive values are correct. Thanks to that, when you pass VO to other methods, you can be sure it carries proper information π
https://twitter.com/codewithdary/status/15619371180536422411) They're basically magic πͺ Some may see it as advantage, but I consider it as drawback. You don't execute exact code you're calling, but your call is proxied to some underlying service. It strictly couples your code with the framework, which handles it.