- NestJS – Pipes
What a pipe is — transform, validate, or both — the built-in ones worth knowing, and writing your own PipeTransform. Built around a real bug this app had: @Length(1, 80) happily passed three spaces that the service then stored as an empty string, because the validator and the service disagreed about what the value was.
- Java 17 Other Improvements
Six years and three LTS releases separate Java 11 from Java 17. The headline features get their own posts; this one collects the smaller changes that arrived in between and are easy to miss entirely — several of which you have probably already benefited from without noticing. Helpful…
- Dynamic Programming
Solve each subproblem once and remember the answer. The two conditions that have to hold, top-down memoisation versus bottom-up tables, and the jump from O(2^n) to O(n) on Fibonacci. Plus coin change, knapsack, LCS and Kadane's algorithm.
- Angular – Guards, Resolvers and Lazy Loading
Keeping signed-out visitors out of the admin area, and keeping the admin area out of everyone else's download. Functional `CanActivate` guards that return a `UrlTree`, `CanDeactivate` for the checkout page's unpaid order — including how returning a promise lets it ask in a modal instead of `window.confirm` — and `loadComponent` / `loadChildren` lazy loading with proof in the build output.
- Docker Compose – depends_on, Healthchecks and Startup Order
`depends_on` waits for the container to start, not for the service inside it to be ready — so the app races MySQL and dies on a connection refused that looks like a database bug. Writing a healthcheck, `condition: service_healthy`, `up --wait`, and why the app should still retry anyway.