Ideas, thoughts and links about Javascript developement and the London community.
By neglecting web performance, the JavaScript community unintentionally paved the way for AMP.30-05-2017
When Fetch API became standard I was thrilled. I will no longer need to use http utility libraries in order to make http calls in my apps. XMLHttpRequest was so low level and awkward (up to its inconsistent camel casing of acronyms!). You didn’t really have a choice but to wrap it with something more comfortable or choose one of tons of open source alternatives like jQuery’s $.ajax(), Angular’s $http, superagent and my personal favorite, axios. But are we truly free of http toolkits?30-05-2017
Code coverage has finally made it out of experiments and into Chrome Canary, meaning that it will soon reach general availability. This is an exciting feature that is useful both when working with JavaScript and CSS, so I thought I’d do a quick demo and explore how it can be helpful.25-07-2017
As we build sites more heavily reliant on JavaScript, we sometimes pay for what we send down in ways that we can’t always easily see. In this post, I’ll cover why a little discipline can help if you’d like your site to load & be interactive quickly on mobile devices.27-11-2017
A modest JavaScript framework for the HTML you already have.31-01-2018
When writing async functions, there are differences between await vs return vs return await, and picking the right one is important.20-02-2018
Return the formatted date string in the given format.11-12-2018
CITY OF LONDON JAVASCRIPT CONFERENCE CITYJS CONFERENCE 03 MAY 201913-02-2019
Generic worklet to be authored right from CSS22-02-2019
One of the central themes of my talk on The Lean Web is that we as developers repeatedly take all of the great things the web and browsers give us out-of-the-box, break them, and then re-implement them poorly with JavaScript.19-03-2019
does it mutate?29-04-2019
StateX is a state management library for modern web applications with unidirectional data flow and immutable uni-state (just like redux)29-07-2019
When looking for a property value that's deep in a tree-like structure, one often has to check whether intermediate nodes exist:var street = user.address && user.address.street;11-10-2019
Don’t worry, this isn’t YAMT (Yet Another Monad Tutorial ). This is a practical post about a code smell that afflicts everyday code, and about an idiom that eliminates that smell. It just so happens that this idiom corresponds to one of the uses for monads in Haskell, but that’s just theory behind the practice, and I’ve saved the theory for the end.09-02-2020
how to manage HTML DOMwith vanilla JavaScript only?for modern browsers and IE 11+29-03-2020
How and when to leave JS out of the bundle17-04-2020
JavaScript is a scripting language that makes it possible to build interactive and complex experiences on the web. This includes responding to user interactions, updating dynamic content on a page, and so forth. Anything involving how a web page should behave when an event occurs is what JavaScript is used for.19-04-2020
JavaScript promises have always been a major win for the language -- they've led to a revolution of asynchronous coding that has vastly improved performance on the web. One shortcoming of native promises is that there's no true way to cancel a fetch...until now. A new AbortController has been added to the JavaScript specification that will allow developers to use a signal to abort one or multiple fetch calls.01-05-2020
jsPerf aims to provide an easy way to create and share test cases, comparing the performance of different JavaScript snippets by running benchmarks. For more information, see the FAQ.07-05-2020
TensorFlow.js is an open-source hardware-accelerated JavaScript library for training and deploying machine learning models.06-12-2020