Search

Lessons (40)

  • Comments & Formatting

    … Plus the formatting habits that make code easy to scan. The big idea Think of comments as road …

  • Composition over Inheritance

    … pick a formatter and a destination interface Formatter { format(rows: object[]): Buffer; } interface Destination { deliver(file: Buffer, name …

  • S — Single Responsibility Principle

    … user, isLoading } = useUser(id); if (isLoading) return <Spinner / ; return <div <h2 {user.name}</h2 <p Member since {formatMemberSince …

  • Clean Architecture in Depth

    … convert data between formats APIs, UI or storage formats change Use cases (and their ports) 🟣 Frameworks & drivers …

  • AWS Data Pipelines in Plain Language

    … CSV with quoted commas or more complex formatting needs an appropriate SerDe, such as OpenCSVSerDe, and deliberate type …

  • Rust: Types, Errors and Concurrency

    … amount cents } = format!("paid ${:.2}", amount cents as f64 / 100.0), Status::Shipped { tracking } = format!("on its way …

  • Abstraction

    … number[]; protected abstract format(data: number[]): string; } class SalesReport extends Report { protected title() { return "Monthly sales"; } protected fetchData …

  • CI/CD and Reviewed Production Changes

    … mermaid flowchart TD A[Infrastructure pull request] -- B[Format and validate] B -- C[Tests and security checks] C …

  • NestJS Core Concepts

    … one error format ts @Catch() export class AllExceptionsFilter implements ExceptionFilter { catch(exception: unknown, host: ArgumentsHost) { const res = host …

  • YAGNI: You Aren't Gonna Need It

    … nobody asked for PDF, XML, plugins or custom delimiters class ExportEngine { constructor({ format = "csv", delimiter = ",", encoding = "utf-8 …

  • Code Smells & Refactoring

    … this.currency }).format(this.cents / 100); } } Switch statements → Polymorphism js // ❌ This switch is repeated in area(), perimeter(), draw …

  • Polymorphism

    … picks the right version from the types format(date) vs format(number) , Box<T Runtime polymorphism (overriding) ts …

  • Kafka Producers

    … But producers and consumers must agree on it. Format Pros Cons --- --- --- JSON Human-readable, easy Larger, no enforced …

  • API Contracts, Gateways and Security

    … Format: JSON is the common choice (easy to read). Protobuf is a smaller, strictly typed binary format, used …

  • REST API Design

    … Consistent error format Pick one error shape and use it everywhere. [RFC 9457 "Problem Details"](https://www.rfc …

  • Referrals, Cold Outreach and Tracking Applications

    … Common formats are first@company.com or first.last@company.com . Follow-up rhythm Day Action --- --- 0 Apply …

  • AI Evaluation, Safety, and Security

    … Automated checks are useful for exact formats, required fields, forbidden disclosures, and citation presence. Human review is important …

  • Your First Terraform Project

    … installs the provider and initializes the backend. fmt formats the source. validate checks configuration consistency; it does not …

  • Testing, Preconditions, and Policy Checks

    … different questions Check Question --- --- terraform fmt -check Is formatting consistent? terraform validate Is the configuration internally valid? Variable …

  • Imports, Moved Blocks, and Safe Refactoring

    … Provider docs define the import ID; different resource types use different formats. terraform plan -generate-config-out=generated …

  • Extending Kubernetes: CRDs, Operators and Admission

    … string, format: date-time } Then users create instances: yaml apiVersion: shop.example.com/v1 kind: Backup metadata: name …

  • Small Functions That Do One Thing

    … validateEmail() "checks that an email has a valid format" → one thing. ✅ Before: one function doing everything js async …

  • How a Web Request Works

    … You write the letter in a format everyone understands → HTTP . 5. Someone at the destination reads it and …

  • Go Fundamentals

    … every screw fits every hole, the instructions are always in the same format, and there are no special …

  • REST vs GraphQL vs gRPC

    … verbs Query language, one endpoint Remote procedure calls Format JSON (text) JSON (text) Protobuf (binary) Transport HTTP/1 …

  • Month 6: Reliability, Security, Fine-Tuning and Production (Weeks 21-24)

    … consistent style or format, narrow high-volume classification or extraction, making a small cheap model match a large …

  • TypeScript Essentials

    … typo caught! Narrowing: TypeScript tracks what a value can be after each check. ts function format(value: string …

  • MVC, MVP & MVVM

    … views/products/show.ejs -- <h1 <%= product.name % </h1 <p <%= product.formattedPrice() % </p ⚠️ Fat controller, anaemic model: a common …

  • Finding Service Boundaries with DDD

    … or legacy model Published language A shared, documented format (for example, event schemas) Shared kernel A small, jointly …

  • CQRS & Event Sourcing

    … events, upcasters (convert old events to the new format on read) Querying is hard ("all accounts over $1 …

  • Event-Driven Architecture

    … Standard envelope e.g. CloudEvents , a CNCF standard format The hard parts (be honest) Challenge Mitigation --- --- Eventual consistency …

  • Frontend Performance & Core Web Vitals

    … Optimise images (usually the LCP element) html <!-- ✅ Modern format, right size, loaded with high priority -- <img src="/hero …

  • Frontend Testing Strategy

    … Unit tests: pure logic Best for pure functions: formatters, calculations, validation, reducers. ts // cart.ts export function cartTotal …

  • CloudWatch: Know What Your App Is Doing

    … If the fields are not discovered from your log format, use parsing or inspect @message ; the query assumes …

  • AWS Messaging: Queues, Topics and Events

    … This example shows the event envelope concept; publishing through the API uses its required request format. Saving the …

  • S3: Store Files Safely

    … Check actual bytes, file size, allowed format, and any scanning required by the product. Keep unverified content separate …

  • Serverless: Lambda and API Gateway

    … Use the HTTP API payload format expected by the handler, authorize API Gateway to invoke this function, and …

  • Go Web Services with Gin

    … writes a 400 itself and makes custom error formats harder). Route groups and middleware go func NewRouter(h …

  • Architecture Patterns at Scale

    … team gets paged. - Contract: the API or event format, and how it changes safely. - Source of truth: which …

  • AI Architect Reference: Decisions, Glossary, Resources and Career

    … approvals LangGraph workflow or agent Consistent tone or format Prompt + few-shot examples Fine-tuning Classify 1 million …