Skip to content

Instantly share code, notes, and snippets.

View AWrightIV's full-sized avatar

Allan Wright AWrightIV

View GitHub Profile
@Thomvis
Thomvis / Migrated.swift
Last active January 30, 2024 16:11
An approach towards migrating properties in a Codable struct without having to write a custom Codable implementation
import Cocoa
// Say we have a Person model
enum V1 {
struct Person: Codable {
let name: String
var age: Int
}
}
@vasanthk
vasanthk / System Design.md
Last active May 12, 2024 18:13
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?