- SOLID Principles
SOLID Principles SOLID is an acronym for five design principles that make object-oriented code more maintainable, flexible, and scalable. These are not academic theories — they are practical guidelines that experienced engineers apply daily to keep codebases from turning into unmaintainable messes.…
- Documentation
Documentation is not an afterthought — it is a core engineering deliverable. Code without documentation becomes legacy code the moment its author walks away. As a senior developer, the documentation you write falls into a handful of categories, each with a clear purpose and audience. Code Comments:…
- Flyweight Pattern
Introduction The Flyweight Pattern is a structural design pattern that minimizes memory usage by sharing as much data as possible between similar objects. Imagine a text editor rendering a document with thousands of characters. Each character needs a font, size, and color — but most characters…
- Composite Pattern
Introduction The Composite Pattern is a structural design pattern that lets you compose objects into tree structures and then work with those structures as if they were individual objects. Think of a file system — a directory can contain files and other directories. Whether you ask for the size of…
- Postgres – JSON and JSONB
jsonb is a real column type with real operators, not a text field you parse in the application. -> versus ->>, the containment operator @> and the GIN index that makes it fast, jsonb_path_query, updating one key with jsonb_set, and expanding an array into rows. Ends with the harder question: which of your columns should NOT have been jsonb.