---
title: "Sam Walpole (@dr_sam_walpole) | Hashnode"
description: "👨‍💻 Fullstack .NET and JavaScript teacher and advocate 👨‍💻. Read the latest articles by Sam Walpole on Hashnode."
url: "https://hashnode.com/@dr_sam_walpole"
---

@dr\_sam\_walpole

# Sam Walpole

@dr\_sam\_walpole · United Kingdom · Joined September 2020

👨‍💻 Fullstack .NET and JavaScript teacher and advocate 👨‍💻

[Website](https://samwalpole.com/)

### [I wrote this article using the Hashnode API! Here's how...](https://samwalpole.com/i-wrote-this-article-using-the-hashnode-api-heres-how?utm_source=hashnode&utm_medium=feed)

In case you didn't know, Hashnode has it's own GraphQL API! Catalin Pit wrote a great article about how you can use the API to display your published articles on your own website. However, the API can do so much more than this, such as following a u...

10 min read · [samwalpole.com](https://samwalpole.com/i-wrote-this-article-using-the-hashnode-api-heres-how?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/i-wrote-this-article-using-the-hashnode-api-heres-how/6190f5b2c5a37f2de1be9cf6) [Nov 14, 2021](https://hashnode.com/posts/i-wrote-this-article-using-the-hashnode-api-heres-how/6190f5b2c5a37f2de1be9cf6)

### [My Top 5 JavaScript Tips & Tricks for Writing Cleaner Code](https://samwalpole.com/my-top-5-javascript-tips-and-tricks-for-writing-cleaner-code?utm_source=hashnode&utm_medium=feed)

Everyday techniques you can use to tidy up your code & make it easier to read

7 min read · [samwalpole.com](https://samwalpole.com/my-top-5-javascript-tips-and-tricks-for-writing-cleaner-code?utm_source=hashnode&utm_medium=feed)

[Aug 8, 2021](https://hashnode.com/posts/my-top-5-javascript-tips-and-tricks-for-writing-cleaner-code/610f9815528eff11aea8ad1c)

### [A Practical Guide to Higher Order Functions in C#](https://samwalpole.com/a-practical-guide-to-higher-order-functions-in-c?utm_source=hashnode&utm_medium=feed)

If you have been programming for any length of time, you may well have come across higher order functions, but (like me) may not have fully appreciated just how powerful they can be. If you've not heard of them before, never fear, I have an explanati...

3 min read · [samwalpole.com](https://samwalpole.com/a-practical-guide-to-higher-order-functions-in-c?utm_source=hashnode&utm_medium=feed)

[3](https://hashnode.com/posts/a-practical-guide-to-higher-order-functions-in-c/60e03e704f8e376422a7725e) [Jul 3, 2021](https://hashnode.com/posts/a-practical-guide-to-higher-order-functions-in-c/60e03e704f8e376422a7725e)

### [LINQ: Beware of deferred execution](https://samwalpole.com/linq-beware-of-deferred-execution?utm_source=hashnode&utm_medium=feed)

If you've spent much time around C# and .NET, it's likely that you will have come across LINQ (Language-Integrated Query), which allows you to use a range of powerful querying capabilities directly in the C# language. The example below demonstrate a ...

6 min read · [samwalpole.com](https://samwalpole.com/linq-beware-of-deferred-execution?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/linq-beware-of-deferred-execution/60853ce5e1555b2a98aaaf6d) [Apr 25, 2021](https://hashnode.com/posts/linq-beware-of-deferred-execution/60853ce5e1555b2a98aaaf6d)

### [Handling Dependency Injection in Inherited Classes](https://samwalpole.com/handling-dependency-injection-in-inherited-classes?utm_source=hashnode&utm_medium=feed)

Dependency injection (DI) is a wonderful thing. Simply add your dependency as a parameter to the constructor (most commonly) of your class, register it with you DI container, and away you go - the DI container will manage the rest. Some of the key be...

4 min read · [samwalpole.com](https://samwalpole.com/handling-dependency-injection-in-inherited-classes?utm_source=hashnode&utm_medium=feed)

[Apr 11, 2021](https://hashnode.com/posts/handling-dependency-injection-in-inherited-classes/6072a6838b2b857c0bdb69ab)
