Scala pattern matching & lowercase case objects
Posted on Wed 30 November 2016 in Coding • Tagged with scala, functional
I just learned something about pattern matching and case objects in Scala which I thought I’d share.
Continue reading
Posted on Wed 30 November 2016 in Coding • Tagged with scala, functional
I just learned something about pattern matching and case objects in Scala which I thought I’d share.
Posted on Fri 04 March 2016 in Tools • Tagged with git, diff, excel
In this post, I’m going to demonstrate how to get a useful diff for binary Excel files that reside in a Git repository. I assume that you’re familiar with Git, and in that case you know that having binary files in a repository is generally not a good …
Posted on Wed 26 November 2014 in Coding • Tagged with .net, linq, iis
TL;DR Using Enumerable.Concat to build a long sequence one item at a time is a particularly bad idea, since enumerating the items will consume a lot of stack space.
A while ago, a customer reported that our .NET application running in IIS started crashing on user registration after …
Posted on Tue 19 November 2013 in Coding • Tagged with asp.net, nancy, uri
This blog post answers the question “Why does Uri.AbsolutePath sometimes return an escaped path and sometimes an unescaped path
for the request URL in an ASP.NET application?”
I spent some time googling for a possible reason, but search terms like URL/URI, request, path, encoding, and escaping are …
Posted on Fri 11 October 2013 in Opinion • Tagged with git, vcs, commit
Git is my version control system of choice nowadays. Its feature set fits extremely well with my usual software development workflow, and there are so many aspects of git that I could write about, but this particular blog post is about commit behavior.
There is nothing religious about this post …
Posted on Fri 26 October 2012 in Coding • Tagged with coffeescript, javascript
CoffeeScript is “a little language that compiles into JavaScript.” If you haven’t seen or tried it, go check it out! I’ve been using it in a project for a while now, and its obvious advantage over pure JavaScript is that it is very concise and has high expressive …
Posted on Tue 18 September 2012 in Coding • Tagged with fail, vb.net, csharp, vs2010
Over the last year, I’ve written a fair amount of Visual Basic .NET code for a customer project. As a result, I know a lot more VB.NET than I would like to, and I’ve run into a number of peculiar behaviors, such as this one. In this …
Posted on Mon 17 September 2012 in Opinion • Tagged with angularjs, pain
This is a whine post, but I really need to get it out of my system. Apologies in advance!
I’ve battled with Angular for a while now. It’s a JavaScript framework that allows you to write rich client-side applications in very short time with goodies such as two-way …
Posted on Wed 25 July 2012 in Coding • Tagged with assertion, qunit, testrules, javascript
When it comes to unit or integration tests, there are of course good ones and bad ones. There are few things more treacherous than a test suite filled with low-quality tests that don’t test what they’re supposed to, if anything at all. When the test suite goes green …
Posted on Sat 21 July 2012 in Tools • Tagged with chrome, extension, linktoid
Occasionally I want to link to specific section of a web page. Previously, I would bring up the source of the web page to see if there was a named anchor tag for the section in question, then I would manually add the anchor name as the URL fragment. Recently …