DP

dereknguyen269/programing-best-practices

Deployment & DevOps
678 stars Quality 72 Trend 29Unlicense

Awesome Programming Best Practices for Beginners

Overview

Your comprehensive guide to writing better code across 30+ languages and frameworks Curated resources from industry leaders • Production-ready practices • Always updated 🔗 Quick Links Backend • Frontend • Database • Mobile • DevOps • AI/ML • Tools • Featured This repository is a across multiple languages, frameworks, and tools. It is not an exhaustive list but rather a practical resource containing articles, guidelines, and style guides that have proven helpful in real-world development. The focus is primarily on (Ruby, Rails, JavaScript, etc.), but it also covers . With this collection, I hope to support developers in writing and growing in their careers.

README

🌟 Programming Best Practices

Your comprehensive guide to writing better code across 30+ languages and frameworks

Curated resources from industry leaders • Production-ready practices • Always updated

📖 Introduction

This repository is a curated collection of programming best practices across multiple languages, frameworks, and tools.

It is not an exhaustive list but rather a practical resource containing articles, guidelines, and style guides that have proven helpful in real-world development.

The focus is primarily on Web Development (Ruby, Rails, JavaScript, etc.), but it also covers databases, DevOps, cloud practices, AI tools, and career growth.

With this collection, I hope to support developers in writing cleaner, more maintainable code and growing in their careers.

✨ At a Glance

📚 Resources 340+ hand-picked guides, style guides, and official docs
💻 Coverage 30+ languages & frameworks across backend, frontend, mobile, data, DevOps, and AI
🔍 Offline search Crawl everything locally and search with BM25 — no browser tab-sprawl
🤖 AI-native Auto-invoked skills for Claude Code and Kiro, plus a Claude Code plugin
🔄 Maintained Automated link checking with weekly fix PRs

Status: 🚧 Work in Progress — continuously updated


🎯 Why This Repository?

✨ Curated Quality — Hand-picked resources from industry leaders and experienced developers
🚀 Production-Ready — Practices that work in real-world applications, not just theory
🌍 Multi-Language — Covers 30+ programming languages and frameworks
📚 Comprehensive — From code style to architecture, security to performance
🔄 Always Updated — Regularly maintained with the latest best practices
💡 Community-Driven — Open to contributions from developers worldwide


💡 Want offline access, local search, or AI-editor integration? Jump to 🚀 Quick Start Setup at the bottom.


📁 Repository Structure

programing-best-practices/
├── README.md                   # Main knowledge base (curated links)
├── index.html                  # Web landing page
├── contributing.md             # Contribution guidelines
├── .claude-plugin/             # 🔌 Claude Code plugin manifest
│   ├── marketplace.json
│   └── plugin.json
├── skills/                     # 🧠 Claude Code auto-invoked skills
│   └── best-practices/         # 🔍 BM25-powered best practices search
│       ├── SKILL.md            # Skill instructions
│       ├── data/               # CSV databases (resources, languages, categories)
│       └── scripts/            # Search engine (core.py, search.py, generate_csv.py)
├── .kiro/                      # Kiro config
│   ├── project.md
│   ├── steering/               # Kiro steering files (auto-included)
│   │   ├── best-practices/     # 🔍 BM25-powered search
│   │   └── ui-ux-pro-max/      # 🎨 UI/UX guidance skill
│   └── resources/              # Project knowledge (decisions, progress)
├── data/
│   └── resources.csv           # 📊 Resource index (regenerated by crawler)
├── content/                    # 📄 Crawled content (generated — not committed)
│   ├── index.json              # Master index of all resources
│   ├── metadata.yaml           # Crawl statistics
│   └── ...                     # Content organized by category
├── scripts/
│   ├── crawler/                # 🕷️ Crawler tools
│   │   ├── crawl.py            # Main crawler
│   │   ├── search.py           # Search tool
│   │   ├── generate_summaries.py
│   │   └── requirements.txt
│   ├── validate_links.py       # ✅ Link health checker
│   ├── fix_links.py            # 🔧 Automated link fixer
│   ├── auto_maintenance_pr.sh  # 🤖 Weekly maintenance PR automation
│   ├── install-skill.py        # 🔧 Install skill to any project (Claude/Kiro)
│   ├── update.sh               # 🔄 Update resources + reinstall skill
│   ├── setup-kb.sh             # ⚡ Integrate KB into an existing project
│   └── quick-start.sh          # 🚀 First-time setup for this repo
└── docs/
    ├── INTEGRATION.md          # Integration guide
    ├── QUICK_START_GUIDE.md    # Setup script walkthrough
    ├── backend.md / frontend.md / database.md / devops.md / mobile.md / ai-ml.md / tools.md
    └── images/                 # Diagrams and screenshots

content/ is generated locally by the crawler and intentionally git-ignored — clone the repo and run the setup script to create it.


🔍 Searching the Knowledge Base

After crawling, you can search locally:

# Search for JavaScript content
python3 scripts/crawler/search.py "javascript style guide"

# Search within a specific category
python3 scripts/crawler/search.py "best practices" --category python

# Get results as JSON
python3 scripts/crawler/search.py "security" --json

BM25-Powered Search (via Skill)

The best-practices skill installed at .kiro/steering/best-practices/ provides more powerful BM25 search:

# Full recommendation (resources + deep content)
python3 .kiro/steering/best-practices/scripts/search.py "ruby rails security" --recommend

# Search by language overview
python3 .kiro/steering/best-practices/scripts/search.py "go" --domain language

# Deep search within crawled markdown files
python3 .kiro/steering/best-practices/scripts/search.py "design patterns" --content --lang python

Keeping Resources Up to Date

# Update all resources and reinstall the Kiro skill
./scripts/update.sh

# Update a specific category only
./scripts/update.sh --category ruby

# Regenerate CSVs and reinstall without re-crawling
./scripts/update.sh --skip-crawl

🛠️ Troubleshooting

Problem Fix
python3: command not found Install Python 3.8+ and re-run the setup script
source .venv/bin/activate fails on Windows Use .venv\Scripts\activate instead
Crawl is slow or times out Try --limit 20 first, or crawl one category: --category python
Skill not detected by your AI editor Re-run ./scripts/update.sh --skip-crawl to reinstall, then restart the editor
Found a broken link Please open an issue — link health is checked automatically (see below)

With 340+ external links, rot is inevitable — so it’s automated:

  • Validation — scripts/validate_links.py checks every link in the README
  • Auto-fix — scripts/fix_links.py repairs known patterns (e.g., moved or archived URLs)
  • Weekly PRs — scripts/auto_maintenance_pr.sh opens a maintenance pull request with link fixes
  • Log — maintenance_log.txt records each maintenance run
# Check all links yourself
python3 scripts/validate_links.py

# Attempt automatic fixes
python3 scripts/fix_links.py

📚 How to Use This Repository

For Beginners

  1. Start with your primary language — Navigate to your language section in the Table of Contents
  2. Read style guides first — Understanding code style is fundamental
  3. Practice with examples — Apply the practices in your own projects
  4. Bookmark for reference — Keep this as a go-to resource when coding

For Experienced Developers

  1. Explore new languages — Learn best practices before starting a new tech stack
  2. Code review reference — Use during code reviews to maintain quality standards
  3. Team onboarding — Share relevant sections with new team members
  4. Stay updated — Check back regularly for new resources and practices

For Team Leads

  1. Establish standards — Use these guides to create team coding standards
  2. Training resource — Assign relevant sections for team learning
  3. Quality benchmarks — Set expectations for code quality
  4. Architecture decisions — Reference system design and scalability sections

🤖 Use for Existing Projects

Want to integrate this knowledge base into your existing project? We provide multiple options:

Option 1: Quick Setup Script

# Run the setup script in your project directory
curl -sSL https://raw.githubusercontent.com/dereknguyen269/programing-best-practices/main/scripts/setup-kb.sh | bash

Option 2: Git Submodule

# Add as a submodule in your project
cd your-project
git submodule add https://github.com/dereknguyen269/programing-best-practices.git .kb/best-practices

Install directly as a Claude Code plugin for automatic best practices guidance:

# Step 1: Add the marketplace
/plugin marketplace add dereknguyen269/programing-best-practices

# Step 2: Install the plugin
/plugin install programming-best-practices@programming-best-practices

Once installed, you get:

Feature How to Use
Auto best practices Claude automatically references style guides when you write code
Security reviews Claude applies OWASP/security checklists during code review
/programming-best-practices:best-practices [language] Look up best practices for any language
/programming-best-practices:review-code Review current code against industry standards
/programming-best-practices:setup-standards [stack] Generate linter/formatter configs for your stack

The plugin includes a skill that Claude invokes automatically:

  • best-practices — Activated when writing or reviewing code in any of 30+ languages

Install the BM25-powered best practices skill directly into any project. The installer automatically crawls content, generates searchable CSV databases, and copies the skill:

# Full install — crawl all 340+ resources + generate CSVs + install skill
python3 scripts/install-skill.py ~/Projects/my-app --mode both

# Install as Claude Code skill only
python3 scripts/install-skill.py ~/Projects/my-app --mode claude

# Install as Kiro steering only
python3 scripts/install-skill.py ~/Projects/my-app --mode kiro

# Quick test — crawl only 20 resources
python3 scripts/install-skill.py ~/Projects/my-app --mode both --crawl-limit 20

# Skip crawl — use existing content/ data
python3 scripts/install-skill.py ~/Projects/my-app --mode both --skip-crawl

# Crawl specific category only
python3 scripts/install-skill.py ~/Projects/my-app --mode both --crawl-category python

The installer runs a 4-step pipeline:

Step What It Does Time
1. Dependencies Installs crawler requirements (requests, beautifulsoup4, etc.) ~10s
2. Crawl Fetches 340+ resources from README.md links ~2-10 min
3. Generate CSVs Builds BM25-searchable databases (resources, languages, categories) ~5s
4. Install Copies skill with correct paths to target project ~1s

Once installed, your AI editor can search best practices:

# Search for recommendations (Kiro)
python3 .kiro/steering/best-practices/scripts/search.py "python style guide" --recommend

# Search by domain
python3 .kiro/steering/best-practices/scripts/search.py "react" --domain language

# Deep search in crawled content
python3 .kiro/steering/best-practices/scripts/search.py "clean code" --content --lang javascript

Here are some standout resources that every developer should know:

🏆 Must-Read Guides

🎨 Design Patterns

🔧 Language-Specific Gems


📂 Table of Contents

🔹 Backend Development

Systems Programming

Enterprise & JVM Languages

Web Backend

Modern Runtimes

Functional & Specialized

🔹 Frontend Development

Core Technologies

Frameworks & Libraries

Performance

🔹 Database & Data

NoSQL & Big Data

ORMs

🔹 Mobile Development

🔹 DevOps & Infrastructure

Cloud & Deployment

Security

🔹 AI & Data Science

🔹 Development Tools & Practices

Version Control & Collaboration

Scripting & Automation

Linting & Formatting

Monorepo

Testing

Performance & Architecture

🔹 Specialized Languages


🔹 Backend Development

Systems Programming

🖥️ C Best Practices


🖥️ C++ Best Practices


🦀 Rust Best Practices


Enterprise & JVM Languages

☕ Java Best Practices


🌀 Kotlin Best Practices


🌀 Scala Best Practices


🖥️ C# Best Practices


Web Backend

🟢 Node.js Best Practices


🐍 Python Best Practices


💎 Ruby Best Practices


🚂 Rails Best Practices


🐘 PHP Best Practices


🎯 Laravel Best Practices


🟣 NestJS Best Practices


🔷 GraphQL Best Practices

🔌 tRPC Best Practices

Modern Runtimes

🦕 Deno Best Practices

🥟 Bun Best Practices


Functional & Specialized

🧪 Elixir Best Practices


🐹 Go (Golang) Best Practices


🍎 Swift Best Practices


🍏 Objective-C Best Practices


🐪 Perl Best Practices


🪶 Lua Best Practices


🎨 Frontend Development

Core Technologies

🌐 HTML Best Practices


🎨 CSS Best Practices


🎨 SASS Best Practices


📜 JavaScript Best Practices


🟦 TypeScript Best Practices


Frameworks & Libraries

⚛️ ReactJS Best Practices


📱 React Native Best Practices


🖼️ Vue Best Practices


🅰️ Angular Best Practices


⚡ Next.js Best Practices


⚡ Nuxt Best Practices

🧩 Svelte Best Practices

🔵 Solid.js Best Practices


Performance

🚀 Frontend Performance Best Practices


🗄️ Database & Data

SQL Databases

📊 SQL Best Practices


🐘 PostgreSQL Best Practices


🐬 MySQL Best Practices


NoSQL & Big Data

📦 NoSQL Best Practices

🗄️ Prisma Best Practices

☁️ Drizzle ORM Best Practices


📱 Mobile Development

📱 Flutter Best Practices


🎯 Dart Best Practices


☁️ DevOps & Infrastructure

Cloud & Deployment

☁️ AWS Best Practices


📦 Microservices & Cloud-Native Best Practices


🐳 Docker Best Practices


☸️ Kubernetes Best Practices


Security

🔐 API Security Best Practices


🔐 DevSecOps & Security Best Practices


🤖 AI & Data Science

🤖 AI/ML Engineering Best Practices


🤖 AI Tools for Developers


🛠️ Development Tools & Practices

Version Control & Collaboration

🔎 Code Review Best Practices


🌿 Git Best Practices


🧑‍🤝‍🧑 Team & Collaboration Best Practices


Scripting & Automation

🐚 Bash Script Best Practices

🧹 Linting & Formatting

Biome Best Practices

🏗️ Monorepo Best Practices

Turborepo Best Practices

Nx Best Practices


Testing Best Practices

🧪 General Testing Best Practices


Performance & Architecture

🏗️ System Design Best Practices


⚡ Performance & Scalability Best Practices


🌍 Specialized Languages

📊 R Best Practices


🆕 What’s New

Stay updated with the latest additions to this repository:

Recent Updates

  • ✅ Svelte / Solid.js — New frontend framework sections with official best practices
  • ✅ Deno / Bun — Modern runtime best practices (permissions, std lib, testing)
  • ✅ Prisma / Drizzle ORM — ORM design, performance, and deployment guides
  • ✅ tRPC — Type-safe API layer best practices
  • ✅ Biome — Next-gen linter/formatter replacing ESLint/Prettier
  • ✅ Turborepo / Nx — Monorepo architecture and caching patterns
  • ✅ Angular — Updated to modern Angular v19 official guides (replaced AngularJS)
  • ✅ AI/ML Section — Overhauled with Anthropic/OpenAI prompt engineering, AI agents, OWASP LLM security, Copilot/Cursor/Claude Code guides
  • ✅ Quality Badges — 🏢 industry-leader badges added to official resources

Coming Soon

  • 🔜 Video Tutorials — Curated video resources for visual learners
  • 🔜 Code Examples — Practical code snippets demonstrating best practices
  • 🔜 Interactive Checklists — Ready-to-use checklists for code reviews
  • 🔜 Zig / Gleam — New languages gaining traction

🌟 Community & Support

💬 Get Involved

We believe in the power of community! Here’s how you can participate:

🤝 Ways to Contribute

  • 📝 Submit Resources — Found a great article or guide? Share it!
  • 🐛 Report Issues — Broken links or outdated content? Let us know!
  • 💡 Suggest Improvements — Ideas for better organization or new sections?
  • ⭐ Star the Repo — Show your support and help others discover this resource
  • 🔄 Share — Spread the word on social media, blogs, or with your team

📢 Questions & Ideas

  • Questions? Open a GitHub Issue
  • Ideas? Share your thoughts in a feature request
  • Showcase — Share how you’re using these best practices in your projects

🏆 Contributors

A huge thank you to all our contributors! 🙏


📈 Star History


💡 Related Resources

Looking for more? Check out these complementary resources:


🎯 Repository Stats


🚀 Quick Start Setup

Just browsing the guides? No setup needed — every link above works straight from GitHub. Follow these steps only for offline access, local search, or AI-editor integration.

✅ Prerequisites

  • Git (any recent version)
  • Python 3.8+ with pip and venv (only needed for crawling, offline search, or installing the AI skill)
  • Works on macOS, Linux, and Windows (use .venv\Scripts\activate on Windows)

The fastest way to get started is using our automated setup script:

# Clone the repository
git clone https://github.com/dereknguyen269/programing-best-practices.git
cd programing-best-practices

# Run the interactive setup script
./scripts/quick-start.sh

The script will guide you through different setup options:

Mode Time What’s Included
Minimal ~1 min Dependencies only, no crawling
Test ~2-3 min Dependencies + 20 sample resources
Full ~10-15 min Everything + all 340+ resources + AI summaries
Custom Varies Choose specific categories to crawl

Quick Options:

# Minimal setup (just dependencies)
./scripts/quick-start.sh --minimal

# Full setup (everything)
./scripts/quick-start.sh --full

# Test with 20 resources
./scripts/quick-start.sh --limit 20

# Crawl only Python resources
./scripts/quick-start.sh --category python

📋 Manual Setup (Alternative)

Prefer to set up manually? Follow these steps:

Step 1: Clone the Repository

git clone https://github.com/dereknguyen269/programing-best-practices.git
cd programing-best-practices

The crawler downloads all external resources locally for offline access:

# Create virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install dependencies
pip install -r scripts/crawler/requirements.txt

Step 3: Crawl Resources (Optional)

Download all best practices content locally:

Note: Make sure your virtual environment is activated before running these commands:

source .venv/bin/activate  # On Windows: .venv\Scripts\activate

Or use the venv Python directly: .venv/bin/python3 instead of python3

# Crawl all resources (~340+ links, takes 10-15 minutes)
python3 scripts/crawler/crawl.py

# Or crawl specific categories
python3 scripts/crawler/crawl.py --category python
python3 scripts/crawler/crawl.py --category javascript

# Or crawl a limited number for testing
python3 scripts/crawler/crawl.py --limit 20

# Update existing content
python3 scripts/crawler/crawl.py --update

Step 4: Generate AI Summaries (Optional)

Create condensed summaries optimized for AI assistants:

python3 scripts/crawler/generate_summaries.py

Step 5: Use with Your AI Coding Editor

The repository is now ready! Your AI coding editor will automatically detect:

AI Editor Config File Auto-Detected
Claude Code skills/best-practices/ ✅
Kiro .kiro/steering/best-practices/ ✅

See Searching the Knowledge Base and Troubleshooting if you get stuck.


🤝 Contributing

Contributions are always welcome! 🎉 Before contributing, please read the Contribution Guidelines.


💖 Support This Project

If you find this repository helpful, here are some ways you can show your support:

⭐ Star This Repository

Click the ⭐ button at the top of this page — it helps others discover this resource!

🔄 Share With Others

🤝 Contribute

See our Contributing Guidelines to add your favorite resources!

☕ Sponsor

If this project has saved you time or helped your career, consider sponsoring to support continued maintenance and updates.


❓ Frequently Asked Questions

How often is this repository updated?

This repository is actively maintained and updated regularly. We add new resources as they emerge and remove outdated ones. Check the What’s New section for recent updates.

Can I suggest a resource?

Absolutely! We welcome contributions. Please read our Contributing Guidelines and submit a pull request with your suggestions.

Are these practices suitable for beginners?

Yes! We’ve organized resources for all skill levels. Beginners should start with the How to Use section and focus on style guides first.

How do I know which resources to prioritize?

Check out our Featured Resources section for must-read guides. Also, resources from well-known organizations (Google, Airbnb, etc.) are generally excellent starting points.

Can I use this for my team?

Definitely! Many teams use this repository as a reference for establishing coding standards. Feel free to share relevant sections with your team or use them in onboarding materials.

Is this repository language-specific?

No, we cover 30+ programming languages and frameworks. Use the Table of Contents or Quick Links to navigate to your preferred technology.

How can I stay updated with new additions?

  • ⭐ Star and Watch this repository on GitHub
  • Check the What’s New section periodically
  • Follow the repository for notifications

Please open an issue with the broken URL. Links are also validated automatically every week (see Maintenance & Link Health), so it may already be queued for a fix.


📜 License

This project is released into the public domain under The Unlicense — see the LICENSE file for details.


View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add dereknguyen269/programing-best-practices
New to MCP? Start with the mcpskill.org guide →