DEV Community

# bestpractices

Sharing tips and established patterns for writing clean HMPLjs code.

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Refactoring Legacy Code: The Jedi Move of Extracting Pure Functions

Refactoring Legacy Code: The Jedi Move of Extracting Pure Functions

1
Comments
5 min read
Review the code that does not exist yet

Review the code that does not exist yet

Comments
7 min read
The Dependency Injection Quest: How I Turned Spaghetti Code Into a Lightsaber 🚀

The Dependency Injection Quest: How I Turned Spaghetti Code Into a Lightsaber 🚀

Comments
4 min read
Python Data Validation Patterns for Production Systems

Python Data Validation Patterns for Production Systems

5
Comments
4 min read
🐍 Python Power Moves: 5 Tricks to Level Up Your Code Today

🐍 Python Power Moves: 5 Tricks to Level Up Your Code Today

Comments
3 min read
Struct Embedding in Go: Composition That Bites When You Reach for Inheritance

Struct Embedding in Go: Composition That Bites When You Reach for Inheritance

Comments
6 min read
defer in Loops: The Resource Leak Go Still Lets You Write

defer in Loops: The Resource Leak Go Still Lets You Write

Comments
6 min read
How We Turned Incident Response into 5-Min Postmortems (And Actually Fixed Things)

How We Turned Incident Response into 5-Min Postmortems (And Actually Fixed Things)

1
Comments
5 min read
The Only API Documentation Template Your Team Actually Needs

The Only API Documentation Template Your Team Actually Needs

Comments
4 min read
Common Pitfalls Building Email Agents (and Fixes)

Common Pitfalls Building Email Agents (and Fixes)

1
Comments
5 min read
How to Format SQL Queries in Python: Best Practices, Gotchas, and Real-World Examples

How to Format SQL Queries in Python: Best Practices, Gotchas, and Real-World Examples

Comments
6 min read
I'm rotating three of my own secrets this week. Three keys ended up where they didn't belong, I caught it fast, and I have a ...

I'm rotating three of my own secrets this week. Three keys ended up where they didn't belong, I caught it fast, and I have a ...

Comments
5 min read
The One TDD Habit That Saved My Sanity (and My Codebase)

The One TDD Habit That Saved My Sanity (and My Codebase)

Comments
4 min read
The One Commit Message Trick That Saved My Sanity

The One Commit Message Trick That Saved My Sanity

Comments
4 min read
Why I finally stopped writing God classes in Python (and what I learned)

Why I finally stopped writing God classes in Python (and what I learned)

Comments
4 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.