Bad code isn't shameful

Let's be honest. We all write bad code.Sometimes, we write absolutely shocking code.In the programming community, we have an obsession with "good" code – and it's not difficult to see why. Good code is objectively better than bad code. It's faster, cleaner, more maintainable – Why would you settle for…

Why are closures so confusing?

I've seen a lot of people asking about closures on the internet.If you ask around on forums, or reddit, you have no trouble getting an answer – The problem is the answer you get looks something like this:Imagine you have a backpack. Inside that backpack there is a folder,…

How to keep your Flexbox square

If you're transitioning from absolute layouts into flex-box, you end up with this annoying situation where you want to keep something square (or at least at a 1:1 ratio). Flex-box is supremely powerful at spacing things out beautifully, and sizing them according to their parent elements, but it can…

Creating Timed Sequences in Javascript

When you start working in Javascript and building apps and webpages, you get used to running code based on inputs - someone pressed a button, and then your code gets to run.This is fine for most webpages, but what if you want to to make changes on the page…

Introduction to Readable Javascript: Code Structure

When we learn to write code, we spend a lot of our time doing exactly that - writing code. As we transition into careers and larger projects however, we find out that we actually spend most of our time reading code - and we quickly learn that developers can't write…

Writing useful unit tests

Let's face it, writing unit tests is hard.Many new coders take a long time to get into unit testing. They're scary, a lot of effort, and it's difficult to understand how they work. When we do eek out a few unit tests, they don't seem to be proving anything.…

6 Tips for making a responsive website from scratch

When you're starting out with CSS and the web, it's easy to get into frameworks like Bootstrap, or Bulma. They're an excellent tool for fast prototyping, and getting to grips with how to build a website. However, these frameworks are opinionated, and as we grow we hit a point where…

Introduction to Readable Javascript

If you've ever spent any time in Software Developer circles, you would eventually have heard of the idea of readable code. It's something everyone seems to want, but it is also accompanied by the thousand yard stares of people who have seen some shit.…