Blog Posts
-
Recursive Fibonacci and Memoization in C#
11/18/2020 8:32:07 PMThe computer science students I tutor are learning memoization using the classic example of recursive Fibonacci. I remember learning these same topics during my data structures and algorithms courses. I also remember being very surprised at the performance before and after memoization. Recursive Fibonacci in C# Generating the Fibonacci sequence in a C# Console Application can look like...
-
Publish ASP.NET Core Web API to Azure API Management Services
11/14/2020 10:17:00 PMIn a previous ASP.NET Core Web API Tutorial, I mentioned how the new ASP.NET Core Web API Project Template for .NET 5 Framework includes the addition of Swashbuckle.AspNetCore to generate an OpenAPI Specification Document as well as a Swagger UI to explore and test the web API. This works in tandem with a new feature introduced in Visual Studio 2019 that allows you to publish the web API to Azure...
-
New full_text Liquid Filter, Media Field improvements - This week in Orchard (14/11/2020)
11/14/2020 3:13:02 PMSee the improvements of the Media Field, the new full_text Liquid Filter, the enhancements of the admin UI, and many more in our upcoming post!
-
EF Core 5 Many-to-Many Relationships
11/12/2020 7:59:12 PMIf you're a Microsoft developer using EF Core, you are probably really excited about the new feature in EF Core 5 that makes creating many-to-many relationships super simple! Many-to-many relationships in EF Core 5 work intuitively now, so if you have installed the .NET 5 SDK or Visual Studio 2019 16.9 preview 1 you can test the new feature pretty quickly from a .NET Core Console Application...
-
ASP.NET Core 5 Model Binding to C# 9 Record Types
11/11/2020 6:48:03 PMASP.NET Core 5 was just released and it includes a number of new features. Earlier I mentioned the built-in support for OpenAPI and Swagger UI via Swashbuckle in the new ASP.NET Core 5 Web API Project Template. Another new feature is improved model binding to support C# 9 record types. The C# 9 record type is perfect for use as data transfer objects where immutability is valuable. Using them for...
-
Top-Level Programs in C# 9
11/10/2020 3:23:01 AMEarlier I blogged about two new features in C# 9: C# 9 Init-Only Properties and C# 9 Record Type. Another feature in C# 9 that I didn't originally plan on writing about is top-level programs. However, top-level programs do simplify sharing sample code on a blog by removing boilerplate code and nesting. Therefore, I'll probably be using it quite a bit on my blog. What are Top-Level Programs in C#...
-
Distributed cache, Media crop picker - This week in Orchard (08/11/2020)
11/8/2020 6:28:00 PMThis week we will see the new IDocumentStore, which is a cacheable, committable, and cancellable document store allowing to get documents from a shared cache. And don't forget to watch a demo about how you can add an alt text and crop the images of your Media Field!
-
Blazing Orchard, Replace and Delete Content Definition Deployment Steps - This week in Orchard (30/10/2020)
10/30/2020 5:44:47 PMBlazing Orchard is a modular application framework that turns your Blazor project into a CMS-powered Blazor application by leveraging Orchard Core as a decoupled backend/CMS server using its REST & GraphQL APIs. Check out our current post to read more about Blazing Orchard and many more!
-
Guard Clauses in Computer Science
10/30/2020 2:37:38 PMWhile assisting my computer science students on ways to help debug and improve the clarity and runtime of their code, I explained the concept of guard clauses. Guard clauses are true/false expressions (predicates) found at the top of a method or function that determine whether the function should continue to run. Guard clauses test for preconditions and either immediately return from the method...
-
C# 9 Record Type
10/22/2020 6:24:00 PMIn the previous C# tutorial I mentioned the new Init-Only Properties in C# 9. I'll be using the new init accessor in this tutorial as well with the new record type in C# 9. Record Types are Not Immutable by Default Before we dive into the cool new record type features, however, I want to mention that most of the C# tutorials are focusing on the record type in terms of immutability. Although it's...
Scraped Orchard blogs
Send us new blog feeds
Noticed that a blog's feed is missing from the list?
We would love to add that to the feed list, so please don't hesitate to inform us on the following e-mail adress:
See our privacy policy.