Blog About

Fixing 302 Redirects on Static S3-websites

I love static websites deployed on S3. They are maintenance free and dirt cheap to run. One issue I've had with them is that S3, in certain cases, uses 302 redirects when 301 would be a more appropriate choice. In this article we fix that.

click to read more

How to Back Up Your Files Using S3 and Glacier

AWS S3 and Glacier make cloud backups easy and ridiculously cheap. Let's learn how to make incremental backups using AWS CLI and versioned buckets.

click to read more

Building a Real-Time Image Optimizer Using Lambda@Edge and Amazon CloudFront

A real-time image optimizer is a service that resizes the requested image according to specific query parameters. It then caches the image so that if the same image with the same parameters is requested again, it will be served from the cache. In this tutorial, I show you how to build one from scratch.

click to read more

Guide to Monitoring and Controlling AWS Lambda Costs

Lambda functions scale almost infinitely, but your budget most likely won't. This guide teaches you some tools for monitoring and controlling the costs of your serverless solutions.

click to read more

Using Multi-Factor Authentication with AWS CLI

Having multi-factor authentication in the web UI is great but I do most of my AWS work via the CLI, so just blocking access to the GUI is not sufficient. In this tutorial, I explain how to apply multi-factor authentication also to your CLI/API users.

click to read more

Why the Web Is a Mess and How We Can Fix It

There is a lot of talk about web standards and how to extend them, but little about the fundamental challenge the web should overcome: executing arbitrary code from arbitrary corners of the Internet - securely.

click to read more

Build Your Own React - Part 1: Simple Elements

Learn how React works by implementing it yourself. In this series, we build a very simple React-like framework from scratch. I call it the Minimum Viable React. Although the implementation is not exactly the same as that of React, it still gives you a very good idea of how React and other frameworks like it work under the hood.

click to read more

Build Your Own React - Part 2: Components

In this article, we pick up where we left off in part 1. This time, we add components to our framework.

click to read more

Build Your Own React - Part 3: State and Lifecycle

In part 2 we added components to Minimum Viable React. In this 3rd part we'll add state and lifecycle methods.

click to read more

Build Your Own React - Part 4: Lists and Keys

In this 4th and final part we improve list reconciliation by adding keys.

click to read more

Encapsulation in JavaScript

Encapsulation is a powerful technique that helps you avoid bugs and modularize your programs for easier development. It is especially important when you're working with other developers or if you are authoring an open source library for others to use.

click to read more

How JavaScript Promises Work Under The Hood

Promises are a useful abstraction for JavaScript programmers, but have you ever wondered how they work under the hood? I made a detailed video on implementing promises.

click to read more

© 2018 Lauri Kinnunen | lauri@vividbytes.io | Privacy policy
Blog About