Web development

Your first performance budget with Lighthouse


Ire Aderinokun explains how you can set a performance budget for your website and check that it is conforming to it using Lighthouse. As she points out, Lighthouse can be run from the command line which means we can incorporate the audit into our continuous integration process.

This is a great idea and definitely something I want to develop into my own workflow going forward.

Have you thought about casing?


This is an interesting look at how we use casing in our code. In his blog post Brendt argues that snake case is more readable than camel case. I particularly like this point that he makes:-

Readable code, reduces cognitive load. Less cognitive load means more memory space for humans to think about other things, things like writing business logic.

I’ve always preferred camel case over snake case, but I think that has been for purely aesthetic reasons over how easy they are to read.

As every good developer knows the performance of their code is important. When building websites we want them to be light and fast to give the end-user a fantastic experience. However, far too often developers prefer to take shortcuts to make their lives easier, even at the expense of the site’s performance.

5 Functions of the Console Object You Didn’t Know


If you’re debugging JavaScript you’ve probably heard of and used console.log(), but there’s much more to the Console object. This article discusses 5 functions of the Console object that you may not have heard of, but you’ll want to start using from now.

Vim For People Who Think Things Like Vim Are Weird And Hard


Another good post from Harry Roberts, this time it’s why you should consider using Vim as your text editor of choice.

The mere concept of Vim is alien enough for most people to just end up dismissing or ridiculing it, but—if we’re to be objective—the fact that, yes, people still use an editor that is over 20 years old (in turn based on a tool from the 70s), and those people number in the hundreds of thousands, perhaps they might be onto something.

Personally I tend to work with Sublime Text as my main text editor, but dip into Vi/Vim often. Once you’ve learnt a handful of commands it starts to quickly become a powerful tool and it is well worth investing some time getting familiar with.