I'm currently organising the third edition Full Stack Europe. It's a conference in Antwerp, Belgium in October for developers who want to learn across the stack. We have a great line up with lots of familiar faces! Register your ticket now!
You can follow me on these platforms:
On all these platforms, regularly share programming tips, and what I myself have learned in ongoing projects.
Every month I send out a newsletter containing lots of interesting stuff for the modern PHP developer.
Expect quick tips & tricks, interesting tutorials, opinions and packages. Because I work with Laravel every day there is an emphasis on that framework.
Rest assured that I will only use your email address to send you the newsletter and will not use it for any other purposes.
Comments powered by
Laravel Comments
Want to join the conversation?
Log in or
create an account to post a comment.
5/ One more gem from the @getMailCoach's codebase by @freekmurze - How to write exceptionally good exceptions📝 in PHP 📹
twitter.com/freekmurze/sta…
5/ One more gem from the @getMailCoach's codebase by @freekmurze - How to write exceptionally good exceptions📝 in PHP 📹
twitter.com/freekmurze/sta…
(1/2) I like the idea of an exception factory, which is what you've created there, but I don't think the factory should also be an exception itself? Means it's doing two unrelated things: it's an exception, and it's a factory. [...]
How would you do it? - Define one Exception class for each discrete error?
Congrats, you've just killed de real purpose of exceptions.
Technical errors were already poorly understood an now they became political statements therefore nobody knows which character or else is causing the problem.
How do you then handle those exceptions?
This site feedback has to worth an extra 200 entries, right? 😉
Thank you for sharing all this information. I read alot on your website. But this is the second time that I kinda have difficulty watching the videos. Would that be possible to have a written version? Thank you again
Nice video. I picked up on this practice from seeing you use it in some of your open source packages. It's great, though, that you've talked about it directly via video and showing the differences. Nice...! Thx.
Good one! I only can suggest to extend these exceptions from \DomainException class, not just \Exception.
What are your thoughts on "How to write exceptionally good exceptions in PHP"?