Search
Lessons (18)
- NestJS Core Concepts
… modules, controllers, providers and dependency injection, then the request lifecycle of middleware, guards, interceptors, pipes and exception filters …
- D — Dependency Inversion Principle
… Dependency Injection DIP is the principle; Dependency Injection (DI) is the most common technique to achieve it: pass …
- Authentication, Authorization & API Security
… Authorize every request. - Parameterised queries stop injection.
- Clean Architecture
… one application action js // application/RegisterUser.js export class RegisterUser { // Dependencies are injected: only "shapes" (interfaces), never concrete …
- Resilience, Disaster Recovery and Multi-Region Design
… 2. AWS Fault Injection Service injects failures (stop instances, throttle APIs, add latency) in a controlled way. 3 …
- Creational Patterns: How to Make Objects
… Prefer creating one instance in your composition root and injecting it (see Dependency Inversion ). --- Cheat sheet Pattern One …
- Backend Languages: Node.js, Go, Python & Rust
… NestJS (structured, TypeScript-first) NestJS adds modules, dependency injection and decorators on top of Express/Fastify, similar to …
- Frontend Security
… Even if an attacker injects a <script , the browser refuses to run it. http Content-Security-Policy: default …
- OOP Mistakes and Interview Questions
… use composition or split the interface Static everything UserUtils.create() , UserUtils.save() Real objects with injected dependencies new …
- SOLID at a Glance
… microwave's buttons. D Dependency Inversion Depend on abstractions , not concrete details. Lamps depend on the socket, not …
- Which Pattern Do I Need?
… first Singleton abuse Global state everywhere, flaky tests Dependency injection God object One class that knows and does …
- React vs Vue vs Angular
… tracked dependencies"] V1[ref changes] -- V2["Proxy knows exactly<br/ which parts use it"] -- V3[update only those …
- Abstraction
… You don't need to know about fuel injection, spark timing or the gearbox. All that complexity is …
- Composition over Inheritance
… Pass the parts in ( dependency injection ). - Going too far. Splitting a 20-line class into eight tiny parts …
- Resilience Patterns
… Mesh, Gremlin and AWS Fault Injection Service. Key takeaways - Assume every dependency will fail or slow down. - Timeouts …
- Python Web APIs: FastAPI and Django
… your database object never leaks. Dependencies Depends is FastAPI's dependency injection: shared logic (DB sessions, current user …
- Containers at Scale: ECS Deep Dive and EKS
… Demonstrate the design in a lab before depending on it for a production incident. Remember this - ECS is …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… Clean up (avoid surprise bills) Delete in dependency order. A versioned bucket cannot be removed until every version …