Tag page

code

Page 4 of 4

Tag archive

Posts

Page 4 of 4

    • 2 Feb 2019
    • 2 min read
    GitHub flow

    I've recently been attempting to contribute to some open-source GitHub projects with varying degrees of success. One thing that's extremely…

    • 1 Feb 2019
    • 1 min read
    Load scripts last

    So you’ve got your HTML and CSS sorted and you’ve started to drop in some customs scripts to make things a bit interactive. To keep things in…

    • 31 Jan 2019
    • 1 min read
    No Comments

    When I was first learning to code, something that came up a lot was to always comment your code. Code comments have value, but despite what my…

    • 30 Jan 2019
    • 1 min read
    DRY variables

    The concept of DRY code is simple, Don’t Repeat Yourself. So if you look at some code you’ve just written and notice it’s looking a bit moist,…

    • 29 Jan 2019
    • 1 min read
    Equals vs equals

    In JavaScript not all comparisons are created equal... see what I did there. Let’s say we’re comparing two values like this: The use of “==“…

    • 28 Jan 2019
    • 1 min read
    Zombie code

    Part of developing (and certainly learning to develop) is creating code, commenting it out, and creating a better version. As you get into a…

    • 25 Jan 2019
    • 1 min read
    Keep your friends close and your variables closer

    Back in the day, I used to have this habit of declaring all of my variables at the top of the file. My thinking at the time was it would keep…

    • 23 Jan 2019
    • 1 min read
    How to function correctly

    Coding is a fairly amazing thing to be able to do. There are effectively no limits to what can be done when you’re more or less writing the…

    • 22 Jan 2019
    • 1 min read
    Simplify conditional statements

    Consider the following code: Looks good right? It’s logical and easy to understand, just your standard if statement. All true, but over the…

    • 21 Jan 2019
    • 1 min read
    Avoid abbreviating variables

    Do you know what's super annoying when reading someone else code? Abbreviated variable or function names. Until late 2017 I hadn't done any…