How to isolate different variants of an algorithm within an object using the Strategy Pattern

What is Strategy?


Creating a peer-to-peer connection to establish a video chat

Photo made with Canva.

What is WebRTC?

WebRTC is a new front in the long war for an open and unencumbered web. …


How to create an object without exposing the creation logic

Photo made with Canva.

What is Factory?


How to define and maintain dependencies between objects

Photo made with Canva.

What is Observer?


How to restrict the instantiation of a class to one object

Photo made with Canva.

What is Singleton?


AI Optimization Algorithm

Photo made with Canva.

How It Works

  1. Get all the constraints and turn each one into two arcs. For example:
    𝐴 > 𝐵 becomes 𝐴 > 𝐵 and 𝐵 < 𝐴.
  2. Add all the arcs to a queue.
  3. Repeat until the queue is empty:
    3.1. Take the first arc (𝑥, 𝑦), off the queue (dequeue).
    3.2. For every value in the 𝑥 domain, there must…


Reducing the Binary File Size

Photo made with Canva.

Why Reduce the Binary File Size


Photo made with Canva.

Why Do We Need WebAssembly?


AI optimization algorithms

A drawing of a brain with one side in black and white and the other in multiple colors.
Photo made with Canva.
  • a₁x₁ + a₂x₂ + … + a𝑛x𝑛 ≤ b
  • a₁x₁ + a₂x₂ + … + a𝑛x𝑛 = b


Designed by https://dribbble.com/Rvachev

First Step: Defining Your Themes

Cesar William Alvarenga

Software Engineer

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