Open in app

Sign in

Write

Sign in

Evan Brass
Evan Brass

7 Followers

Home

About

Jul 30, 2021

My Bare Metal RPi journey

I bought a Raspberry Pi 3 B+ a few years ago about the time I started learning Rust which was also about when I took OS dev. I wanted to learn OS development and I’d heard about CS140e so I thought it would be relatively easy. And it has been…

4 min read

4 min read


May 20, 2021

Turn Your Rockets into Washing Machines

There are plenty of ways to build reactive interfaces, but my favorite is to use finite state machines. I’ve written before on how JavaScript Promises are finite state machines, but I only briefly touched on how finite state machines communicate between each other. …

JavaScript

11 min read

Turn Your Rockets into Washing Machines
Turn Your Rockets into Washing Machines
JavaScript

11 min read


Mar 21, 2021

The Most Cursed JavaScript

There was an old trick used by Angular and a few other libraries of using a function’s source code (which you can get using .toString()) to get its argument names. Promisify-node used this technique to find arguments called callback or cb. …

JavaScript

8 min read

The Most Cursed JavaScript
The Most Cursed JavaScript
JavaScript

8 min read


Dec 25, 2020

How to parse HTML with Regular Expressions

I’ll be using JavaScript here. With it we can write this in <100 lines of code. Harness We’ll start by laying out our code. I’ll be using closures, but you could — and my first version did — use a class instead. We’ll need a parse_html function, inside we’ll put a…

JavaScript

3 min read

How to parse HTML with Regular Expressions
How to parse HTML with Regular Expressions
JavaScript

3 min read


Aug 10, 2020

How to Instantiate HTML Template Elements

I’m excited about template elements. There’s no specified way of instantiating them, so let’s talk about where they come from, why we use them, and how to instantiate them. Mommy, where do template elements come from? Most likely, you won’t write them by hand. Instead, they’ll be generated from template literals, JSX, or something else. These generators…

JavaScript

6 min read

How to Instantiate HTML Template Elements
How to Instantiate HTML Template Elements
JavaScript

6 min read


Jun 16, 2020

Built-In and Custom Traits in JavaScript

The Problem: Polymorphism is important in any language and while it is very easy to write polymorphic code in JavaScript, it is relatively hard to manage that code. Without explicit types you must either assume the structure of an object, or explicitly test its structure before using any functionality. Explicitly testing slows…

JavaScript

9 min read

Built-In and Custom Traits in JavaScript
Built-In and Custom Traits in JavaScript
JavaScript

9 min read


May 19, 2020

From a lot of Rust and WASM

I’ve been working in Rust on Web Assembly projects a lot lately. First was working through the Raytracing in a Weekend series except I’m using Rust and drawing to an HTML Canvas. Right now I’m working on a template for peer to peer websites that wouldn’t require hosting a WebRTC…

4 min read

4 min read


Mar 27, 2020

Distributed Web Applications

I’m a big believer in distributed systems. It is easy to see the need for distributed systems when we see the existing digital infrastructure being tested by COVID-19 levels of load. Unfortunately, distributing a system is not usually a simple task. Consistency no longer comes naturally and horizontal scaling is…

JavaScript

6 min read

JavaScript

6 min read


Jul 24, 2019

Finite State Machines and JS

Writing correct software is hard. Whether you’re using functional programming or finite state machines, understanding the problem you’re solving and understanding your code are both required for correctness. Async functions and generators are stateful syntax for which we can draw state diagrams so that we can understand them. If you…

JavaScript

9 min read

Finite State Machines and JS
Finite State Machines and JS
JavaScript

9 min read


Jul 19, 2018

Introduction to Programming 3: Boolean’s, Logic, and Conditionals

Till now, I’ve given you no method of telling the computer how to make decisions. You currently don’t have a Turing Complete understanding of JavaScript. Turing Complete means that a machine or language has the functionality required to compute anything that a Turing Machine can compute. …

Programming

4 min read

Programming

4 min read

Evan Brass

Evan Brass

7 Followers

I write a lot of ECMAScript… enough to have plenty of mistakes to learn from.

Following
  • Barack Obama

    Barack Obama

  • Glauber Costa

    Glauber Costa

  • Lena Raine

    Lena Raine

  • Guido van Rossum

    Guido van Rossum

  • Ryan Carniato

    Ryan Carniato

See all (10)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams