- Java 11 Running Java Files Directly
Since Java 11 you can run a .java file directly, with no separate compile step and no .class file left behind. It sounds like a convenience for beginners, and it is, but it also makes Java usable for the kind of quick script you would otherwise have written in Python. The change Note the difference…
- iOS – The Swift You Need First
Not the whole language — the parts a SwiftUI app leans on every day. Value types versus reference types and why it changes how you reason about a screen, optionals, enums with associated values, protocols and extensions, closures, and the error model. With the models of a real ordering app as the running example.
- Java 11 HttpClient API
Java 11 shipped a real HTTP client in the JDK. Before it, making an HTTP call meant either HttpURLConnection — an API from 1997 that nobody enjoyed — or adding Apache HttpClient or OkHttp as a dependency. Now a simple GET is four lines with nothing on the classpath. Three objects The whole API is a…
- Queues
First in, first out. Written as a circular buffer, because the obvious version — shift everything down on dequeue — is O(n) and is the standard way a hand-rolled queue goes wrong. Plus the growth bug that only appears after the buffer has wrapped.
- Terraform – Providers, Versions and the Lock File
A provider is the plugin that knows how to talk to AWS, and pinning it is the difference between a reproducible build and a surprise on Tuesday. `required_providers`, version constraint operators and which one to use, what `.terraform.lock.hcl` is for and why it belongs in git, provider aliases, and deploying to two regions from one configuration.