---
title: "10 Clean Coding Practices"
url: https://daily.dev/posts/10-clean-coding-practices-bkdmsxynn
source_url: https://sanurahettiarachchi.medium.com/10-clean-coding-practices-e37ac283184d
type: article
source: "The Startup"
published: 2020-12-12T13:42:53.834Z
updated: 2026-03-15T06:34:21.628Z
tags: ["c", "general-programming"]
reading_time: 6
upvotes: 37
comments: 4
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 10 Clean Coding Practices

**[The Startup](https://daily.dev/sources/swlh)** · 6 min read · 37 upvotes · 4 comments

## Summary

Sanura Hettiarachchi outlines 10 clean coding practices. Follow correct naming conventions to avoid poor naming. Declare variables at the place of use. Minimise extensive nested conditions. Don’t implement super long functions. Avoid code duplication. Make necessary comments.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://sanurahettiarachchi.medium.com/10-clean-coding-practices-e37ac283184d>

## Community discussion

Top comments from developers on daily.dev.

**@arklev** · 2 upvotes

> Very nice guide lines.

**@leandrodavimg** · 1 upvotes

> I agree with each point addressed.

**@mathad** · 1 upvotes

> Nice post

**@sanuful** · 0 upvotes

> Thank you

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#c](https://daily.dev/tags/c), [#general-programming](https://daily.dev/tags/general-programming)

[View this post on daily.dev](https://daily.dev/posts/10-clean-coding-practices-bkdmsxynn)
