---
title: "EP 66 : Clean Code Tips for .NET Developers - Part I"
url: https://daily.dev/posts/ep-66-clean-code-tips-for-net-developers---part-i-vxkza6o3t
source_url: https://mwaseemzakir.substack.com/p/ep-66-clean-code-tips-for-net-developers
type: article
source: "Waseem .NET Newsletter"
published: 2024-09-28T06:07:21.685Z
updated: 2024-12-11T13:27:45.603Z
tags: [".net", "c#"]
reading_time: 5
upvotes: 102
comments: 10
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.

# EP 66 : Clean Code Tips for .NET Developers - Part I

**[Waseem .NET Newsletter](https://daily.dev/sources/mwaseemzakir)** · 5 min read · 102 upvotes · 10 comments

## Summary

This post provides clean code tips for .NET developers, focusing on giving meaningful names, avoiding null returns, keeping class and method sizes small, not reinventing the wheel, and using appropriate tools or IDEs. It also offers practical examples and suggestions for better coding practices in .NET projects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://mwaseemzakir.substack.com/p/ep-66-clean-code-tips-for-net-developers>

## Community discussion

Top comments from developers on daily.dev.

**@leothlon** · 9 upvotes

> I'm sorry, but advising to throw exception over returning null when a user is not found?
>
> With the reasoning that returning null can lead to exception if someone try to access a property? Well yes, and throwing exception WILL lead to exception, for something that is an expected outcome?
>
> That's all I needed to read to know to stay away from this article

**@hoksolinvanchhun** · 1 upvotes

> Nice

**@asimrahim** · 0 upvotes

> m following you on linkedIn. Your contents are very helpful. Keep it up.

**@migueldeltorodev** · 0 upvotes

> Very usefull, thanks!

## 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

---

Tags: [#.net](https://daily.dev/tags/.net), [#c#](https://daily.dev/tags/c#)

[View this post on daily.dev](https://daily.dev/posts/ep-66-clean-code-tips-for-net-developers---part-i-vxkza6o3t)
