Bennett Hardwick

5 pages tagged with "javascript"

Rewriting Facebook's "Recoil" React library from scratch in 100 lines

September 09, 2020 - 1796 words - 9 mins
Recoil is a slick new React library written by some people at Facebook that work on a tool called “Comparison View." It came about because of ergonomics and performance issues with context and useState. It’s a very clever library, and almost everyone will find a use for it - check out this explainer video if you want to learn more. Read More…

Writing safe, efficient and parallel Node.js extensions with Rust, Neon and Rayon

November 26, 2019 - 1197 words - 6 mins
When writing server applications with Node.js, sometimes JavaScript just doesn’t cut it and you need to employ native code. This could be because of a few different reasons: You need to complete a CPU-bound task Because JavaScript runs inside a VM, every operation will take longer than the native equivalent. Read More…

Using Vim as a web development IDE

June 23, 2019 - 1174 words - 6 mins
Two weeks ago I decided to make the jump - finally changing from Microsoft’s Visual Studio Code (Code) editor to Vim. Despite months and months of strenuous golfing , there was always something in my road when I tried to change editors. Read More…

JavaScript by reference AKA opening up a box of function side effects

March 30, 2018 - 421 words - 2 mins
I’ve been using JavaScript for quite a long time. Up until now, I felt like I was some kind of expert - no project was too large or too small for me to complete! I was unstoppable! That was until I found out that objects and arrays are created by reference, and my world collapsed. Read More…

Making Typescript packages JavaScript friendly

February 06, 2018 - 579 words - 3 mins
I don’t know about you, but when I first started using Typescript it was an absolute game changer for me. Even for simple projects, where I’d be writing less than 100 lines of JavaScript, I’d always opt-in to using Typescript instead. Read More…