5-minutes-or-less-solid

SOLID principles in TypeScript and JavaScript, demystified in less than 5 minutes each.

Stars
5

5 Minutes or Less: SOLID principles in TypeScript/JavaScript

SOLID principles in TypeScript and JavaScript, demystified in less than 5 minutes each

Everyone who's coded for some time has probably heard about these principles, but do you know them?

If you were ever afraid to ask, here's your chance to understand them easily and in just a few minutes each!

Five Minutes or Less

The SOLID Principles

The principles in their mnemonic order:

My recommended way to approach them, from easiest to "hardest", is:

Running the code

You can install the things with npm install and then just go at each file with npx ts-node src/{filename}.ts.

Or, if you're lazy, you can also copy the individual TS file's contents into the TypeScript playground if you want to avoid cloning and installing anything at all.