Here's a quick thread to learn something about this! π
A JWT token (JSON Web Token) is just a string with a well-defined format. A sample token might look like this:
π§΅π
1οΈβ£Β You can't tell where a program is going to spend its time. Bottlenecks occur in surprising places, so don't try to second guess and put in a speed hack until you've proven that's where the bottleneck is.
Aug 11, 2020 β’ 6 tweets β’ 2 min read
Software engineering #anxiety, let's talk about it. Specifically, let me try to deconstruct my personal anxiety
π§΅π
1οΈβ£ classic impostor syndrome: it doesn't matter how good I actually am with some technology/tool/technique. Even if I can get the job done, it still feels far from adequate and I feel like I have to rush to get better to defend my job title & credibility...
Aug 4, 2020 β’ 16 tweets β’ 7 min read
I spoke about how #JavaScript module bundlers (those things like #Webpack) work under the hood yesterday at @coderful!
πHere's a short-ish summary:
1/
TLDR: Module bundlers like Webpack are not "complicated" or "magic" per se, the practice of module bundling is a complicated matter and you need to understand it before you can fully understand what a module bundler does and how to configure it correctly! π¦
2/
Jul 29, 2020 β’ 9 tweets β’ 3 min read
I love to use @StandardJS to enforce consistent code style in all my #JavaScript / #NodeJS projects. You can easily do that with:
```
npx standard
```
But I prefer to setup @geteslint for more extensibility.
𧡠Here's how I do it... π
1. Initialize a new project with:
```
mkdir new-project
cd new-project
npm init -y
```
@nim_lang just did a quick (& stupidly simple) benchmark comparing asyncHttpServer with a plain @nodejs http server. The #Nodejs server seems ~3.5x faster than the #nim one... I did expect opposite results! Am I doing something stupid or is this expected?
After setting up the @nim_lang "-d:release" flag and changing the @nodejs implementation to use the cluster module, these are some new results.