mason media

Thoughts on frontend development, code, Vuejs, Javascript, learning and more.

A tech focused blog with a focus on Vuejs, javascript, frontend development, interviewing, jobs and more.

2023-09-15
jobsdevelopmenthow-totechnologyinterview

How to get better at interviewing for tech jobs (or any job)

Interviewing is shitty. But it’s a necessary evil. It’s the gateway to every job. Even if you have a friend at the company, even if you know the boss, even if you’re an entrepreneur, even if you’r

2023-05-08
javascript-tipsjavascriptbloggingvuejs

How to get the estimated read time of your blog post with Javascript

Medium does this for you automatically. But what if you have your own blog that doesn’t? With a little Javascript it’s pretty easy.

2023-04-12
imagevitejsvue-3vuejs

How to use images with Vite and Vue

Using local and dynamic images in Vite is more confusing than you’d think (or at least more confusing than I thought). If you have a url that links to Unsplash or Pexels, you can just use your sta

2023-04-03
navigationdynamic-routingvuejsvue-3javascript-tips

Dynamic Routing with Route Params in Vue 3

The basics of dynamic routing in Vue are relatively straightforward, but the documentation, available examples, and popular tutorials are a bit hard to make sense of, especially when it comes to d

2023-03-27
javascript-tipsvuejsapitextstring-methods

How to limit the length of text (strings) in javascript and Vuejs

In building a travel website project recently I needed to limit the length of a string as part of an API GET request. I was using the Wikipedia API to return just the text content of a page (as JS

2023-03-08
vuejsnpmerrorvitejs

How to fix ENOENT, EACCESS and other errors when running npm install

I was following one of my own tutorials to set up a new Vue project wit

2023-02-18
arraysloops-in-javascriptdestructuringvuejsfilters

How to get the first item in an array in Vue.js

It’s always useful being able to single out the first item in an array. Be it for styling, conditional rendering, or more, there are a few simple ways we can do this with Vue.js using both baked-i

2023-01-27
vitejsvuejs

How to use environmental variables (.env) in Vue.js and Vite.

Lately development best practice seems to be putting your API endpoints, login credentials, secrets, etc., into environmental variables which are supposed to make sensitive information more secure

2023-01-23
vuejstransitionsanimationvue-3

How to use Transitions in Vue 3

The native transition component in Vue has undergone some changes with the move to Vue 3. I went to use it the other day and found there were some updates I needed to incorporate to get it to work

2022-12-01
cloudflare-pagesdeploymentvuejscloudvitejs

How to deploy a Vue application to Cloudflare Pages (and fix build errors with Vite).

I’ve been using Netlify for the past couple years for app and static site deployment and it’s been great. But I just read a great