Skip to content

Instantly share code, notes, and snippets.

View HarryAmmon's full-sized avatar

Harry Ammon HarryAmmon

  • The Pensions Regulator
View GitHub Profile

Understanding REST

REST is an acronym for Representational State Transfer. This is a set of constraints that an API should follow. If you're API follows these constrains then it is considered to be RESTful. These constraints are:

  • A client-server model,
  • Stateless interaction,
  • Uniform interface.

This does not make REST much clearer to understand.

Client-Server Model

SOLID Principles

SOLID is a mnemonic acronym used in Object-Orientated Programming for five design principles. Incorporating SOLID into your project should make your code more flexible, maintainable and understandable. SOLID stands for:

  • SRP - Single Responsibility Principle
  • OCP - Open Closed Principle
  • LSP - Liskov Substitution Principle
  • ISP - Interface Segregation Principle
  • DIP - Dependency Inversion Principle

Single Responsibility Principle

The Single Responsibility Principle states that a class or method should only be responsible for one task. This also means that a developer should only have one reason to change the behavior of a method or class. When a class only does one thing it mitigates against any unwanted side effects of changing the behavior of the class.

@HarryAmmon
HarryAmmon / Log4NetHelp.md
Last active October 18, 2023 15:21
Log4Net .NET Core Console App Quickstart

Log4Net .NET Core Console App Quickstart

Getting Log4Net working with a .NET Core console app is simple. You may have found guides for getting Log4Net working on a .NET Framework project. The setup is similar but requires a few additional steps. This quick start assumes you are using Visual Studio 2019.

Installing Log4Net

This process is the same for installing any other package using NuGet. Either the Package Manager Console or the Manage NuGet Packages GUI can be used.

Package Manger Console

Open the Package Manager Console and run the following command.