Skip to content

Instantly share code, notes, and snippets.

View pielegacy's full-sized avatar

Alex Billson pielegacy

  • Mecca Brands
  • Melbourne, Australia
  • 18:05 (UTC -12: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 June 15, 2024 03:12
My Attempt at a Web Development Roadmap

Web Development Roadmap (WIP)

Preface

Web Development is in a weird spot. I don't think there's been a better time to build websites and interactive web applications however it's incredibly challenging to provide guidance for people trying to get a start in web development and don't necessarily have a background in computer science.

The best way I can describe it is that the pieces are all there but it's quite difficult to organise them in a way them in a progressive manner.