I Like Kill Nerds
  • Home
  • Aurelia 2
  • Aurelia 1
  • About
  • Shipped
  • Consulting

    Javascript

    96 posts in this category

    Javascript

    Recursively Fetch Data From The GitHub API Using Octokit

    Aug 17, 2020 2 min read
    Recently I began updating TidyFork to be written in Aurelia 2. As such, I took the opportunity to change how the repositories were loaded in the UI. There are numerous Octokit libraries provided by …
    Javascript

    How To Calculate A Javascript Date X Months Ago With Vanilla Javascript

    Aug 17, 2020 2 min read
    Working with dates in 2020 are still a mess. Presumably, they’ll also be a mess to work within 2021, 2022 and for a good while after that. Many (myself included) reach for a date library to fill …
    Javascript

    How To Convert An Object To An Array In Vanilla Javascript

    Aug 11, 2020 1 min read
    I do quite a lot of work with Firebase and when you are working with authentication claims, they will be returned as an object containing your simple values (usually booleans). Thankfully, since …
    Javascript

    How To Add Feature Flags Into Your Javascript Applications

    May 22, 2020 1 min read
    Feature flags are a great way to prevent stale branches by regularly shipping features in your code without officially enabling them. A feature flag let’s you turn code on and off, in the case …
    Javascript

    How To Get Last 4 Digits of A Credit Card Number in Javascript

    May 21, 2020 1 min read
    Recently whilst working on my Aurelia 2 book, for the example application where you checkout I needed to add in the ability to provide a card number and when it saves, the last 4 digits of the card …
    Javascript

    I Used To Hate Using Reduce In Javascript, And Now I Can't Stop

    Apr 27, 2020 2 min read
    I used to be vehemently against using `reduce` in Javascript. It wasn’t because I thought there was a better way, I actually think the functional programming purists and their aggressive …
    Javascript

    How To Develop A Seedable Dice Roll/Number Guess In JavaScript

    Apr 24, 2020 2 min read
    Recently whilst working on some blockchain specific code, I needed to write a random number generator to simulate generating a range of numbers, except it needed to be predictable. The same input …
    Javascript Node.js

    How To Get The Hash of A File In Node.js

    Apr 19, 2020 1 min read
    Whilst doing some work in a library I maintain, I needed to add in the ability to calculate the hash of an included file for an integrity check feature I was adding in. The resulting solution is …
    Javascript

    Preferring If Statements over Ternary Operators In Javascript

    Jan 13, 2020 2 min read
    Every so often thought-pieces will go around proclaiming that you are writing code the wrong way and that you should be writing your code this way instead. One such opinion I have seen (and will not …
    General Javascript

    Select Change Event Not Firing When Using Characters On Keyboard

    Dec 23, 2019 1 min read
    Here is a nice bug-not-bug to close out in 2019. One of my Trello cards detailed what sounded like an error: When toggling between two options (yes and no) in a dropdown, entering “y” …
    ← Newer Posts
    1 ... 3 4 5 ... 10
    Older Posts →

    © 2025 - I Like Kill Nerds