antenna.io

Antenna is a small studio crafting websites and web apps.

State management in Vue.js

Vue.js adopts a one-way data flow model, which means that state always flows from the parent components to the child components and is usually passed via props. This is a great way of managing state, because it makes things predictable. Ultimately, state needs to be shared between components. This post will explore ways in which parent and child components can share state and most importantly how child components can pass state back to their parents.

Link

Custom validator function that checks if object properties exist in Vue.js

Sometimes when passing an object as a prop to a Vue component it's important to verify that it contains all expected properties. In Vue.js this can be accomplished by writing a custom validator function.

Link

Two ways of testing Vue.js components

I've been working more with Vue.js lately and got familiar with two slightly different ways of testing Vue.js components.

Link

The power of lists and maps in SASS

If you find yourself repeating a lot of similar rules when writing stylesheets or your needs go beyond simple variables think of lists and maps. I just discovered how useful lists and maps can be and therefore share a few examples.

Link

Handling Braintree webhooks in Laravel Cashier

Laravel Cashier is already handling Braintree's 'subscription_canceled' and 'subscription_expired' webhooks and will cancel a subscription when any of those webhooks get triggered. The webhooks are handled in WebhookController, which can be easily extended to add support for other kinds of webhooks.

Link

Codeception — automated database dumps

I've been recently using Codeception and really appreciate what it can do. I see Codeception as PHPUnit on steroids. What's nice about Codeception is that existing PHPUnit tests are compatible with it, so not all work is lost for people moving from PHPUnit to Codeception.

Link

Laravel Clyde — image uploads, resizing & manipulations for Laravel

I've been recently using Codeception and really appreciate what it can do. I see Codeception as PHPUnit on steroids. What's nice about Codeception is that existing PHPUnit tests are compatible with it, so not all work is lost for people moving from PHPUnit to Codeception.

Link

Building a movie watchlist app with React

React is intriguing. It has a much smaller footprint than a full blown Javascript framework like Angular, it’s component based and relies on one-way data flow. The JSX syntax is very different from what I’m used to, but after giving it a try having the markup and related Javascript code all in one place has some advantages to it.

Link