Open in app

Sign In

Write

Sign In

Sam Walpole
Sam Walpole

63 Followers

Home

About

Published in Level Up Coding

·Aug 8, 2021

My Top 5 JavaScript Tips and Tricks for Writing Cleaner Code

1. Destructuring Assignment Destructuring assignment allows one or more object properties to be assigned to variables in a single expression. The created variable will have the same name as the property. let myObj = { id: 1, name: 'My Object' }; // without destructuring assignment let id = myObj.id; let name = myObj.name; // id…

JavaScript

7 min read

My Top 5 JavaScript Tips and Tricks for Writing Cleaner Code
My Top 5 JavaScript Tips and Tricks for Writing Cleaner Code
JavaScript

7 min read


Published in Level Up Coding

·Jul 3, 2021

A Practical Guide to Higher Order Functions in C#

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 explanation below. What are higher order functions? Simply put, a…

Csharp

3 min read

A Practical Guide to Higher Order Functions in C#
A Practical Guide to Higher Order Functions in C#
Csharp

3 min read


Published in Geek Culture

·Jun 12, 2021

Looking after your mental health as a developer

It’s been over a month now since I last wrote an article here for my blog. I’ve been struggling a lot with low mood, which has meant that I haven’t had the motivation or the energy to produce new content. …

Web Development

4 min read

Looking after your mental health as a developer
Looking after your mental health as a developer
Web Development

4 min read


Published in Level Up Coding

·Apr 25, 2021

LINQ: Beware of deferred execution

If you’ve spent 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 demonstrates a couple of common features of LINQ (note that I am…

Dotnet

5 min read

LINQ: Beware of deferred execution
LINQ: Beware of deferred execution
Dotnet

5 min read


Published in Level Up Coding

·Apr 11, 2021

Handling Dependency Injection in Inherited Classes

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 your DI container, and away you go — the DI container will manage the rest. …

Csharp

4 min read

Handling Dependency Injection in Inherited Classes
Handling Dependency Injection in Inherited Classes
Csharp

4 min read


Published in Level Up Coding

·Mar 13, 2021

A Cure for Primitive Obsession

What is Primitive Obsession? To start with, primitives are the basic data types available in most languages. These include data types such as strings, numbers (int, floats), and booleans. Primitive obsession is a code smell in which primitive data types are used excessively to represent your data models. The problem with primitives is that…

Csharp

6 min read

A Cure for Primitive Obsession
A Cure for Primitive Obsession
Csharp

6 min read


Published in Level Up Coding

·Mar 6, 2021

A Brief Introduction to F# for Object Oriented Developers

Recently I’ve been learning how to write code in F#. For those who haven’t heard of it, F# is Microsoft’s/.NET’s answer to a functional-first programming language. My motivation was to learn a functional programming language that would make coding for scientific computing and data analysis more expressive, concise, and maintainable…

Fsharp

9 min read

A Brief Introduction to F# for Object Oriented Developers
A Brief Introduction to F# for Object Oriented Developers
Fsharp

9 min read


Feb 7, 2021

Build an interactive kanban board with Vue Draggable

Vue Draggable is a great library for Vue.js that makes it super simple to create interactive draggable components with virtually no effort. I have recently used it to create an interactive kanban board, in which tasks can be rearranged and moved between cards just by dragging. So let’s start by…

JavaScript

3 min read

Build an interactive kanban board with Vue Draggable
Build an interactive kanban board with Vue Draggable
JavaScript

3 min read


Jan 16, 2021

Introduction to Test-Driven Development (TDD) and AAA Testing Using xUnit

I’m not ashamed to admit that for a long time I avoided writing tests for my code. I saw it as something that took up precious time that I could have spent on “real” coding. However, after experiencing first-hand the headache caused from having to maintain production code with little-to-no…

Testing

7 min read

Introduction to Test-Driven Development (TDD) and AAA Testing Using xUnit
Introduction to Test-Driven Development (TDD) and AAA Testing Using xUnit
Testing

7 min read


Jan 9, 2021

Writing decoupled code with MediatR: The Mediator Pattern

I recently wrote a blog post introducing some of my favourite NuGet packages: My Top 4 NuGet Packages for ASP.NET Core. In that post, I briefly introduced a package called MediatR. Today, I will dedicate this post to revisiting MediatR in further detail. What is MediatR? MediatR is an implementation of the mediator…

Csharp

5 min read

Writing decoupled code with MediatR: The Mediator Pattern
Writing decoupled code with MediatR: The Mediator Pattern
Csharp

5 min read

Sam Walpole

Sam Walpole

63 Followers
Following
  • Benjamin Hardy, PhD

    Benjamin Hardy, PhD

  • Richie Norton

    Richie Norton

  • freeCodeCamp

    freeCodeCamp

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech