Software Engineering

Insights on software development, engineering practices, architecture patterns, and the craft of building robust, scalable systems.

405 items · Page 4 of 9

Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Evaluation: Functional Correctness and pass@k

Feb 5, 2026·53 min read

Measure code LLM quality using execution-based evaluation, the pass@k metric, and key benchmarks like HumanEval, APPS, and SWE-bench.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Execution: Sandboxed Feedback and Iterative Refinement

Feb 4, 2026·53 min read

Explains how LLM agents safely execute generated code using sandboxed environments, capture execution feedback.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Tool Selection for LLM Agents: Routing Strategies

Feb 4, 2026·58 min read

Covers LLM tool selection through embedding-based routing, hybrid strategies, and semantic interfaces. Build scalable multi-tool agent systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Information Extraction: NER, Relations, Structured Output

Feb 4, 2026·53 min read

Transform raw text into structured data using named entity recognition, relation extraction, event extraction, and LLM-based JSON output generation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Generation: Docstring-to-Code, Test-Driven, Strategies

Feb 3, 2026·52 min read

Covers code generation with LLMs, covering docstring-to-code, test-driven generation, sampling strategies, self-repair loops, and generation quality metrics.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Completion: Context, Ranking, Latency & UX

Feb 3, 2026·55 min read

Explains how LLM-powered code completion works: context assembly with fill-in-the-middle, candidate ranking, latency optimizations like speculative decoding.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Interpretability Goals: Debugging, Trust, and Safety

Feb 2, 2026·46 min read

Explains why interpretability matters for language models, covering debugging, trust, safety alignment, scientific understanding.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Understanding: Explanation, Bug Detection, Review

Feb 2, 2026·48 min read

Language models can explain code, detect bugs, support review, and run semantic code search. Covers dual encoders, contrastive training, and evaluation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Red Teaming LLMs: Methodology, Taxonomies, and Automation

Jan 30, 2026·61 min read

Explains how red teams systematically probe language models for safety failures, covering attack taxonomies, ASR metrics, RL-based automated attack generation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Prompt Injection: Attacks, RAG Risks, and Defenses

Jan 29, 2026·50 min read

Covers direct and indirect prompt injection attacks, how RAG pipelines create injection surfaces, and the layered defense strategies used to mitigate them.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code LLM Training: Tokenization, FIM, Pretraining Objectives

Jan 29, 2026·56 min read

Explains how code language models are trained: code data curation, code-specific tokenization, fill-in-the-middle objectives.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Hybrid Search: BM25 and Dense Retrieval Combined

Jan 29, 2026·65 min read

Hybrid search combines BM25 keyword ranking with dense vector retrieval. Covers reciprocal rank fusion, weighted scores, recall, and tuning tradeoffs.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Hyperparameter Selection: Search, Transfer, Default Recipes

Jan 29, 2026·58 min read

Covers systematic strategies for hyperparameter search, how muP enables transfer across model scales.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Activation Steering: Vectors and Representation Engineering

Jan 29, 2026·47 min read

Explains how steering vectors and activation addition let you modify language model behavior at inference time.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Training Stability: Loss Spikes, Gradient Norms & Debugging

Jan 28, 2026·60 min read

Detect and prevent training instability in deep learning. Topics include loss spikes, gradient norm monitoring, gradient clipping.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Gradient Accumulation: Memory-Efficient Large Batch Training

Jan 27, 2026·49 min read

Explains how gradient accumulation simulates large batch sizes on limited GPU memory by splitting batches into micro-batches.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Weight Decay: L2 Regularization, AdamW, Decoupled Training

Jan 27, 2026·56 min read

Explains how weight decay regularizes neural networks, why AdamW decouples weight decay from adaptive gradients.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Large Batch Training: Scaling Rules, Limits, and LAMB

Jan 27, 2026·49 min read

Explains how batch size affects gradient noise and generalization, apply the linear scaling rule for learning rates, identify the critical batch size.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Safety Risks in Language AI: Harms, Misuse, Threat Models

Jan 26, 2026·52 min read

Examines harmful content categories, misuse scenarios, unintended harms, and structured threat models for reasoning about safety in language AI systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Cosine Learning Rate Schedule: Decay, Restarts, and Warmup

Jan 26, 2026·65 min read

Covers cosine learning rate schedule used in GPT and LLaMA training: the decay formula, warm restarts, key parameters, and comparison with linear decay.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

HNSW Index: Architecture for Fast Vector Search

Jan 26, 2026·67 min read

Covers Hierarchical Navigable Small World (HNSW) graphs for vector search. Topics include graph architecture, construction, and tuning for high-speed retrieval.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

QA: Extractive, Generative, and Open-Domain QA

Jan 26, 2026·59 min read

Covers question answering systems from span extraction with BERT to retrieval-augmented generation, covering evaluation metrics and open-domain QA pipelines.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Vector Similarity Search: Metrics & Approximate Methods

Jan 25, 2026·65 min read

Examines vector similarity search for RAG systems. Compare cosine, dot product, and Euclidean metrics, and implement exact vs. approximate search with FAISS.

Open notebook
Quantitative FinanceData, Analytics & AISoftware Engineering

Case Study: Building a Quantitative Strategy from Scratch

Jan 25, 2026·51 min read

Walk through the complete lifecycle of a quantitative trading strategy. Build a pairs trading system from scratch with rigorous backtesting and risk management.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Learning Rate Decay: Step, Exponential

Jan 24, 2026·51 min read

Explains how learning rate schedules improve neural network training. Topics include step decay, exponential decay, inverse square root with warmup.

Open notebook
Quantitative FinanceSoftware EngineeringData, Analytics & AI

Ethical Quant Trading: Regulations & Market Manipulation

Jan 24, 2026·61 min read

Covers ethical quantitative trading by learning to detect spoofing, navigate Reg NMS and MiFID II, implement kill switches, and ensure data privacy compliance.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Embedding Models: Architecture, Pooling & Selection

Jan 24, 2026·65 min read

Explains how embedding models convert text to vectors for RAG. Topics include bi-encoder architecture, pooling strategies, dimensionality trade-offs.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningQuantitative Finance

Position Sizing & Leverage: Kelly Criterion Strategy

Jan 23, 2026·48 min read

Covers optimal position sizing using the Kelly Criterion, risk budgeting, and volatility targeting.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Document Chunking: Optimizing RAG Retrieval Pipelines

Jan 23, 2026·63 min read

Covers document chunking for RAG systems. Examines fixed-size, recursive, and semantic strategies to balance retrieval precision with context window limits.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Checkpointing and Recovery: Async I/O and Fault Tolerance

Jan 23, 2026·53 min read

Save and restore complete training state, choose checkpoint frequency, implement asynchronous I/O, and recover distributed LLM training runs from failures.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Contrastive Learning for Retrieval: InfoNCE and DPR

Jan 23, 2026·57 min read

Covers contrastive learning for dense retrieval. Train models using InfoNCE loss, in-batch negatives, and hard negative mining strategies effectively.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Communication Optimization: Gradient Compression, NCCL

Jan 23, 2026·55 min read

Covers distributed training communication: gradient compression, topology-aware all-reduce, NCCL tuning.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Mixed Precision Training: FP16, BF16, and Loss Scaling

Jan 22, 2026·58 min read

Explains how mixed precision training uses FP16 and BF16 floating point formats to speed up LLM training and cut memory usage without sacrificing accuracy.

Open notebook
Quantitative FinanceSoftware EngineeringData, Analytics & AI

Research Pipeline: From Strategy to Deployment

Jan 22, 2026·62 min read

Build a robust quantitative research pipeline. From hypothesis formulation and backtesting to paper trading and live production deployment strategies.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Activation Checkpointing: Gradient Memory

Jan 22, 2026·56 min read

How activation checkpointing trades compute for memory by discarding and recomputing activations.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

FSDP: Fully Sharded Data Parallel Training at Scale

Jan 22, 2026·47 min read

Explains how FSDP shards model parameters, gradients, and optimizer states across GPUs to train billion-parameter models.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

ZeRO Optimization: Stages 1, 2, and 3 Explained

Jan 21, 2026·46 min read

Explains how ZeRO eliminates memory redundancy in distributed training by partitioning optimizer states, gradients, and parameters.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

RAG Architecture: Components, Timing & Design Patterns

Jan 21, 2026·60 min read

Covers RAG system design by exploring retriever-generator interactions, timing strategies like iterative retrieval, and architectural variations like RETRO.

Open notebook
Quantitative FinanceSoftware EngineeringData, Analytics & AI

Quant Trading Systems: Architecture & Infrastructure

Jan 21, 2026·65 min read

Examines quantitative trading-system architecture, including data pipelines, strategy engines, risk controls, and execution infrastructure.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Pipeline Parallelism: Stages, Micro-Batching, GPipe, 1F1B

Jan 20, 2026·54 min read

Explains how pipeline parallelism splits deep models across devices, manages bubble overhead with micro-batching, and compares GPipe vs 1F1B schedules.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Text Summarization: Extractive and Abstractive Methods

Jan 19, 2026·67 min read

Covers extractive and abstractive summarization, from TextRank and MMR to BART and LLMs, with ROUGE and BERTScore evaluation techniques.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Tensor Parallelism: Column, Row, and Megatron Patterns

Jan 19, 2026·50 min read

Explains how tensor parallelism splits weight matrices across GPUs using column and row strategies, enabling training of models too large for any single device.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

LLM Inference Serving: Architecture, Routing & Auto-Scaling

Jan 19, 2026·73 min read

Covers LLM inference serving architecture, token-aware load balancing, and auto-scaling. Optimize time-to-first-token and throughput for production systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Speculative Decoding Math: Algorithms & Speedup Limits

Jan 17, 2026·52 min read

Covers the mathematical framework for speculative decoding, including the exact acceptance criterion, rejection sampling logic.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Activation Patching: Causal Tracing in Neural Networks

Jan 16, 2026·49 min read

Explains how activation patching locates where information flows in transformers through causal tracing, path patching, and component attribution experiments.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Data Parallelism: DDP, Gradient Synchronization & All-Reduce

Jan 16, 2026·61 min read

Explains how DDP trains large models across multiple GPUs using ring all-reduce gradient synchronization, gradient bucketing.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Speculative Decoding

Jan 16, 2026·54 min read

Speculative decoding uses a smaller draft model to propose tokens that a larger model verifies in parallel, reducing latency without changing output quality.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Memory Management: Activations, Gradients

Jan 16, 2026·47 min read

Explains how GPU memory breaks down into parameters, gradients, optimizer states, and activations. Estimate memory requirements and debug out-of-memory errors.

Open notebook
Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12