- iOS – State, @Observable and Data Flow
@State, @Binding, @Observable and @Environment: which one to reach for, and the rule that decides it. Why @Observable replaced ObservableObject and what it actually changed, @Bindable, and the line between state a screen owns and state the app owns — with the three stores this app has and the many it deliberately does not.
- Java 17 Text Blocks
A text block is a string literal delimited by three quotes that can span lines without escaping. It exists because embedded JSON, SQL and HTML were genuinely painful to read in Java, and the workarounds — concatenation, \n everywhere, external files — were all worse than the problem. The problem…
- Divide and Conquer
Split the problem into independent subproblems, solve each, combine. The word doing the work is independent — that is exactly what separates this from dynamic programming. Fast exponentiation, and counting inversions for free inside a merge.
- Terraform – Variables, Locals and Outputs
One configuration, many environments. Typed input variables and why you should always declare the type, `validation` blocks that reject a bad value at plan time, `sensitive` and what it does and does not hide, `.tfvars` files, the full precedence order when the same variable is set four ways, locals, and outputs.
- React Native – Storing Data on the Device
There is no `localStorage`, and that turns out to be an improvement. `AsyncStorage` for what is inconvenient to lose, `expo-secure-store` — the iOS Keychain and Android EncryptedSharedPreferences — for anything an attacker could use. Both are asynchronous, which is why an app that reads a token on launch needs an `initialising` state and a splash screen that waits for it.