Anthony Corletti cloud computing. startups. music. etc.

Dispatch Tables in Python

Writing multiple if-else statement clauses as a switch-style case can be a hassle to maintain, especially if you’re working with dynamic switches.

With no specific case or switch implementation in python’s standard library, I’ve liked using dispatch tables.

A dispatch table can be defined as a mapping of pointers to functions.

Let’s review a simple example.

Read more ...

Build REST APIs with Go and Gin

I’ve been building backend software applications primarily with Ruby and Python for the past five to six years, and have wanted to learn and build more with go because of it’s growing developer ecosystem, presence in cloud-native software, and general performance.

In this post, I’m going to review a simple backend api I built with gin.

Some of the topics and technologies this post will cover include, gin, gorm, and environment configs with viper.

Let’s dive in 🌊

Read more ...

Flutter and Rails from Scratch

I’m primarily a backend, cloud developer, so building frontend clients wigs me out. So in the spirit of learning, I have mustered enough fearlessness and courage to try and build an app with a brand new client framework that I hadn’t used before

For a while I’ve wanted to build something with flutter - especially with flutter web being released – you can build a web, iOS, and Android app all in one go!

In this post, I’m going to quickly plug a Rails API and Flutter UI together and show just how fast, fun, and easy development with Rails and Flutter can be.

Read more ...

Linear Regression with Go

Linear regression is a common statistical data analysis technique.

It is used to determine the extent to which there is a linear relationship between a dependent variable and one or more independent variables, and is widely used in machine learning applications.

There are two types of linear regression, simple linear regression and multiple linear regression.

In simple linear regression a single independent variable is used to predict the value of a dependent variable. In multiple linear regression two or more independent variables are used to predict the value of a dependent variable. The difference between the two is the number of independent variables. In both cases there is only a single dependent variable.

In this post I’m going to introduce basic concepts on linear regression and build a simple linear regression example using go and spago.

Read more ...

Partial Derivatives & Recursive Descent

Writing partial derivatives is a great way to understand some of the underlying features of machine learning and neural network libraries.

In this post I’ll explain how partial derivates are a necessary building block in understanding machine learning and neural networks, and how to write some python code to help bring partial derivates and recursive descent to life!

Read more ...