Being Cellfish

Stuff I wished I've found in some blog (and sometimes did)

Change of Address
This blog has moved to blog.cellfish.se.
Posts
  • Being Cellfish

    What has happened?

    I wrote this almost a year ago the day before my last day at Microsoft. You should really head over to my new blog to see what has been happening since then.

  • Being Cellfish

    When to use Tuples in C#

    I've seen people use the Tuple class in C# code and I've even done it myself once. And I didn't like it. I'm still struggling to see find a case where using a Tuple would actually be a good idea versus the alternatives.

    Read more here.

  • Being Cellfish

    Tail Recursion and C#

    Tail recursion is a powerful optimization since it typically improves both execution time and memory usage for recursive calls. It can also be your enemy if you forget about it.

    Read more here.

  • Being Cellfish

    Logical task combinators

    When I had to use Erlang for the very first time it was a brand new language and I was in collage. Back then Erlang did not have a logical not function so we had to define our own in order to make our code readable. At least given the knowledge me and my lab partner had at the time. So the other week I had a deja vu moment since I had a Task<bool> that I wanted to negate. At first it felt real weird and I ended up solving my problem in a different way. But then I started to think.

    Read more here.

  • Being Cellfish

    Hashtable vs ConcurrentDictionary

    Historically I've seen the Hashtable be favored over ConcurrentDictionary with the assumption that is was more efficient allowing for lock free reads. Well they both allow lock free reads so which one is really the better option?

    Read more here!

  • Being Cellfish

    Circuit Breaker Pattern

    Start here to learn more about different ways to implement the circuit breaker pattern!

  • Being Cellfish

    Lunch Dictator or Tweeting from PHP

    A while back I needed a way to simply post tweets from PHP. To my disappointment most examples I found were about reading tweets or required a bunch of PHP modules I did not have the opportunity to use on the server where the script was going to run. So I had to do some work.

    Read more here.

  • Being Cellfish

    429 vs 503

    A while back I was involved in a discussion around using 429 instead of 503 in order to tell clients they should back off a little. And there are some good arguments for both. Here are my thoughts.

    Read more here.

  • Being Cellfish

    Abstracting time

    Probably one of the most common tight couplings I see is a dependency on system time, i.e. using DateTime.Now or DateTime.UtcNow directly in your code without any abstraction around it. A tight coupling that typically leads to very complex and fragile tests when trying to ad test coverage.

    Read more here.

  • Being Cellfish

    Xbox One Launch Day

    So what is it like to launch Xbox One? Given that it started 3am local time when New Zeeland first launched it has been an interesting and long day.

    Read more here.

Page 1 of 49 (482 items) 12345»