Search
Lessons (40)
- Testing, Preconditions, and Policy Checks
Use validation, lifecycle conditions, Terraform tests, and policy checks to catch different classes of errors. Different checks answer …
- IAM Deep Dive: Policy Evaluation, STS and Cross-Account Access
Understand how AWS decides allow or deny, and use roles, conditions, boundaries and tags to grant precise access …
- Binary Search
… search on a condition Binary search works on anything where a yes/no question flips exactly once : text …
- Advanced TypeScript for Frontend
Model real UI states safely with generics, discriminated unions, conditional types and runtime schema validation at API boundaries …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… In a dedicated sample table with that key schema, an atomic conditional update can decrement only when stock …
- Production Capstone and Interview Practice
… variables.tf variable "name prefix" { type = string validation { condition = can(regex("^[a-z][a-z0-9-]{2,29 …
- ACID, Transactions & Locks
… invariant Stock never falls below zero because constraints/conditional update reject it. Isolation Concurrent interference Two buyers cannot …
- Variables, Locals, Outputs, and Validation
… used in the generated file." default = "academy" validation { condition = can(regex("^[a-z][a-z0-9-]{2,19 …
- React Hooks in Practice
… order changes between renders if (user) { const [name, setName] = useState(user.name); } // ✅ Always call it; put the condition …
- IAM: Who Can Do What
… Keep the request's action, resource ARN, account, role, and relevant conditions in your notes. An S3 bucket …
- AWS Databases: Choose the Right One
… Use conditional writes for rules such as “create this item only if it does not exist.” That prevents …
- Flash Sale: 10 Million Buyers, No Oversell
… Create a reservation using a conditional stock update and reservation row in one transaction. Give each intent a …
- Design an E-Commerce Checkout
… Reserve stock with an authoritative conditional transition. 2. Persist workflow state and use the same payment identity on …
- AI Specialties and Real-World Examples
… For a warehouse camera, split data by relevant conditions such as camera or capture period. Near-duplicate frames …
- Collaborative Document Editing & Real-Time Sync
… It assigns rev = lastRev + 1 and does a conditional append : sql INSERT INTO ops (doc id, rev, ...) VALUES …
- Docker & Containers
… db: { condition: service healthy } cache: { condition: service started } db: image: postgres:17 environment: { POSTGRES USER: app, POSTGRES PASSWORD …
- Multi-Account Strategy, Governance and Security Operations
… revoke sessions (attach an explicit deny with a TokenIssueTime condition), isolate the instance with a quarantine security group …
- Database Indexing & Transactions
… This is a race condition , and transactions with the right isolation prevent it. mermaid sequenceDiagram participant A as …
- Putting AI Systems into Production
… Define an owner, incident path, and conditions for disabling the feature. Key takeaways - Production quality depends on application …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… A conditional claim prevents concurrent workers from starting the same operation, but external side effects also need idempotency …
- HCL, Resource Addresses, and Project Layout
… Null null Absence; often omit an optional argument Conditional var.production ? 3 : 1 Choose one of two expressions …
- Concurrency, Resilience & Distributed Workflows
… Dead-letter queue / operator review] Race conditions and deadlocks A race condition occurs when the result depends on …
- Transformers and Large Language Models
… takeaways - LLMs generate tokens from learned probability distributions conditioned on context. - Token limits, context windows, and generation settings …
- Reusable Modules and Clear Interfaces
… name" { type = string } variable "port" { type = number validation { condition = var.port = 1 && var.port <= 65535 && floor(var.port …
- Database Relations & Foreign Keys
… the rule when another service, script or race condition bypasses that validation. Delete behavior is a product decision …
- Resources, QoS and Scheduling Control
… when a node runs short of memory: Class Condition Evicted --- --- --- Guaranteed Every container has requests equal to limits …
- Design a Ride-Sharing Service
… Attempt a conditional assignment against the driver’s authoritative state, using ride ID and a lease/version. 3 …
- Troubleshooting Playbook
… kubectl get nodes kubectl describe node <node check Conditions: MemoryPressure, DiskPressure, PIDPressure kubectl top nodes NotReady nodes usually …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… the event again; the unique event ID or conditional state update makes the second attempt harmless. For an …
- I — Interface Segregation Principle
… with 80 buttons for the TV, the air conditioner, the garage door and the microwave. Your grandmother only …
- Train Your First Model from Scratch
… depend on traffic, weather, pickup delays, and route conditions. Add representative data before adding a bigger model. Keep …
- Which Pattern Do I Need?
… Creating objects is messy<br/ or depends on conditions"] -- F[Factory] P2["Constructor has too<br/ many parameters …
- KISS: Keep It Simple, Stupid
… Simplify conditions js // ❌ function getShippingCost(country) { if (country === "US") { return 5; } else if (country === "CA") { return 8; } else …
- Python and Math Foundations with Runnable Examples
… Dot products and shapes Probability Uncertainty and distributions Conditional probability using counts Statistics Sampling and performance estimates Mean …
- The L6 System-Design Thinking Loop
… Use a conditional seat reservation in the authoritative database; a queue only controls admission. 3. Persist a payment …
- React vs Vue vs Angular
… input() Events out callback props defineEmits / $emit output() Conditional {cond && <X/ } v-if @if List items.map(...) v …
- Code Smells & Refactoring
… statements Same switch(type) in many places Replace Conditional with Polymorphism 8 Shotgun surgery One change needs edits …
- React Fundamentals
… For big forms, libraries like React Hook Form keep things fast and tidy. Conditional rendering jsx {isLoading && <Spinner …
- A WhatsApp OTP Is Only Single Use If You Make It So
… hashed codes, atomic consume, attempt limits, crash recovery and race-condition tests. The problem in context A user …
- Creational Patterns: How to Make Objects
… create different types of objects depending on a condition, and you don't want if/else + new scattered …