Skip to content

Instantly share code, notes, and snippets.

View pielegacy's full-sized avatar
🌳

Alex Billson pielegacy

🌳
  • Mecca Brands
  • Melbourne, Australia
  • 07:47 (UTC +10:00)
View GitHub Profile

Configure By Example

Learn the power of ASP.NET Core's Startup.Configure method with examples.

What is the Configure(IApplicationBuilder app, IHostingEnvironment env) method?

The Configure method in Startup.cs is essentially a fundamental part of Microsoft's OWIN implementation Katana. To sum up what OWIN and Katana are:

@pielegacy
pielegacy / VariousOpinionsOnProgramming.md
Last active January 7, 2024 06:59
Various opinions on programming

My Various Programming Opinions

These aren't supposed to be hot takes as most of these are pretty lukewarm and things that for the majority people follow anyway, thought it would be nice to have them all in one place.

Loops vs Functional Array Methods

I like to use loops where possible with functional array methods (not sure what the best terminology for it is but in JS it's stuff like map, reduce, filter and in C# it's Where, Select etc...).

The design of these array methods is to follow very standard functional programming concepts so methods such as a .ForEach where nothing is returned from these iterations always bug me.

using System.Diagnostics.CodeAnalysis;
using System.Net.Http.Json;
using System.Text.Json.Serialization;
var httpClient = new HttpClient();
try
{
// Section 1 - async I/O
/**
@pielegacy
pielegacy / WebDevelopmentRoadmap.md
Last active March 16, 2025 09:41
My Attempt at a Web Development Roadmap