When you’re writing tests, you generally don’t want to write to the database, email customers, and hit third-party API’s. That’s why we need to know how to mock dependencies!
Does the idea of submitting to a code review make you sweat bullets? Or do you brush it off as a necessary evil? It should be a (hopefully positive) conversation, wherein the team agrees to the code they’re all going to have to help maintain, and maybe learns something new too.
If you’ve heard the term package manager, especially with GitHub announcing their own, you might be wondering what exactly it is. Well, it’s a way to find, reuse, and share code, among other things.
Mozilla announced they’ll no longer accept extensions with obfuscated code. It’s good news for users, maybe not so much for developers. Obfuscated code is (intentionally) nearly impossible to understand, and could easily be malicious. Let’s unpack and break down a few concepts.
When you find an API to use in your app, you’ll need to access it in a specific language - not always an easy or straightforward task. As long as you’re doing all that work, why keep it to yourself? Let’s look at creating an API wrapper that you can share with others!
An API is an Application Programming Interface, but what’s that really mean? In a more practical sense, it’s one programmer hiding the (possibly messy) details of their own code behind a nice veneer, in order to make it easier for another programmer to consume it in their own program.