GithubHelp home page GithubHelp logo

jekingohel / cleanarchitecture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tillman32/cleanarchitecture

0.0 0.0 0.0 1.98 MB

An example of how to implement various clean coding & architecture techniques. Technologies used: .Net Core, Razor Pages, EF Core, Bootstrap 4

License: MIT License

C# 67.16% CSS 0.42% JavaScript 0.07% HTML 32.34%

cleanarchitecture's Introduction

License: MIT

The motivation behind it all

What is the point of all this? Well, besides showcasing Bob Ross... I thought it would be clever to have a "real world" application to reference when talking architecture. I want something to set a standard, something to clone, something to utilize in all my next .Net Core projects. Like all software (and wine), this will improve with time.

I also found it fitting, that "Uncle Bob" (Robert C. Martin) shares a similar name, and this project makes an attempt to align with his architecture outlined here on his website.

An example of the application running on AWS (Ubuntu) is hosted here: https://cleanarchitecture.brandontillman.com

I also wrote a blog post to pair with it here: https://www.brandontillman.com/clean-architecture-dot-net-core/

Key Points:

๐Ÿ”ฑ N-Tier Architecture

A 3 layered approach, to set us up for multiple UI's that use the same core business functionality/back-end.ย 

๐Ÿ“‚ Separation of Concerns

Closely related to the "Single Responsibility" principle, Separation of Concerns (SoC) makes your code more maintainable, by not co-locating ideas. When things change, SoC will help ensure your changes are limited to your feature set, and not spread throughout your application.

๐Ÿ’ง No Leaky Abstractions

By using interfaces, we can avoid leaky abstractions, and have better control of how our code is used. On the contrary, consumers of our code don't have to know the implementation details, they can simply use your interfaces/classes.

๐Ÿ”ฌ Testable

Testing code that is tightly coupled is nearly impossible. By following the SOC principal, and using interfaces our code will be easier to rest in result.

๐Ÿ”Œ Modular

The code will be easier to modify in the future, because of a few reasons. Separation of concerns allows for fewer changes/testing throughout the application. You can build on specific feature sets, without modifying the rest of the code.

๐Ÿ”ง Maintainable

The code will inherently be more maintainable by following Clean Architecture patterns. Other developers will see the benefit of the clean separation, and follow suit.

Technologies Used

๐ŸŒŸ Give it a Star!

If you like or are using this project to learn or start your solution, please consider giving it a star. Thank you!

cleanarchitecture's People

Contributors

tillman32 avatar mbakirci avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.