CREDO23 / oop-practices

This repository contains practical exercises for the 4 Pillars of OOP with Typescript implemetations (Encapsulation, Abstraction, Inheritence and Polymorphism)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OOP-practices

Introduction

This repository contains practical exercises for learning how to write maintenable, testable and scalable code in OOP with Typescript. It includes the 4 pillars, the 5 solid principles.

Usage:

  • Clone this repository.
  • Install the typescript dependency with npm install.
  • You will find exerises under the src/[topic] directory:
    • Implemetations & explanations are directely written as comments in index.ts files.
    • You can run an file containing the implementation to see the output with tsc && node src/[topic]/[path to the file].js.
    • You can change / adapt the implementation for your better understanding as well.

Contributing

We welcome contributions! If you'd like to contribute to this project, please follow these guidelines:

  • Fork the repository and create a new branch.
  • Make your changes or add an intersting exercice or even improve existing implemetation / explanation.
  • Delete js files generated by typescript.
  • Submit your pull request.

Ensure that your code adheres to the project's coding format.

About

This repository contains practical exercises for the 4 Pillars of OOP with Typescript implemetations (Encapsulation, Abstraction, Inheritence and Polymorphism)

License:MIT License


Languages

Language:JavaScript 50.0%Language:TypeScript 50.0%