Enumerations
August 25, 2018Enums in C# are very useful. Unfortunately, using them introduces risk into our programs in both obvious and subtle ways.
Let’s explore these problems and look at a safer alternative.
Enums in C# are very useful. Unfortunately, using them introduces risk into our programs in both obvious and subtle ways.
Let’s explore these problems and look at a safer alternative.
I’ve been with my current employer for 9 years.
I’ve done things I’m proud of, learned a lot and gained some good friends.
Now it’s time for something new.
When searching my mail archive today, I discovered a mail from 2011. I had been discussing browser based testing with someone at a meetup. A couple of days later I sent him an email illustrating what our setup looks like (or looked like).
Since it was basically written as a blog post for an audience of 1 and it’s still relevant, I’ve reformatted and shared it here.
I like creating tiny productivity tools. I like the command line. I love how everything pipes into each other. I get joy from things that are slightly silly.
When investigating a bug or issue, there’s usually some querying and grep-ing, and then sending the results to someone. The first part pipes nicely, even into the clipboard, but then I still have to paste the results into a mail.
The previous post had a video on “Domain modelling with the F# Typesystem”
I’d like to elaborate how the insights gained there, impacted the way I was able to do a refactoring soon after at work.
The typesystem is the thing that complains when you pass a Double to a function that wants a Decimal. So then you have cast your Double to a Decimal and everything is fine again.
We currently don’t have a dishwasher. This gives me a lot of time to watch videos. I particularly enjoy watching presentations on programming.
So, over the past half year or so, I’ve been watched talks from the Awesome Talks list, curated by @JanVanRyswyck.
Hurray, we have a blog!
Currently I’m not really taking part in the conversation online. There’s thoughts I would like to share. Code things I would like to show. And when I have such a moment. I either try to cram it in a tweet or let the moment pass.
The specific occasion now was this tweet and ensuing discussion a couple of days ago: