Articles
My thoughts and ideas on where AI, WordPress and technology are heading next.
-
When to use React.useCallback()
I write a lot of React components which require code review. Many times during that process someone has dropped the classic line: I think we…
-
Building a standalone block editor in WordPress using Gutenberg
A few month’s ago I merged a PR to Gutenberg Core for a new documentation tutorial called Building a custom block editor. The tutorial was…
-
Learning the React Context API
I have to admit, I’ve never fully taken the time to learn React Context API. Sure I’ve “used” it, but it’s always been me skirting…
Watch the video for “Learning the React Context API” on YouTube
-
Avoiding React component re-renders with React.memo
Used properly, React.memo can help avoid unnecessary re-renders. Learn how to apply it correctly.
-
Some contributions to the Gutenberg Core Navigation Block
Over the past few months, the team I work in at Automattic were allocated to spend some time improving the experimental Navigation block in Gutenberg…
-
Deploying WordPress sites to Pressable via the command line
Pressable is a reliable and powerful WordPress hosting solution, but it doesn’t provide SSH access. So how can we achieve robust and automated deployments that…
-
On Getting Hired at Automattic
As I recently posted, I’m joining (or if you’re reading this after Nov 12th 2018 – have joined) Automattic as a JavaScript Engineer. For those…
-
Joining Automattic
I’m excited to announce that as of November 12th 2018, I will be joining Automattic – the company behind WordPress.com, Akismet and more – as…
-
What is the JavaScript Event Loop?
If you’ve been working on significant JavaScript applications for a while, you’ve likely heard engineers using terms like “non-blocking”, “single threaded” and “the event loop”.…
Watch the video for “What is the JavaScript Event Loop?” on YouTube
-
What is a closure in JavaScript?
If you are working with JavaScript it is critical that you understand the definition of a closure. Closures are widely employed in JavaScript code, for…
-
Demystifying JavaScript Function Expressions vs Declarations
I was recently asked to explain the difference between a JavaScript function expression and a function declaration. This one always caught me out until I…
-
Introducing FetchPjax – PJAX (PushState + Ajax) navigation functionality using the native Fetch API
For the past couple of weeks I’ve been working on a new JavaScript library to handle PJAX using the native Fetch API that’s build right…