At this point, articles evangelising test driven development have been done to death. However, I think they often miss the big selling point to people who have tried or been forced to write tests and never enjoyed the task. Programmers who work alone, or small teams working on smaller projects will often never seen the point of introducing tests which appear to be more of a hindrance than a help. …
Have you ever heard of web components? Maybe you have wondered how much effort is involved in creating one? Maybe you have made a web component but then wondered what is the point and have just gone back to using your favourite framework. In this blog post we will walk through the process of creating a simple web component. We will also introduce different techniques for creating web components and discuss cases where web components can be useful in modern web development.
Browsing indiehackers.com one day, I came across an interesting interview with the creators of peakfeed.com — a social…
I love Vue. When I first looked at it in 2016, perhaps I was coming from a perspective of JavaScript framework fatigue. I’d already had experience with Backbone, Angular, React, among others and I wasn’t overly enthusiastic to try a new framework. It wasn’t until I read a comment on hacker news describing Vue as the ‘new jquery’ of JavaScript, that my curiosity was piqued. Until that point, I had been relatively content with React — it is a good framework based on solid design principles centred around view templates, virtual DOM and reacting to state, and Vue also provides…
ES5 has been around for a few years now and it’s safe to say that most developers are using the new features in all of their JavaScript applications — assured of the wide support among modern web browsers. Some of the useful functional-programming-inspired features of ES5 included the array methods forEach/map/reduce; these features are merely syntactic sugar, but they are nice to use none-the-less.
Here we are a few years later, and now the async/await keywords are all the rage. …
The de facto standard of reading text files in node.js is to use fs.readFile(filename, “utf8")
. It’s quick and simple to write code using this function — we just tell node.js to open a text file for us and in the callback we get a great big string of text, upon which we can use all kinds of javascript string wizardry.
For quick prototypes, or if we’re just dealing with small text files, this approach is completely fine. …
JavaScript developer & data visualiser.