19th Century Theorem Simplifies Conditions


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/abel.nu/coding.abel.nu/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

Old knowledge can become valuable in a new context. The 19th century De Morgan’s Laws is a splendid example of that. Belonging to the theoretical propositional logic I doubt it had any significant applications back then. Nowadays within programming it can really help. The law is about equivalence for logical constructs. The laws can be… Continue reading 19th Century Theorem Simplifies Conditions

Published
Categorized as C#

Built in .NET CSV Parser

In administrative systems, there is often a need to import and parse csv files. .NET actually has a built in CSV parser, although it is well hidden in a VB.NET namespace. If I had known about it I wouldn’t have had to write all those custom (sometimes buggy) parsers. To really test the parser, I’m… Continue reading Built in .NET CSV Parser

Published
Categorized as C# Tagged ,

Bitten by yield return

I like the simplicity of creating enumerations with iterator blocks through yield return. Even though I regularly do it, I was bitten by a nasty bug a few weeks ago and it was entirely my own fault. I had been working hard on my bar management system, which includes a service to book a bar… Continue reading Bitten by yield return