02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School

Goodbye Complex Code

How do you make your code simple? It's easy. Start by getting rid of if/switch statements that are not needed. Jump in. Learn how.

Duration: 35:20

Created with

Ben Fhala

Ben Fhala

Ben Fhala is the creative force and founder behind 02geek, a pioneering platform dedicated to making web development accessible to everyone. With over 18 years of experience in the industry, Ben has a deep passion for teaching and a knack for breaking down complex concepts into easy-to-understand lessons.

Goodbye Complex Code Overview

What you'll learn

How to make your code simple. Its easy; First get rid of if/switch statements that can be stored as data instead of a statement - You will be surprised how simple your code looks when you do that. We will Test this idea using this sample application( a simple translator tool) by showing how much easier it is to use objects instead of switches and if statements.

The Quickie: Attacking if/switch statements

08:02

The messege

01:06

The Breakdown: Building The Mini Translator Tool

26:12