Skip to content

Syhwh/SOLID-Principles-Examples-using-Typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOLID Principles Examples using Typescript

This tutorial was insprired from the Encapsulation SOLID course on Pluralsigt.

What is SOLID

SOLID is an acronym for the following:

  • S - Single Responsibility Principle (SRP)
  • O - Open Closed Principle (OCP)
  • L - Liskov Substitution Principle (LSP)
  • I - Interface Segregation Principle (ISP)
  • D - Dependency Inversion Principle (DIP)

How to use this tutorial

Start with the original file here the start folder and we then take that and apply refectorings step by step in the order of SOLID.

So prehaps take a look at the original file as a reference. As you can see all the functionality is included in this file and none of the SOLID priniples have yet to be applied. Then move to each priniple one at a time folowing the same order of SOLID.

If you want to jump directly to the final solution, that is once all the SOLID priniples have been applied to this original file, then take a look at the code in the conclusion) folder. In that code all the SOLID principles have been applied. If you want a sort of journey on how we got there, I suggest following each step at a time.

So, what are you waiting for? Navigate to the separate folder linked above in this repo for further explainations and an example application written in Typescript.

Issue Reporting

If you experience with bugs or need further improvement, please create a new issue under Issues.

Contributing to this SOLID journey!

Pull requests are very welcome. Before submitting a pull request, please make sure that your changes are well tested.

License

This Star Notary Ethereum Dapp application is released under AGPL

Disclaimer

This application is part of a project assignment and is most definitely not suitable for Production use! :)

About

SOLID Principles Examples using Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.9%
  • JavaScript 0.1%