A mathematical topic that has always fascinated me is chaos theory. At a foundational level, chaos theory states that even the most random systems have underlying laws and patterns that can create ordered outcomes. In other words, order can be born out of chaos.

A fun game that gives a sneak peek into chaos theory is what is often known as the chaos game. In this article, I will be explaining how the chaos game is played and showing you how you can simulate it fairly easily in Javascript with p5.js and Codesphere.

To get a sneak peek of the…


How to Build a Video Chat App with Socket.io, WebRTC technology, and Codesphere

Photo by Dylan Ferreira on Unsplash

The Coronavirus pandemic has made video chat the primary method of communication that we rely on. Whether it’s for school, work, or just talking to friends and family, we end up video chatting almost every day in the age of Coronavirus. Contrary to popular belief, building your own video chat app is not too difficult.

If you’d like to follow along line by line, you can find the source code here:

You can also try out a demo for yourself here:

Once the app loads in, you can run it with

npm ci && node server.js

The Different Technologies We’ll Be Using in this Project

Part of the reason…


There are few things as exciting as the “I know that one!” feeling one gets in a trivia game. The rush of being able to answer a niche and random question is a major reason why game shows have been a TV staple for almost as long as televisions have existed.

I recently came across OpenTDB, a free user-contributed trivia question database. Naturally, my first thought was to use it to create a trivia app. Though not incredibly complex, this project serves as a fun introduction to a number of React topics:

  • Developing and Deploying a React App with Codesphere


Photo by Christopher Gower on Unsplash

When we want to visualize hundreds or thousands of calculations, doing so with a pen and paper becomes incredibly difficult. For those interested in Mathematics, Python often serves as an easy way to brute force these kinds of calculations. One such mathematical topic that can be simulated well in Python is the Collatz Conjecture. In this tutorial, we will be visualizing the conjecture with Python.

The Collatz Conjecture

The Collatz Conjecture is a mathematical conjecture(An unproven statement) that begins with the following game:

Take any Integer n. If n is even, divide it by two. If n is odd, multiple it by three…


Firebase Logo

We’ve all been there. We’ve made something great and we want to show it off. Maybe it's a school project, maybe it’s a prototype. Regardless, you aren’t about to send someone an entire React project for them to download and run. Firebase Hosting allows you to host and deploy your React App in a matter of minutes.

Install Firebase Tools

To get started, I’m going to assume you already have created a React app. The first step is to install Firebase onto your project. Navigate to your project and install firebase tools with the following command:

npm install -g firebase-tools


Photo by Lukas Blazek on Unsplash

Python is consistently rated as one of the best programming languages for data science because its highly readable, incredibly versatile, and has a very low learning curve for beginners. On top of all of that, python code is incredibly compact, meaning you can complete complex tasks in relatively few lines of code.

In this tutorial, we are going to cover the first steps to any data science project: Accessing datasets. Using Python, we are going to access both an API and a file that contains data about Senators and their voting patterns.

After reading this, using Python you should be…


They say a picture is worth a thousand words, but that also means that storing an image takes up considerably more storage than a word. As such, a great deal of research has been made to understand the composition of images and how these compositions can be represented efficiently. In this project, we will not be talking about image compression, but we will be breaking down the composition of images in a visually appealing way.


As programming becomes more and more accessible it can be used more easily to understand complex topics. One topic that can be better visualized through code is that of 3-Dimensional Parametric Equations. In this project, we are going to be using python and a plotting library called MatPlotLib to graph 3D Parametric Equations

Before we dive into the code, it may be worth explaining what parametric equations actually are. If you are already familiar with the idea, feel free to skip down.

When we graph conventional mathematical functions, one coordinate is dependent on the other. For example, if we look…

Lior Ben-David

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store