Skip to content

Sven Hübner IT

  • Home
  • Blog

Blog

  • Home
  • Blog
  • Page 4

Gotcha with C# 9 Record inheritance and ToString()

Posted by By sven.huebner.it November 20, 2020Posted inGeneral Development1 Comment
On record types, ToString() and other compiler-synthesized methods cannot be overridden up the inheritance hierarchy in parent records, but must be overridden in the concrete record.
Read More

Domain Primitives I: easily declaring domain primitives

Posted by By sven.huebner.it November 19, 2020Posted inGeneral Development1 Comment
A domain primitive base class makes declaring domain primitives a breeze.
Read More

My Take On Domain Primitives

Posted by By sven.huebner.it November 4, 2020Posted inGeneral Development2 Comments
Domain Primitives are a stand-alone low-risk way to incrementally fortify your application, without the risk and complexity of introducing concepts like DDD, algebraic data types or immutability.
Read More

Use Collection Initializers To Simplify Tedious Mapping and Validation Tests

Posted by By sven.huebner.it October 18, 2020Posted inTesting
With custom collection initializers, you can avoid writing repetitive test methods for mappers, converters and validators by using parameterized tests with type-safe yet generic test samples based on expressions and corresponding values.
Read More

Simplifying unit tests for WPF ViewModels

Posted by By sven.huebner.it October 13, 2020Posted inGeneral Development
Use custom assertion extensions to easily unit-test implementations of INotifyPropertyChanged.
Read More

Improve your parameterized Tests with named ValueTuples

Posted by By sven.huebner.it October 13, 2020Posted inTesting
For parameterized tests, declare your samples as value tuple array and subsequently "Select" it to IEnumerable to be type-safe, concise and descriptive.
Read More

Boost your productivity with GIT worktree

Posted by By sven.huebner.it October 6, 2020Posted inGeneral Development
Consider using git worktree instead of git branch and git checkout -b
Read More

Performance Optimization Guided By Benchmarks

Posted by By sven.huebner.it August 22, 2020Posted inPerformance
This post is just a summary of a few things I learned about performance optimization of CPU-bound / memory-bound processes in C#/.NET. I was able to accelerate two different low-level image processing algorithms by a factor of 10 while learning a lot and enjoying the process.
Read More

Gotcha with xsd.exe and XmlSerializer

Posted by By sven.huebner.it August 8, 2020Posted inGeneral Development
TL;DR: Always use the /order option when using xsd.exe. If you have ever generated C# classes from an XML schema, chances are you used xsd.exe for that.You probably also expected…
Read More

Gotcha during migration to async/await

Posted by By sven.huebner.it July 13, 2020Posted inGeneral Development
TL;DR: Use Lindhart.Analyser.MissingAwaitWarning to get warnings on all ignored Tasks We all know and love compiler warning CS4014 for ignoring Tasks.You would think that this warning triggers every time we…
Read More

Posts pagination

Previous page 1 2 3 4 5 Next page
Copyright 2025 — Sven Hübner IT. All rights reserved. Sinatra WordPress Theme
Scroll to Top