Quick Tips

  • The sprintf() and printf() functions in PHP are often used for formatting strings. While they are very similar, they serve slightly different purposes. Let’s dive into the practical differences between the two: sprintf() The sprintf() function is primarily used to format a string but does not print it directly. Instead, it returns the formatted string…

    Read more →

  • Typically, when I need to debug something with dev tools on a mobile layout, Chrome’s device toolbar is sufficient enough. Occasionally, it’s necessary to debug right on the device, since certain things differ between Safari and Chrome’s emulation. The downside is that, at the time of writing this, you can’t use dev tools on your…

    Read more →

  • When debugging in JavaScript, browser extenstions can be a potential source of confusion. At the very least, they may add additional noise to the process. In order to make sure you’re not dealing with any extra code outside of your application, you can use Incognito Mode to browse in private. This disables all of your extensions…

    Read more →

  • I knew GitHub supported emojis – I often use them in PR messages, comments, etc. What I didn’t know is that you can also add emojis in your commit messages. For example, if you wanted to include an Octocat emoji, you can write your commit message as follows: If you’ve spent any time working in…

    Read more →