Skip to content

Instantly share code, notes, and snippets.

View asanger's full-sized avatar
💭
Currently Architecting with CQRS + ES

Alec Sanger asanger

💭
Currently Architecting with CQRS + ES
  • SlyTrunk
  • Clarkston, MI
View GitHub Profile
@vasanthk
vasanthk / System Design.md
Last active May 11, 2025 15:30
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?
@halcyonmobiledev
halcyonmobiledev / observable-extension.txt
Last active October 2, 2021 18:09
Data Binding observables and Kotlin
// with just a simple extension function for the Data Binding ObservableField
inline fun <R> ObservableField<R>.observe(crossinline callback: (R) -> Unit) {
this.addOnPropertyChangedCallback(object : Observable.OnPropertyChangedCallback() {
override fun onPropertyChanged(p0: Observable?, p1: Int) {
callback(get())
}
})
}
...