Curls, clouds and code

Hi, my name is Corstian, and this is my blog where I get to publish my writings on topics such as psychology, philosophy, software development and any other thing I deem worthy to write about.

Latest post!

React forms on steroids

Published on the

If there is one thing I hate about web development it is creating input forms. It’s something I’m bad at, mostly because I do not have a cohesive mental model about how to deal with input props. In this post I’m about to explore some techniques to make form creation using React somewhat easier.

software development

Rolling back migrations to a previous version of Entity Framework Core

Published on the

During a month long refactor session on the Skyhop back-end I had upgraded all of my dependencies to their latest versions. Later during this process I discovered there was a dependency incompatibility between EF Core 5 and SqlKata. I weighted my options, and decided it would be easier to revert back to EF Core 3, than to solve this dependency compatibility issue in another way.

software development

Similar string search with the Levenshtein distance on SQL Server

Published on the

Recently I have been looking for more flexible ways to search through text within a SQL database, and I stumbled upon a suggestion which indicated to use the so called Levenshtein distance. This parameter is a value which indicates the number of changes to a string required in order to match the searched value. In a certain way it is possible to regard this Levenshtein distance as being a similarity rating between two strings, whereas the lower the value, the more similar it is.

software development

Accessing the filesystem with an asp.net core app run on Docker

Published on the

A recurring question when it comes to dealing with filesystems is “where do I put this file, and where can I find it?”. This even more so when dealing with an app which is to be dockerized. How can I ensure these files can be accessed both during debug sessions, as well as when this app is running in Docker? To answer this question I have been fiddling around with an example project which you can find here, and the findings of which I describe in this post.

software development

Change tracking on detached entities using Entity Framework Core

Published on the

There are a surprising amount of use cases where it is beneficial to deal with disconnected entities in EF core. In my particular situation I’m dealing with a domain which is responsible for modifying data through an API. Reasonably enough, by the time this data returns to the server, the original DbContext instance with which this data had been retrieved is no longer around, and therefore there is no change tracking.

EF Core tries to go out of the way, and most of the time it’s fairly easy to hook the entities back to the context, but with a single exception; when removing entities. Though this is not a problem when directly telling the context to remove a specific element, it is when the object contains a collection from which one of the children needs to be removed. Removing an object from a collection removes it without trace, and there’s no way Entity Framework may know there has ever been an object in there without verifying it with the database.

software development

Mutation design with graphql-dotnet

Published on the

GraphQL is fairly flexible when it comes to API design. Sure, it’s not as flexible as OData, though that may actually be a blessing. Maybe it’s the restrictions in term of API structure which give GraphQL much of its power. In this post I’ll cover another subtle method which will improve usability and therefore the quality of your API;

software development

Do you like this content?

Be notified when I publish something new by subscribing to this newsletter, or add my feed to your favourite RSS reader.

Don't worry, I will not spam you nor sell your email address to hackers!

Featured!

About social media, advertisements, and psychological trauma

Published on the
psychology
Featured!

Entity Framework Core: insert or update, the lazy way

Published on the
software development
Featured!

Implementing pagination with GraphQL.NET and Relay

Published on the
software development

About self identification with substance (ab)use

Published on the
psychology mental health

The demise of a family

Published on the
psychology

Breaking free

Published on the
psychology

Data access paradigms for client/server apps

Published on the
software development

Tagging a dockerized React app with build information

Published on the
software development

Improving the spatial map object

Published on the
software development

State Machines for Realtime Data Processing

Published on the
software development

Hiding React component props within a shadow state

Published on the
software development

Handling a datetime input with React

Published on the
software development

Force a component to unmount with React Navigation

Published on the
software development