Don't use method syntax for your TypeScript function types!
March 31, 2022In TypeScript, there are a few ways to type functions. But did you know that using the method syntax to define your functions in TypeScript is not type safe?
Written by Chris Colborne, an Aussie software engineer from Brisbane, Australia. Follow me on Twitter
In TypeScript, there are a few ways to type functions. But did you know that using the method syntax to define your functions in TypeScript is not type safe?
Running code after changing state is a common desire. Lets look at how to do that with hooks.
Object destructuring is just a way of extracting certain keys directly from an object. It's used quite heavily in React and other modern JavaScript frameworks. In fact you probably already use it. Let's break it down bit by bit, so that you can read it like a pro.
Gatsby is an awesome static site generator, but you need to get your data from somewhere. What are your options for headless CMSs?
So you've built an awesome React powered site. It's shiny, and cool, and does everything you need... until your client/boss/best mate's dad asks about social sharing meta tags.
One of the parts of React that trips people up is understanding state and how to update it.
You know the feeling. You get a spare moment jump in and do some updates on an old app. But you try to get it running and the dreaded npm…
The latest version of PHP 7.4 is coming soon. Release candidate 1 (the first of 6 planned RCs) was just released on 5th September and 7.4 is…
One of the cool new things coming out from Facebook Open Source is GraphQL. What is GraphQL? GraphQL is a specification for communicating…
Over the last month or two, I've started something new. I've started a new blog over at https://www.modernjsforphpdevs.com.
One of my colleagues has been playing devil's advocate and hitting me with variations of the following question for a week or two now. His…
In the last post , we introduced Webpack Encore and why it makes for a quick start for modern JS with Symfony. In this post, we'll set up a…
Symfony 2 introduced Assetic to provide asset management. Back in 2011, in the days of server rendered application, this pure PHP solution…
Inspired by the excellent (but very thorough) Mercurial to Git Rosetta stone, here is a bare bones, back to basics, KISS mapping between Hg and Git.
Importing extracted markdown from SharePoint wiki into Confluence
Over the Christmas break, I decided to write a SharePoint scraper in Python. At work we have a SharePoint based wiki that is universally disliked and thus is poorly used despite containing a lot of useful information. I've been trialling Atlassian Confluence as a replacement and it seems a much better solution.
Hi everyone, I'm Chris. I'm a Software Engineer in Brisbane, Australia.