Tag: Javascript

  • Types of Concern

    I am still struggling with the dynamic typing of JS. I guess the benefit of such an approach is needing less characters – which makes sense in a scripting language like bash, but in real programming it opens us up to a whole class of avoidable errors. To program defensively in JS would mean loading…

  • Lost in Translation

    We’re in a pretty good place now (compared to a few years ago) in terms of being able to rely on JavaScript behaving the same on different platforms. There’s still some differences (mostly in when things are implemented) but overall, not to bad once you decide to no longer support Internet Explorer. In times past,…

  • Functions in JavaScript

    As with other languages, functions are a little lumps of code with their own scope. They can optionally take some arguments, and optionally return a value. In JavaScript they often have names, can be passed around as types and have a condensed form suitable for functional programming. Scope Arguments are passed in by value so…

  • Things I love about Swift after a week of JavaScript

    So, a week into JavaScript, what am I missing? The techie in me wants to say things like Automatic Reference Counting, but actually, at my junior level, I don’t run into memory management issues on the day-to-day, so what really do I miss? Determinism When I build an iOS app, it’s frozen in time. The…

  • Step Ahead

    I was a bit pleased with myself when I started the next content element in the Complete Web Developer course to find that one and a half of the extensions I’d made to the tutorial app for my own fun were specified as the next task. In my previous post, I’d talked about using a…

  • Are you okay JavaScript arrays?

    As a visitor from sensible type-safe land, this makes me uncomfortable: As I keep learning, I’m interested to find out if JavaScript objects turn out to just be arrays. To get from here to there, you’d just need to be able to use some sort of self[2] notation to access properties from inside the functions.

  • Running Javascript in VS Code

    I’ve been using the Live Server plugin to see HTML & CSS updated as I edit, and that will also be useful when I start using Javascript for web development, but as you can see above, I’m not quite up to that. It seemed there should be a way to run JS in VS Code,…