Posts
I quite like the end of the year report from Spotify that they call "Wrapped". This is a little application in which they tell you what your favorite artist was and what sort of genres you listened to the most during the year. It shouldn't come as a surprise to me that I listened to this or that, but since I listen to Spotify around 30-40 hours a week I certainly lose track of what my favorite art...
New! Recreating Spotify Wrapped In PHP
Mar 17, 2024
7 views
Let's say you had a class that you wanted to use, but there was some sort of error in creating the object. This might be that the wrong parameters were passed, or the third party service (eg. a database) wasn't available at the time of creation. If this happens you'll obviously want to handle the error correctly, but the question is would you throw an exception in the constructor or handle the err...
New! Should A Constructor Throw An Exception?
Feb 19, 2024
60 views