Open in app

Sign In

Write

Sign In

Matthew Cannalte
Matthew Cannalte

599 Followers

Home

About

Pinned

How to Bet on Anything (If you want to win)

Introduction You’re in Las Vegas for a business convention when you’re approached by a funny-looking guy on the street. It’s me, and I’m holding an ordinary, 6-sided die. I propose a game, as follows: You roll the die, and either: Receive the amount shown on the die in dollars, or Roll…

Betting

7 min read

How to Bet on Anything
How to Bet on Anything
Betting

7 min read


Published in Better Programming

·Apr 22, 2022

How to Write a RegEx Worthy of Passing Code Review

Let’s make RegExes cool again — How would you react to seeing a RegEx like this: /^([0-9]{5}([\s]+|,)+)*([0-9]{5})$/ in a code review? Is it clear what this expression is trying to do, what it doesn’t do, or how to test it? Sadly, a typical RegEx is either so basic that it’s unhelpful, or so complicated that only…

Programming

4 min read

How to Write a RegEx Worthy of Passing Code Review
How to Write a RegEx Worthy of Passing Code Review
Programming

4 min read


Dec 21, 2021

Create a Crypto Gift Card in 3 Easy Steps

Uh oh. It’s the 11th hour and you need a gift 🎁 for that special someone. Maybe they’re hard to buy for, or maybe you just forgot. Or, maybe, they’re interested in cryptocurrencies but don’t know how to start. Whatever your situation, you’ve come to the right tutorial. …

Cryptocurrency

4 min read

Create a Crypto Gift Card in 3 Easy Steps
Create a Crypto Gift Card in 3 Easy Steps
Cryptocurrency

4 min read


Published in AWS in Plain English

·Dec 19, 2021

Eliminate Race Conditions in DynamoDB with Conditional Puts

DynamoDB is an AWS NoSQL database service. It’s an easy, convenient, and reliable place to store data for a cloud-based ☁️ application. It’s particularly useful if your data doesn’t follow a strict format or schema. This makes it an interesting choice for a centralized store of application state. But, as…

Dynamodb

5 min read

Avoid Race Conditions in DynamoDB with Conditional Puts
Avoid Race Conditions in DynamoDB with Conditional Puts
Dynamodb

5 min read


Published in AWS in Plain English

·Nov 24, 2021

Build Your Own VPN in AWS

It’s 2021 (or later, if this article stays relevant 🤞). Are you still using a 3rd party VPN? If so, it’s time to put it to rest. The popularity of HTTPS (indicated by that little 🔒 in the URL bar of your browser) and other secure browsing technologies has rendered…

AWS

3 min read

How to Build a VPN in AWS
How to Build a VPN in AWS
AWS

3 min read


Published in JavaScript in Plain English

·Nov 10, 2021

Fun JavaScript Facts to Share at Parties

JavaScript — do you love it? Hate it? Love to hate it? However you feel about it, JavaScript is wildly popular among web and app developers, both server-side and client-side. Despite this popularity, JavaScript has a humble history with many strange quirks along the way. …

Java Script

3 min read

Fun JavaScript Facts to Share at Parties
Fun JavaScript Facts to Share at Parties
Java Script

3 min read


Published in JavaScript in Plain English

·Nov 4, 2021

Pro-level JavaScript Syntax Techniques

JavaScript is the most ubiquitous programming language of the web. Nearly all web apps use it in the browser, and many use it server-side too with Node.js. Not to mention, it’s becoming increasingly popular for building native apps with tools like React Native, Flutter, and Electron. The problem? JavaScript syntax…

Java Script

3 min read

Sexy Syntax Techniques of a JavaScript Pro
Sexy Syntax Techniques of a JavaScript Pro
Java Script

3 min read


Published in JavaScript in Plain English

·Nov 3, 2021

4 React Patterns That Show You Know Your Stuff

1. Functional Components with hooks Modern React code allows for defining components as functions parameterized by their props like below. This is more concise, maintainable, and readable than defining components as classes. Instead of setState() , each state variable gets its own setter from useState() . And, we can now trigger side effects like API…

React

2 min read

4 React Patterns That Show You Know Your Stuff
4 React Patterns That Show You Know Your Stuff
React

2 min read


Published in Better Programming

·Oct 23, 2021

How to Use Async / Await in Go

With channels, it’s easy! — If you work in multiple languages, and one of them is Go, you might have wondered whether there’s a Go equivalent to the ever-popular async / await of other languages. For example, if you’ve programmed with JavaScript, Python, or another modern language recently, you’ve probably seen async and await used…

Go

3 min read

How to Use Async / Await in Go
How to Use Async / Await in Go
Go

3 min read


Oct 22, 2021

In the Go Language, Mutexes are Dead

Long live channels! — I’m fairly new to programming in Go, but I’ve done my fair share of systems programming in other languages like C and C++. So, I’m accustomed to the old ways of handling concurrency and preventing race conditions. Namely, I expected Mutexes (mutual exclusions, i.e. …

Go

4 min read

In the Go Language, Mutexes are Dead
In the Go Language, Mutexes are Dead
Go

4 min read

Matthew Cannalte

Matthew Cannalte

599 Followers

Software Engineer | Armchair Philosopher

Following
  • Scott Galloway

    Scott Galloway

  • AirbnbEng

    AirbnbEng

  • Katie Lacy

    Katie Lacy

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech