Category: Optimising

  • Express snippets

    Atom snippets

    Since I’m playing with Express at the moment I’ve updated my collection of snippets to include a few things I seem to be doing regularly: Express setup I use the shortcut “myExpressSetup” to kick off all my new Express projects. It has basically all the parts I need to get the project underway, and means […]

  • Constantly letting down my variables

    Batman Variable

    As it turns out I’ve been doing everything wrong. Well, maybe not everything, but at the very least I’ve been declaring variables incorrectly. There are actually three different variable types in JavaScript, var, let, and const. I’ve been using var exclusively and it’s actually bad practice. So what’s the difference between each and which should […]

  • How to write modern JS

    Professor McGonagall - Strict

    So you’re learning JavaScript (JS), cool. Putting all this effort in, you’ll want to be learning the modern usage of the language right? Time to get strict. “use strict” is something I recently stumbled across, and it seems like a really important thing to be using. So much so that I’m a bit surprised it […]

  • Optimising C# scripts in Unity 🏎

    The more I create C# scripts in Unity the more I learn about optimising those scripts. With code there are 100s of ways to solve a problem, not all of them efficient, so learning to check your codes performance seems like a must. Things to look for So far I’ve come across a few simple […]