Search
Lessons (40)
- Frontend Testing Strategy
What to test and how. The testing trophy, unit tests with Vitest, component tests with Testing Library, API …
- Testing, Preconditions, and Policy Checks
Use validation, lifecycle conditions, Terraform tests, and policy checks to catch different classes of errors. Different checks answer …
- CI/CD with GitHub Actions
Run tests on every pull request and deploy automatically on every merge: workflow YAML explained, secrets, SSH deploys …
- Hexagonal Architecture (Ports & Adapters)
… Driving vs driven sides, a complete TypeScript example, testing with fake adapters, and how to structure the folders …
- Train Your First Model from Scratch
… The training-average baseline is 10 minutes, giving test MSE of 37. The trained model's test MSE …
- CI/CD Fundamentals and Pipeline Design
… Unit tests npm test , pytest , go test ./... Logic is correct 1 to 3 min 5. Build / package npm …
- Code Smells & Refactoring
… nothing leaves, it just ends up in the right place. mermaid flowchart LR T1["✅ Tests pass"] -- S["Make …
- Machine Learning Fundamentals
… Estimating a home's sale price is regression. Train, validate, test The training set fits model parameters. The …
- Production Capstone and Interview Practice
Combine modules, isolated environments, remote state, tests, and reviewed delivery in a production-style storage project. Build a …
- CI/CD and Reviewed Production Changes
… The test command assumes a maintained test suite and safe test credentials. Tests using apply can create resources …
- Preparing for Technical Interview Rounds
… Always ask the recruiter: "What rounds should I expect, and what does each one test?" Recruiter screen (15 …
- Monitoring, Logs & Backups
… Once a month (put it in the calendar): bash createdb myapp restore test pg restore --no-owner -d …
- Data Preparation and Model Training
… train on the past and test on a later period. Fit preprocessing steps on training data only, then …
- Go Fundamentals
… Use interfaces when you care about behavior . Testing Tests live in files ending in test.go , in functions …
- Python Web APIs: FastAPI and Django
… res = client.post("/tasks", json={"title": "Write tests"}) assert res.status code == 201 assert res.json()["title"] == "Write …
- D — Dependency Inversion Principle
… new SesMailer(awsConfig), }); // Tests: plain fakes, no network const sent = []; const testService = new OrderService({ orderRepository: { save: async () = {} }, mailer …
- NestJS Core Concepts
… process.env.NODE ENV === "test" ? FakeGateway : StripeGateway }, { provide: "APP NAME", useValue: "shop-api" }, { provide: "REDIS", useFactory: async (config …
- Jenkins in Production: Deploys, Docker and Scaling
… node:22-alpine command: ["sleep"] args: ["infinity"] ''' } } stages { stage('Test') { steps { container('node') { sh 'npm ci && npm test …
- Deploying & Operating Microservices
… own tests and its own pipeline. mermaid flowchart LR C[💻 Commit] -- B["🔨 Build<br/ + unit tests"] -- I["🐳 Docker …
- Onion Architecture & Clean vs Hexagonal vs Onion
… infrastructure, UI, tests Implementations of the interfaces, web framework, DB, external APIs SqlOrderRepository , controllers, EF Core / Prisma mermaid …
- Clean Architecture
… No database, no network, milliseconds per test. js test("rejects duplicate emails", async () = { const userRepository = new InMemoryUserRepository([{ id …
- Clean Architecture in Depth
… Entities, use cases, input and output ports, presenters, crossing boundaries with DTOs, "screaming" folder structure, testing, and common …
- AI Evaluation, Safety, and Security
Build representative tests, measure retrieval and model quality, defend against prompt injection, and handle sensitive data responsibly. The …
- Jenkins: From Install to Your First Pipeline
… Break a test on a branch and confirm the build turns red. Next lesson: deploying to a server …
- Month 6: Reliability, Security, Fine-Tuning and Production (Weeks 21-24)
… Evaluation as an engineering discipline Learn - Evals are your unit tests for AI. Without them, every prompt or …
- Safe AWS Deployments with IaC and CI/CD
… Deploy through a reviewed pipeline, not from one person’s laptop. mermaid flowchart LR C[Commit] -- T[Tests …
- MVC, MVP & MVVM
… Keeping these three apart means you can redesign the screen without rewriting the news, and test the producer …
- Multi-Account Strategy, Governance and Security Operations
… Follow tested session-revocation procedures and verify the relevant policy enforcement. Replacing a security group also does not …
- Resilient Service Calls: Retries, Breakers and Load Shedding
… 30 s), it goes half-open . Half-open Only a few test calls go through. Tests succeed, so …
- Composition over Inheritance
… Learn the "has-a" test, why inheritance hierarchies explode, and how composition keeps code flexible. The big idea …
- YAGNI: You Aren't Gonna Need It
… Clean, tested code is what lets you change safely later. - Do think ahead for decisions that are expensive …
- DRY: Don't Repeat Yourself
… s]+\.[^@\s]+$/.test(email)) throw new Error("Invalid email"); // profile.js if (!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(email)) throw …
- Capacity Planning, SLOs and Error Budgets
… A capacity plan is a guess to be tested with a load test, not a magic formula. Latency …
- Rust: Types, Errors and Concurrency
… listener, app).await.unwrap(); } Testing rust [cfg(test)] mod tests { use super:: ; [test] fn parses valid port() { assert …
- Go Web Services with Gin
… net/http basics, Gin routes and groups, binding and validating JSON, middleware, a layered project structure, handler tests …
- Design System Operations
… Do not replace native controls unnecessarily, and test keyboard navigation in the final styling—not only in the …
- Releases, Observability and Production Safety
… The exact thing you tested is the exact thing you ship. - Release it as a canary to, say …
- Portfolio and GitHub That Prove Your Skills
… Small commits with clear messages No tests Some unit + integration tests in CI Project ideas by role - Backend …
- O — Open/Closed Principle
… is risky Every time you open a working, tested function to add an else if , you risk breaking …
- DSA Interview Patterns Cheat Sheet
… Interviews test whether you can recognise the pattern from the wording, then apply its template. Pick a technique …