Practical software engineering knowledge, ready to reuse
Find real-world code recipes, design patterns, and reusable documentation across Python, Java, JavaScript, SQL, and more.
Why StackPractices?
Built for developers who value speed, clarity, and reusable knowledge.
Copy-paste ready
Code you can drop into your project and run immediately.
Multi-language
Examples in Python, Java, JavaScript, TypeScript, SQL, Bash, and more.
Community driven
Open knowledge base shaped by real-world engineering challenges.
Structured docs
Consistent templates and guides for maintainable documentation.
Browse by type
Choose the kind of resource you need for your project.
Browse by tag
Quick access to the most popular topics across all content.
Explore by Topic & Technology
Browse all resources organized by software engineering concepts like API Design, Authentication, and Testing — or by your favorite programming language.
Browse topicsLatest recipes
Fresh code solutions added to the knowledge base.
AI Agents with Tool Use
Build autonomous AI agents that can use external tools and APIs to accomplish complex tasks.
Create a Chatbot with OpenAI Assistants API
How to create an AI chatbot using the OpenAI Assistants API with function calling and file retrieval
Create API Documentation with OpenAPI
Generate interactive API docs from OpenAPI specs using Swagger UI, Redoc, and native tools in Python, JavaScript, and Java.
Latest guides
In-depth engineering guides connecting recipes and patterns.
API Gateway: Routing, Auth, Rate Limiting
Master API gateway architecture: request routing, authentication, rate limiting, request shaping, response caching, protocol translation, and production deployment patterns.
Event Sourcing and CQRS: Event Store, Projections
Master event sourcing and CQRS: event store design, aggregate roots, projections, read models, snapshots, sagas, and production patterns for event-driven systems.
Modular Monolith: Module Boundaries, Shared Kernel
Master modular monolith architecture: module boundaries, shared kernel, dependency rules, communication patterns, and incremental migration to microservices.