Tag: General
All the articles with the tag "General".
-
Registering a type as an interface and as self with ASP.NET Core dependency injection
-
How to become a remote worker
-
How HTTP Chunked Encoding was killing a request
-
Remote debugging of Node.js apps on Azure App Service from WebStorm
-
Retiring as a Microsoft MVP
-
Running Kotlin in Azure Functions
-
Using operator overloads for concatenating file system paths in CSharp
The past few days, I’ve been working on some cross-platform C# code. In this code, I needed to build a path to a file, by concatenating folder names. As you may know the path separator on Windows and Linux operating systems are different: one has a backward slash (\), the other has a forward slash (/). Luckily for me, the .NET framework(s) contain a utility function for this: Path.Combine handles this for me! Here’s an example: This will generate a platform-specific path: Great! However, I found something else in the codebase I was working on (ReSharper): Whoa! This almost looks like path separators! And the great thing is that this also returns a platform-specific path.
-
On speaker life...
Last week, I did a tweet while at the Paris Charles de Gaulle airport, working on blog posts (part of my job) and drinking bad coffee. The backstory is I just finished a week of conference and speaking (Microsoft Experiences Paris, JetBrains Night Paris) and there is of course some real work to be done in between all the “glamour” of public speaking. Many people I talk with at user groups or conferences sometimes feel speakers at conferences are special and rockstars and have glamourous lifes. In this post I want to touch on that, and also on a reply I got to my tweet: Before going into those, let’s first look at how I started speaking at user groups and conferences, and go from there.
-
Building a scheduled task in ASP.NET Core/Standard 2.0
In this post, we’ll look at writing a simple system for scheduling tasks in ASP.NET Core 2.0. That’s quite a big claim, so I want to add a disclaimer: this system is mainly meant to populate data in our application’s cache in the background, although it can probably be used for other things as well. It builds on the ASP.NET Core 2.0 IHostedService interface. Before we dive in, I want to give some of the background about why I thought of writing this. At JetBrains, various teams make use of a Slack bot, which we write in Kotlin. This bot performs various tasks, ranging from saying “Hi!” to managing our stand-ups to keeping track of which developer manages which part of our IDE’s. While working on the bot code, I found this little piece of code:
-
Making string validation faster by not using a regular expression. A story.