Skip to content

Instantly share code, notes, and snippets.

@rbleattler
rbleattler / Get-ArmParamsVarsOutputs.ps1
Last active July 19, 2024 14:30
Returns a list of Parameters, Variables, and Outputs from an Arm template in ~yamlish format. Prepends each line with a prefix for pasting in comments. Prefix is configurable
#Requires -Modules "powershell-yaml"
function Get-ArmParamsVarsOutputs {
[CmdletBinding()]
param(
[string] $ArmTemplatePath,
[ValidateSet('parameters', 'variables', 'outputs')]
[string[]] $OutputTypes = @('parameters', 'variables', 'outputs'),
[string] $Prefix = '//',
[switch] $NoPrefix
)

Möbius Inversion Proxy Pattern (MIPP)

A wholly unnecessary design pattern for engineers who enjoy suffering.

Overview

The Möbius Inversion Proxy Pattern (MIPP) is a hyper-obfuscated, fully recursive design pattern that merges quantum uncertainty with software architecture. It attempts to solve "dependency tangling" by inverting the very notion of dependency—forcing every module to simultaneously be a provider and a consumer in a chaotic, unknowable state.

MIPP is ideal for:

# world.gd
extends Node2D
class_name World
const TILE_SIZE = 32
const SEA_LEVEL = 0.0
const RENDER_DISTANCE = 16.0
@export var altitude_noise: FastNoiseLite