performance-optimization

// Dynamic import for route-level code splitting const Dashboard = lazy(() => import("./pages/Dashboard")); const Settin...

github

tdd-mastery

Red - Write a failing test that defines the desired behavior Green - Write the minimum code to make the test pass Refact...

github

django-patterns

Organize Django projects with a clear separation between apps, shared utilities, and configuration. project/ config/ set...

github

prompt-engineering

You are a senior code reviewer. Your role is to analyze pull requests for: Correctness - logic errors, edge cases, off-b...

github

springboot-patterns

src/main/java/com/example/app/ config/ # @Configuration beans controller/ # @RestController (thin, delegat...

github

git-advanced

git worktree add ../feature-auth feature/auth git worktree add ../hotfix-123 -b hotfix/123 origin/main git worktree list...

github

docker-best-practices

FROM node:22-alpine AS deps WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci --only=production FROM node:2...

github

websocket-realtime

import { WebSocketServer, WebSocket } from "ws"; const wss = new WebSocketServer({ port: 8080 }); const rooms = new Map<...

github

aws-cloud-patterns

import { APIGatewayProxyHandlerV2 } from "aws-lambda"; import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; import...

github

typescript-advanced

interface HasId { id: string; function findById<T extends HasId>(items: T[], id: string): T | undefined { return items.f...

github

accessibility-wcag

<header> <nav aria-label="Main navigation"> <ul> <li><a href="/" aria-current="page">Home</a></li> <li><a href="/product...

github

mcp-development

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontext...

github

kubernetes-operations

apiVersion: apps/v1 kind: Deployment metadata: name: api-server labels: app: api-server version: v1 spec: replicas: 3 st...

github

llm-integration

import Anthropic from "@anthropic-ai/sdk"; const client = new Anthropic(); async function generateResponse( systemPrompt...

github

continuous-learning

After every significant coding session, extract and categorize learnings into three buckets: Corrections - Mistakes caug...

github

postgres-optimization

-- B-tree index for equality and range queries (default) CREATE INDEX idxorderscustomerid ON orders (customerid); -- Com...

github

react-patterns

use() reads values from Promises and Context directly in render. Unlike other hooks, it can be called inside conditional...

github

authentication-patterns

import jwt from "jsonwebtoken"; interface TokenPayload { sub: string; email: string; roles: string[]; function generateT...

github

claude-memory-kit

Your Claude agent remembers everything across sessions and projects. Persistent memory — MEMORY.md hot cache + knowledge...

github

data-engineering

from datetime import datetime from dataclasses import dataclass @dataclass class PipelineResult: recordsextracted: int r...

github

api-design-patterns

Use plural nouns: /users, /orders, /products Nest for relationships: /users/{id}/orders Max nesting depth: 2 levels. Bey...

github

rust-systems

fn processdata(data: &[u8]) -> Vec<u8> { data.iter().map(|b| b.wrappingadd(1)).collect() fn modifyinplace(data: &mut Vec...

github

nextjs-mastery

app/ layout.tsx # Root layout (wraps all pages) page.tsx # Home route / loading.tsx ...

github

deep-dive

Autonomous deep research using the same DAG-based planning pattern as Google's Deep Research — but running entirely on C...

github