StackPractices

Tag: recipe

Browse 60 practical software engineering resources tagged with "recipe". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving recipe. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.

Code Recipes and Copy-Paste Solutions

Recipes are short, practical solutions to specific programming problems. Each recipe includes runnable code, a brief explanation, and practical advice.

The resources below cover a wide range of languages, tools, and domains. Use them as starting points or drop-in solutions for common engineering tasks.

Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.

Hash Passwords with Argon2

How to hash and verify passwords securely with Argon2id, the winner of the Password Hashing...

Implement ABAC

How to implement attribute-based access control with policy engines, live context evaluation, and...

Implement RBAC

How to implement role-based access control with hierarchical roles, permission grants, and...

Implement SSO with SAML

How to implement SAML 2.0 single sign-on as a Service Provider with XML signature verification, IdP...

Validate DataFrame Schemas with Pandera

How to validate pandas and Polars DataFrame schemas with Pandera, covering column types,...

Transform Data in the Warehouse with dbt

How to use dbt for SQL-based data transformations with models, tests, materializations, macros, and...

Build an ETL Pipeline with pandas and Parquet

How to build an extract-transform-load pipeline using pandas for data processing and Parquet for...

High-Performance DataFrame Operations with Polars

How to use Polars for fast DataFrame operations with lazy evaluation, expression API, streaming,...

Recursive CTEs for Hierarchical Data Queries

How to query hierarchical data with recursive Common Table Expressions in SQL, covering tree...

Seed Database

How to seed databases with realistic data for development, testing, and staging environments using...

Ansible Playbook for Server Configuration

How to write and run Ansible playbooks for provisioning, configuring, and managing servers with...

Override Docker Compose Configs per Environment

How to use Docker Compose override files for environment-specific configurations, covering dev,...

Slim Production Images with Multi-Stage Docker Builds

How to build minimal production Docker images using multi-stage builds with distroless base images,...

Across Multiple OS and Language Versions with GitHub

How to use GitHub Actions matrix strategy to test across multiple operating systems, language...

Share Workflow Logic with GitHub Actions Reusable Workflows

How to create and consume reusable workflows in GitHub Actions, covering inputs, secrets,...

Mount Configs and Secrets into Kubernetes Pods

How to mount ConfigMaps and Secrets into Kubernetes pods using env vars, volumes, projected...

Package Kubernetes Manifests with Helm Charts

How to create, template, and deploy Kubernetes applications using Helm charts, covering values,...

Setup SSL Certificates with Let's Encrypt

How to obtain, install, and auto-renew SSL certificates using Certbot with Nginx, Apache, and...

Store Terraform State in S3 with DynamoDB Locking

How to configure Terraform remote state with S3 backend and DynamoDB locking, covering state...

Isolate Environments with Terraform Workspaces

How to use Terraform workspaces for environment isolation, covering workspace creation, conditional...