JavaScript is famously single threaded. However, if you're developing for the web, you may well know that this is not quite accurate. There are Web Workers
:
From create-react-app to PWA
Progressive Web Apps are a (terribly named) wonderful idea. You can build an app once using web technologies which serves all devices and form factors. It can be accessible over the web, but also surface on the home screen of your Android / iOS device. That app can work offline, have a splash screen when it launches and have notifications too.
LICENSE to kill your PWA
Update: 26/01/2020 - LICENSE to kill revoked!
EF Core 3.1 breaks left join with no navigation property
Just recently my team took on the challenge of upgrading our codebase from .NET Core 2.2 to .NET Core 3.1. Along the way we encountered a quirky issue which caused us much befuddlement. Should you be befuddled too, then maybe this can help you.
Teams notification webhooks
Teams notifications are mighty useful. You can send them using Markdown via a webhook.
Definitely Typed: The Movie
This post is a a little different from most that sit on my site. It's the story of the Definitely Typed project, of which I was an early member. It had a seismic impact on the development of TypeScript. When exchanging messages with Andrew Branch (member of the TypeScipt team), I realised it was an untold story, and perhaps I should tell it, before I forget! So I did, and this is it.
I named it "Definitely Typed: The Movie" as the name entertained me. Little did I know, that a few years later, a documentary would be made about TypeScript, and I'd be in it; in part thanks to writing this history. You can see more about that here.
For now, back to Definitely Typed...
Start Me Up: ts-loader meet .tsbuildinfo
With TypeScript 3.4, a new behaviour landed and a magical new file type appeared; .tsbuildinfo
Coming Soon: Definitely Typed
A long time ago (well, 2012) in a galaxy far, far away (okay; Plovdiv, Bulgaria)....
Symbiotic Definitely Typed
I did ponder calling this post "how to enable a good TypeScript developer experience for npm modules that aren't written in TypeScript"... Not exactly pithy though.
ASP.NET Core authentication: hard-coding a claim in development
This post demonstrates how you can hard code user authentication claims in ASP.NET Core; a useful technique to facilate testing during development.
Using TypeScript and ESLint with webpack (fork-ts-checker-webpack-plugin new feature!)
The fork-ts-checker-webpack-plugin
has, since its inception, performed two classes of checking:
TypeScript / webpack - you down with PnP? Yarn, you know me!
Yarn PnP is an innovation by the Yarn team designed to speed up module resolution by node. To quote the (excellent) docs:
TypeScript and high CPU usage - watch don't stare!
I'm one of the maintainers of the fork-ts-checker-webpack-plugin. Hi there!
react-select with less typing lag
This is going out to all those people using react-select
with 1000+ items to render. To those people typing into the select and saying out loud "it's so laggy.... This can't be... It's 2019... I mean, right?" To the people who read this GitHub issue top to bottom 30 times and still came back unsure of what to do. This is for you.
Template Tricks for a Dainty DOM
I'm somewhat into code golf. Placing restrictions on what you're "allowed" to do in code and seeing what the happens as a result. I'd like to share with you something that came out of some recent dabblings.
Google Analytics API and ASP.Net Core
I recently had need to be able to access the API for Google Analytics from ASP.Net Core. Getting this up and running turned out to be surprisingly tough because of an absence of good examples. So here it is; an example of how you can access a simple page access stat using the API:
fork-ts-checker-webpack-plugin v1.0
It's time for the first major version of fork-ts-checker-webpack-plugin
. It's been a long time coming :-)
ASP.NET Core: Proxying HTTP Requests with an AllowList
This post demonstrates a mechanism for proxying HTTP requests in ASP.NET Core. It doesn't proxy all requests; it only proxies requests that match entries on an "allowlist" - so we only proxy the traffic that we've actively decided is acceptable as determined by taking the form of an expected URL and HTTP verb (GET / POST etc).
TypeScript and webpack: Watch It
All I ask for is a compiler and a tight feedback loop. Narrowing the gap between making a change to a program and seeing the effect of that is a productivity boon. The TypeScript team are wise cats and dig this. They've taken strides to improve the developer experience of TypeScript users by introducing a "watch" API which can be leveraged by other tools. To quote the docs:
GitHub Actions and Yarn
I'd been meaning to automate the npm publishing of ts-loader
for the longest time. I had attempted to use Travis to do this in the same way as fork-ts-checker-webpack-plugin
. Alas using secure environment variables in Travis has unfortunate implications for ts-loader's test pack.