- TypeScript – Enums, and What to Use Instead
TypeScript's enum is the one feature in the language that emits runtime JavaScript, and everything awkward about it follows from that: reverse mappings that put numbers in your object, const enum breaking under isolatedModules, and a build flag that rejects it outright. Then the `as const` object this app uses in both halves instead.
- NestJS – Guards
CanActivate, and the one question a guard answers: may this request proceed? A real JWT guard in about thirty lines, why verifyAsync and never decode, why guard order in @UseGuards is load-bearing, and where a guard stops being the right tool — the check that needs to read the row belongs in the service.
- Python – OOP
Inheritance, composition and polymorphism in a language with duck typing, where an interface is a set of methods rather than a declaration. `super()`, properties, abstract base classes, and when to prefer composition.
- Java 21 Pattern Matching for switch
Java 21 lets a switch match on types, not just constants. Combined with sealed types , it turns a chain of instanceof checks into something the compiler can prove is complete. The chain it replaces Each case tests a type and binds a variable of that type, the same as instanceof pattern matching .…
- Angular – Template-Driven Forms
The quicker of Angular's two form systems, and the right choice for a short form. `FormsModule` and `ngModel`, `ngForm` and template reference variables, the built-in validators, showing an error only once the field has been touched, and the point at which you should stop and reach for reactive forms instead.