Code Monkey home page Code Monkey logo

csharp-patterns's Introduction

C# Patterns

Inspired by the wonderful Refactor Guru I set out to take their post a step further and implement the patterns in a Game Context. The purpose is two-fold:

  • I wish to sharpen my own abilities
  • I hope what I make can be used by others as well to learn and further their programming knowledge

I would like for this repository to act as a knowledge base on how to quickly and easily understand these patterns so that they can be used in your own games to better the maintainability of your code.

These patterns exist for a reason, and that's because we know they work.

All of the Code is MIT licensed, so feel free to do whatever you want with it. But hopefully learn from it most of all!

How to use it

In order to use this respository best, you should have the .NET 6 SDK and an IDE that can open the code, or simply use Visual Studio as I did (VS2022 while making this project).

Clone the repository to your computer, open the code in your IDE of choice, set the project you want to demo as the Startup Project and then Run the code. Every example has code comments added and should hopefully give some idea of how to use these patterns. Please do not look at the code as a best practice way of implementing production ready code. The examples are merely there to support the showcasing of each pattern and I can't make any claim to the efficiency of scaffolding to showcase the pattern.

csharp-patterns's People

Contributors

mads-fs avatar

Watchers

 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.