Notes from production
Deep dives on system design, security and shipping full stack apps, in English and Bahasa Indonesia.
- Java basics · part 21 of 21

Learn Java from Scratch Part 21: Lambdas — The Arrow, Functional Interfaces & Method References
The twenty-first part of a Java series and the start of the advanced level: a lambda as an instruction card in an envelope, functional interfaces, Predicate, Function, Consumer, Supplier and Runnable, lambdas with collections, method references, a mini calculator, and three traps.
- Java basics · part 20 of 21

Learn Java from Scratch Part 20: Generics — Angle Brackets, Box<T> & Raw Types
The twentieth part of a Java series and the end of the intermediate level: generics as a box with a label slot, the generic class Kotak<T>, Pasangan<K, V> and generic methods, a leaderboard, and three traps such as a raw type that falls over with ClassCastException.
- Java basics · part 19 of 21

Learn Java from Scratch Part 19: Collections — ArrayList, HashMap, HashSet & Integer
The nineteenth part of a Java series: ArrayList as a growing shelf, HashMap as a labelled filing cabinet, HashSet as a bag with no duplicates, why Integer and not int, counting words with getOrDefault, and three traps such as removing items inside a for-each loop.
- Java basics · part 18 of 21

Learn Java from Scratch Part 18: Exceptions — Stack Traces, try, catch, finally & throw
The eighteenth part of a Java series: an exception as a red ball on the pile of trays, how to read a stack trace, try, catch and finally, throwing your own ball with throw, checked exceptions and throws, age input that survives typing mistakes, and three traps.
- Java basics · part 17 of 21

Learn Java from Scratch Part 17: Abstract Classes and Interfaces — Contracts, implements & default
The seventeenth part of a Java series: an abstract class as a half-finished cutter, an interface as a plug standard, implements and several interfaces at once, default methods, when to use which, a shop cashier with cash and an e-wallet, and three contract traps.
- Node.js & TS · part 13 of 13

Node.js & TypeScript Backend Part 13: Centralized Error Handling — Domain Errors, a NestJS Exception Filter & requestId
Part thirteen and the end of a Node.js & TypeScript series that opens with a quiz: errors that leak and errors that hide, NestJS default behaviour, domain errors with a code and status, one exception filter for AppError, ZodError, HttpException and 23505, a consistent response shape with a requestId, Express 5, and three traps.
- Node.js & TS · part 12 of 13

Node.js & TypeScript Backend Part 12: Idempotency — Double Clicks, Resent Webhooks, Conditional UPDATEs & Idempotency-Key
Part twelve of a Node.js & TypeScript series that opens with a quiz: what idempotent means, five sources of duplicate requests, a conditional UPDATE tested on PostgreSQL (2 tickets vs 1), unique constraints and ON CONFLICT, Idempotency-Key with Redis SET NX, a Midtrans webhook checklist with signature verification, and three traps.
- Node.js & TS · part 11 of 13

Node.js & TypeScript Backend Part 11: type vs interface — Declaration Merging, extends vs & and Consistency
Part eleven of a Node.js & TypeScript series that opens with a quiz: where type and interface are the same, unions and tuples that need type, declaration merging to augment Express.Request, an extends conflict that is rejected vs an intersection that quietly becomes never, and the consistent-type-definitions rule.
- GCP · part 6 of 6

GCP for Backend Engineers Part 6: Scale and Cost — Rough Maths, Little's Law, Cache Stampedes & Budget Alerts
Part six and the end of a GCP for Backend Engineers series that opens with a quiz: rough maths from 3 million daily active users to a 6,944 requests per second peak, Little's Law for instance counts, scale layers from the CDN to the database, cache stampedes and single-flight, live event spikes, cost, and budget alerts.
- Firestore & Search · part 6 of 6

Firestore, Caching & Search Part 6: Search Relevance and Operations — Business Signals, Multilingual Search, nDCG & Elasticsearch on GCP
Part six and the end of a Firestore, Caching & Search series that opens with a quiz: combining text scores with popularity, rating and freshness through function_score, per-language fields, autocomplete with search_as_you_type, measuring quality with zero-result rate and nDCG@10, lessons from a semantic search project, and Elasticsearch shards, replicas and snapshots on GCP.
- Java basics · part 16 of 21

Learn Java from Scratch Part 16: Polymorphism — @Override, Overload & One Remote for Many TVs
The sixteenth part of a Java series: polymorphism as one remote for many TVs, overriding with @Override, one loop for many kinds of objects, override versus overload, teaching equals to your own class, the total area of shapes, and three traps.
- Java basics · part 15 of 21

Learn Java from Scratch Part 15: Inheritance — extends, super & the Is-A Test
The fifteenth part of a Java series: inheritance as a parent cutter and a child cutter, extends, super for the parent's constructor and methods, the layers of an object in memory, the is-a test, employee and manager pay, and three traps such as forgetting super.