---
title: "#clean-code articles | Hashnode"
description: "Explore 1,860 articles tagged #clean-code on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/clean-code"
---

Tag

# #clean-code

1,860 posts · 282 followers

[Min SiThu](https://hashnode.com/@itsmeminsithu) · [20h ago](https://hashnode.com/posts/5-books-about-writing-better-code-and-what-each-one-actually-teaches-you/6afbb79cab9320ec907f6aa0)

### [5 Books About Writing Better Code (And What Each One Actually Teaches You)](https://itsmeminsithu.hashnode.dev/5-books-about-writing-better-code-and-what-each-one-actually-teaches-you?utm_source=hashnode&utm_medium=feed)

To put it simply, most of your working life as a developer is not spent writing new code. It is spent reading it — yours from six months ago, a teammate's pull request, a library you did not write. An

7 min read · [itsmeminsithu.hashnode.dev](https://itsmeminsithu.hashnode.dev/5-books-about-writing-better-code-and-what-each-one-actually-teaches-you?utm_source=hashnode&utm_medium=feed)

[Joanna Wilbourn](https://hashnode.com/@joannawilbourn) · [Nov 3](https://hashnode.com/posts/core-books-every-developer-should-own/6aea4b5f0028ccd801e1a2ca)

### [The Core Books Every Developer Should Own](https://bitsbetween.com/core-books-every-developer-should-own?utm_source=hashnode&utm_medium=feed)

Clean Code, Refactoring, Head First Design Patterns, Pragmatic Programmer and Code Complete: why I recommend them and how to get the most from them.

5 min read · [bitsbetween.com](https://bitsbetween.com/core-books-every-developer-should-own?utm_source=hashnode&utm_medium=feed)

[Android Expert](https://hashnode.com/@android-expert) · [Nov 2](https://hashnode.com/posts/the-seed-decides-everything-fold-vs-reduce-in-production-kotlin-on-android/6ae8a479025f60d25fd3f809)

### [The Seed Decides Everything: fold() vs reduce() in Production Kotlin on Android](https://android-expert.hashnode.dev/the-seed-decides-everything-fold-vs-reduce-in-production-kotlin-on-android?utm_source=hashnode&utm_medium=feed)

Learn when to use Kotlin fold() vs reduce() on Android. Avoid empty-list crashes, mutation bugs, and overflow with examples and a decision guide.

11 min read · [android-expert.hashnode.dev](https://android-expert.hashnode.dev/the-seed-decides-everything-fold-vs-reduce-in-production-kotlin-on-android?utm_source=hashnode&utm_medium=feed)

[Andrey Pankov](https://hashnode.com/@andrey-pankov) · [Oct 26](https://hashnode.com/posts/the-road-to-architecture/6adf39aaf218f0c2c96fe5da)

### [The Road to Architecture](https://enterprise-frontend-workshop.hashnode.dev/the-road-to-architecture?utm_source=hashnode&utm_medium=feed)

Enterprise Frontend Workshop — From Software Development Experience to Architectural Thinking: Lessons from Decades of Building and Evolving Software Systems.

13 min read · [enterprise-frontend-workshop.hashnode.dev](https://enterprise-frontend-workshop.hashnode.dev/the-road-to-architecture?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/the-road-to-architecture/6adf39aaf218f0c2c96fe5da)

[Nathalie Giancaspro](https://hashnode.com/@natgian) · [Oct 19](https://hashnode.com/posts/how-i-keep-my-django-api-tests-clean-using-subtest/6ad644557aacaa7223103eed)

### [How I Keep My Django API Tests Clean Using \`subTest()\`](https://natgian.hashnode.dev/how-i-keep-my-django-api-tests-clean-using-subtest?utm_source=hashnode&utm_medium=feed)

How to use self.subTest() in Python to keep your Django REST Framework API tests DRY, maintainable, and easy to extend without breaking.

2 min read · [natgian.hashnode.dev](https://natgian.hashnode.dev/how-i-keep-my-django-api-tests-clean-using-subtest?utm_source=hashnode&utm_medium=feed)

[Kant Claude](https://hashnode.com/@kantclaude) · [Oct 15](https://hashnode.com/posts/prefer-deleting-code-over-commenting-it-out/6ad0967d14354fbe931cf8e3)

### [Prefer Deleting Code Over Commenting It Out](https://kantclaude.hashnode.dev/prefer-deleting-code-over-commenting-it-out?utm_source=hashnode&utm_medium=feed)

Commented-out code is a museum exhibit nobody asked for. It sits in the file looking important, rotting quietly, and teaching the next reader the wrong lesson: that this dead path might still matter.

2 min read · [kantclaude.hashnode.dev](https://kantclaude.hashnode.dev/prefer-deleting-code-over-commenting-it-out?utm_source=hashnode&utm_medium=feed)

[Kant Claude](https://hashnode.com/@kantclaude) · [Oct 14](https://hashnode.com/posts/return-early-guard-clauses-flatten-your-code/6acf8d919af1616e66adf5f8)

### [Return Early: Guard Clauses Flatten Your Code](https://kantclaude.hashnode.dev/return-early-guard-clauses-flatten-your-code?utm_source=hashnode&utm_medium=feed)

Ever opened a function and found the actual logic buried five levels deep, under a staircase of if statements? That shape has a name, the "arrow anti-pattern", and the fix is usually simple: return ea

2 min read · [kantclaude.hashnode.dev](https://kantclaude.hashnode.dev/return-early-guard-clauses-flatten-your-code?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/return-early-guard-clauses-flatten-your-code/6acf8d919af1616e66adf5f8)

[Adam Lewis](https://hashnode.com/@nark3d) · [Oct 13](https://hashnode.com/posts/simplicity-the-cap-only-enforces-the-part-you-can-count/6acde6bbac9aae0433fb676f)

### [Simplicity: the cap only enforces the part you can count](https://prickles.hashnode.dev/simplicity-the-cap-only-enforces-the-part-you-can-count?utm_source=hashnode&utm_medium=feed)

I've watched F4 get agreed in the retro and violated by lunchtime. The deadline closes, a parameter gets added for the next time it is needed, a helper grows a flag so one caller can opt out of half o

2 min read · [prickles.hashnode.dev](https://prickles.hashnode.dev/simplicity-the-cap-only-enforces-the-part-you-can-count?utm_source=hashnode&utm_medium=feed)

[sunny g](https://hashnode.com/@sunnyvale) · [Oct 8](https://hashnode.com/posts/how-can-coding-agents-be-used-productively-in-software-development/6ac7a1fb9d885198d4552739)

### [How Can Coding Agents Be Used Productively in Software Development?](https://neweraofcoding.hashnode.dev/how-can-coding-agents-be-used-productively-in-software-development?utm_source=hashnode&utm_medium=feed)

A pragmatic developer guide to high-impact use cases, task bounding, and verification loops. Unlocking real productivity with autonomous coding agents requires more than firing off generic prompts. In

1 min read · [neweraofcoding.hashnode.dev](https://neweraofcoding.hashnode.dev/how-can-coding-agents-be-used-productively-in-software-development?utm_source=hashnode&utm_medium=feed)

[Azat Asylkhan](https://hashnode.com/@asylkhan-azat) · [Oct 6](https://hashnode.com/posts/let-the-csharp-compiler-remember-it-for-you/6ac5599265f0cea9c5cc447c)

### [Let the C# compiler remember it for you](https://asylkhan-azat.hashnode.dev/let-the-csharp-compiler-remember-it-for-you?utm_source=hashnode&utm_medium=feed)

Moving what's in your head into types and signatures

25 min read · [asylkhan-azat.hashnode.dev](https://asylkhan-azat.hashnode.dev/let-the-csharp-compiler-remember-it-for-you?utm_source=hashnode&utm_medium=feed)
