Building a replaceAllAsync in TypeScript
Build a TypeScript helper that replaces regex matches using asynchronous callbacks, with sequential and concurrent execution options.
Read the article Building a replaceAllAsync in TypeScriptBuild a TypeScript helper that replaces regex matches using asynchronous callbacks, with sequential and concurrent execution options.
Read the article Building a replaceAllAsync in TypeScriptConsole applications are alive and kicking. Setting them up might be a bit hard. In this article I’ll explore how to create a .NET console application that provides commands using the new System.CommandLine package. This will provide arguments to command mapping out of the box. I’ll be showing how to combine it with dependency injection for even more power ⚡.
Read the article .NET Console Application with injectable commandsAt Wehkamp we’ve been using ASP.NET for a long time. Containers brought .NET with us to our microservices architecture. We used a shell script in a special build container to build our service. Today we’ll discuss how we turned that shell script into a multi stage build Dockerfile.
Read the article Rethinking our ASP.NET Docker CIAt Wehkamp, we use the Hubot Grafana project to make our Grafana dashboard available in Slack. It mainly helps our standby team to make quick assessments on what’s going on with our website. Last year, we saw we could not upgrade the package from 2.5.2 to 3.0.1, because slugs could not be used anymore. But we use slugs and… quite heavily! So we did not upgrade our Grafana v7… until we got hit by the input field bug. We decided to see what we could do to bring our slug feature back to our ChatOps bot!
Read the article Grafana, I want slugs back for my Hubot! 😭I use Prettier to reduce visual noise and make the CSS, HTML, JavaScript, and TypeScript examples on this blog easier to read. Here is my configuration and the reasoning behind each setting.
Read the article My Prettier SettingsWhen working on a project, the need arose for better handling of enums decorated with a [Flags] attribute. In a previous article we explored how to use Handlebars.NET to generate JSON strings. In this article we’ll build further on that generator to add support for enums. We will also move away from the static JsonHandlebarsDotNet to an injectable version.
Read the article Handlebars.Net: Fun with [Flags]I ❤️ Handlebars! So I was very very very happy to see that Handlebars was ported to .NET! It is a mega flexible templating engine as it can easily be extended. I’m currently working on a project where a I need to parse objects via JSON templates to JSON strings. This blog will show how to instruct Handlebars to parse into JSON and add some nice error messages if your template fails.
Read the article Handlebars.Net & JSON templatesLet’s use a small snippet to convert any article to Markdown. This might come in handy if you want to repost your articles to blogs that support Markdown like DEV.
Read the article Task: Save Article to MarkdownLet’s run Jupyter notebooks in a Visual Studio Code development container, so we keep our host system clean and our development setup replicable. We’re building a scraper, so let’s add support for Puppeteer (pyppeteer) as well!
Read the article Jupyter Notebooks + VSCode Dev Container with Puppeteer supportLet’s face it: sometimes DateTime is just too much: you only want to deal with dates. Since .NET 6, we finally have support for DateOnly. In this blog I’ll look at how to interact with it and how to add it to your Swagger API docs.
Read the article DateOnly in your .NET 6 API