Whether calling the external API costs money or mocking desired behavior to code specific business rules. Sometimes external APIs could be mocked during the development of services or APIs. I believe this is an important strategy in every developer’s toolbox.
.NET Global Exception Handler to Return Problem Details For Your APIs
This article will focus on handling custom exceptions for flow control on .NET with a global exception handler and return a problem details object. Having said that. There are, for the most part, two schools of thought. One where it is OK to throw a (custom) exception to control flow. i.e. Throw a UserNotFoundException when […]
.NET Core Options Pattern For Live Reload Settings
There are many great posts about implementing the Options Pattern .NET Core with IOptionsMonitor on the interwebs, but many fail to point out one “gotcha” when working with IOtionsMonitor to live reload settings.
Solved: GraphQL and Hot Chocolate Workshop issues with the latest versions of Hot Chocolate and .NET Top-Level Statements
I started working on the official “Getting started with GraphQL on ASP.NET Core and Hot Chocolate – Workshop” tutorial, but since the workshop is a bit outdated, it targets .NET 5 and an older version of Hot Chocolate. I am using the latest .NET 7 (at the time of this writing) and top-level statements. In […]
Fix Synology Photos Not Playing HVEC Videos And Not Reading Taken Timestamp
If you are still running Synology DSM 6 and are looking into migrating to Synology DSM 7, and one of the main Synology apps you use is Photo Station, there are some major changes in how Synology handles photo uploading in the new Synology Photos app.
Calling Instructure Canvas LMS API in C# ASP.NET MVC Using RestSharp
In this example I am calling the Canvas LMS API to get a list of enrolled students, including their grades, for a specific course.
Online Markdown Editor – GitHub Flavored
So I spent this past weekend creating an Online Markdown Editor. I used React.js…
Five Code Challenges in ReactJS
I have been learning React.js for some time now and just a few days back I came across this blog post with 5 code challenges, from the dead simple Hello World to reading users from an API using Axios. Below are the challenges and my solutions.
HackerRank Solution in ES6 Javascript to Challenge: Arrays – Left Rotation
My solution to HackerRank challenge Left Rotation found under Data Structures > Arrays > Left Rotation.
HackerRank Solution in ES6 Javascript to Challenge: 2D Array – DS
My solution to HackerRank challenge 2D Array – DS found under Data Structures > Arrays > 2D Array – DS.