ILoggable

A place to keep my thoughts on programming

Category Archives: geek

Using lambda expression with .OrderBy

It's always bugged me that I could use a lambda expression with List<T>.Sort(), but not with IEnumerable<T>.OrderBy, i.e. given data object Data: public class Data { public int Id; public string Name; public int Rank; } you can sort List<Data> … Continue reading

July 31, 2012 .net, geek

Towards a decentralized, federated status network

So everyone is talking about join.app.net and I agree with almost everything they say. I'm all for promoting services in which the user is once again the customer rather than, as in ad supported systems, the product. But it seems … Continue reading

July 27, 2012 geek, Happenstance

Ducks Unlimited

Most complaints levied against static type systems come down to verbosity and complexity required to express intent, all of which are usually the fault of the language not of type system. Type inference, parametric types, etc. are all refinements to … Continue reading

March 10, 2012 geek

Implicits instead of Extension Methods?

After the latest round of scala is teh complex, I started thinking a bit more about the similar roles implicit conversions in scala play to extension methods in C#. I can't objectively comment on whether Extension Methods are simpler (they … Continue reading

January 10, 2012 .net, geek

Node 0.6.x & AWS EC2 Micro troubles

Tried to upgrade node from 0.4.5 to 0.6.x and my my micro kept falling over dead. I know it's an edge case, but it's an annoying set of symptoms that I figured I should post in case someone else runs … Continue reading

December 28, 2011 geek, javascript , ,

Whopper of a javascript extension

I consider the start of my programming carreer to be when I learned Genera LISP on Symbolics LISP machines. Sure I had coded in Basic, Pascal and C, and unfortunately Fortran, before this, but it had always just been a … Continue reading

September 20, 2011 geek, javascript ,

Building emacs-23 on AWS Linux AMI to get jade-mode

So there I was trying to get jade-mode running and it kept dropping into fundamental mode. The error it gave in *Messages* was: File mode specification error: (void-function whitespace-mode) Problem was i was running emacs-22.2.3, the latest in centos and … Continue reading

September 12, 2011 geek , ,

Implementing “exports” in C#

The other day i was musing about improving readability by liberating verbs from the containing objects that own them. Similar things are accomplished with mix-ins or traits in other languages, but I wanted to go another step further and allow … Continue reading

May 25, 2011 geek, Promise ,

Of Workflows, Data and Services

This is yet another in my series of posts musing about what my ideal language would look like. This one is about readability. Most code I write these days seems to utilize three types of classes: Data, Services and Workflow. … Continue reading

May 23, 2011 geek, Promise

When lazy evaluation attacks

I just had a lovely object lesson in lazy evaluation of Iterators. I wanted to have method that would return an enumerator over an encapsulated set after doing some sanity checking: public IEnumerable<Subscription> Filter(Func<Subscription, bool> filter) { if(filter == null) … Continue reading

May 17, 2011 geek , , ,