---
title: "Discussion on \"Defensive Programming 101: Guard Clauses\" | Hashnode"
description: "Discussion on \"Defensive Programming 101: Guard Clauses\". This post will explain how we can use guard clauses to program defensively.  We will look at some different ways to implement them, with examples in .NET."
url: "https://hashnode.com/posts/defensive-programming-101-guard-clauses/60f2c72966fcdb0a02741a86"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Defensive Programming 101: Guard Clauses](https://tidydesk.hashnode.dev/defensive-programming-101-guard-clauses?utm_source=hashnode&utm_medium=feed)

This post will explain how we can use guard clauses to program defensively. We will look at some different ways to implement them, with examples in .NET.

Jul 17, 2021 · 4 min read · tidydesk.hashnode.dev  
Read the article

-   [#net](https://hashnode.com/tag/net)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[tidydesk](https://hashnode.com/@tidydesk)

@tidydesk

  
[View profile](https://hashnode.com/@tidydesk)

.NET Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
