andersnylund.
Using custom page extensions in Next.js has helped me structure my project better, and meanwhile it has improved the readability of the code and allowed me to have colocated tests.
More Posts
Try-harding at work
It’s cool to be casual
Next.js and Prisma integration tests
A simple example of how to create integration tests with Next.js and Prisma.
TypeScript – filtering arrays with type guards
Filtering arrays and infering the type is possible in TypeScript with help of type guards.
Azure Blob storage octet-stream to PDF
This script reads the invalid file using the base64topdf library, decodes it, and saves it as a PDF that can be opened with any tool capable of reading PDF files.
An use case for JavaScript template tags
JavaScript template strings are an easy way to concatenate strings or using templates to create strings where some parts are populated from previously defined variables.
useLocalStorage hook with TypeScript
I found myself in a situation to constantly insert the same data into HTML forms over and over again while developing. The useState hook store the value in the component's state, but when refreshing the page or submitting the data the form data is reset.
Reading techniques for "boring" texts
Reading is easy, but reading and understanding at the same time is difficult and takes time.
Supercharge your keyboard
I am using a modified keyboard layout and I think that it's great. Compared to a standard keyboard layout, it has made me a faster and more effective typer, but also helped in my problems with my sore wrists and elbow after long sessions at my desk and laptop.
I created a blog
MStack (JavaScript, APIs, and Markup) is a new buzzword in the web-world, and I am trying to de-mystify it.
The road to GraphQL
I'm continuing my path to becoming a fullstack developer that is not scared of either side of the web development stack.
Third time's a charm
For some time I've wanted to create my own personal site and a blog associated with it.
Hello, hello!
This site has been up for a while now just waiting for something to happen. Finally I got myself to write something here.