antenna.io

Antenna is a small studio crafting websites and web apps.

Cover image

Advanced Vue Component Design

I just finished rewatching a few lessons from the Advanced Vue Component Design course by Adam Wathan and realised what a valuable resource it is. If you wish to learn something more about renderless components it's unbeatable.

Link

A sample API implementation in Go

Go is a good choice for creating highly optimised, lean software. Full-stack frameworks don't fit well into this philosophy. This doesn't mean that there aren't any full-featured frameworks in Go. However, very often there's no need for one.

Link

A few random facts about Go

A few random facts about Go for someone coming from a different language that were eye opening for me...

Link

Function currying in Javascript

What is function currying? The concept sounds a bit mysterious and perhaps the best explanation I could find comes from the Pro TypeScipt book: Currying is a process whereby a function with multiple parameters is decomposed into multiple functions that each take a single parameter.

Link

Stub lifecycyle hooks in Vue

It's quite a common pattern to initialise a component in a created() or mounted() hook. The problem is that these hooks will execute every time a component is mounted as part of the tests and it may not be what you want.

Link

Preload and replay sounds in Expo

Expo comes with an Audio API that provides basic sound playback and recording capabilities in React Native projects. It includes a lot of useful features, but at times can be tricky to work with because of its asynchronous nature. I collected a few bits of information that can help with setting up and playing audio in Expo. 🎛️

Link

Mock asynchronous API calls in Vue component tests

This post collects a few notes on how to mock asynchronous API calls when testing Vue components.

Link
Cover image

Create portals to render content in another part of the DOM, instead of inside the Vue component

Portals provide a way to render content into a DOM node that exists outside the hierarchy of the Vue component that creates the portal. The concept of portals also exists in React. When the need arises I rely on the portal-vue library to create portals, which provides a really clean syntax.

Link