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.
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
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
The Only API Documentation Template Your Team Actually Needs

The Only API Documentation Template Your Team Actually Needs

Comments
4 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
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
I Stopped Putting Everything in Service Classes. Here's the Decision Tree I Use Now

I Stopped Putting Everything in Service Classes. Here's the Decision Tree I Use Now

Comments
6 min read
Guard Clauses: The Tiny Habit That Saved My Sanity

Guard Clauses: The Tiny Habit That Saved My Sanity

Comments
4 min read
React + TypeScript Best Practices in 2025: What Actually Matters

React + TypeScript Best Practices in 2025: What Actually Matters

Comments
10 min read
The One Habit That Made My Code Actually Readable

The One Habit That Made My Code Actually Readable

Comments
4 min read
Commit First, Code Later: How Writing the Commit Message Upfront Changes Everything

Commit First, Code Later: How Writing the Commit Message Upfront Changes Everything

Comments
4 min read
The Art of Package Publishing: Best Practices for Creating and Maintaining Popular Open-Source Libraries

The Art of Package Publishing: Best Practices for Creating and Maintaining Popular Open-Source Libraries

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