New SubSonic Provider: LOLCode.NET
- Friday, October 26, 2007
Just finished putting the wraps on a new provider for SubSonic using the new LOLCat.NET coding engine.
Just finished putting the wraps on a new provider for SubSonic using the new LOLCat.NET coding engine. If you haven't seen it, it's "teh suk"...
LOLCODE is an humorous esoteric programming language heavily inspired by structures found in many common programing languages, as modified to be expressed via common terms, stylings and informal spellings found in Internet memes (primarily lolcats) and the communication style found in internet slang, instant messenger chat, and cellphone text messaging ("TXT"), rather than the numerically-based l33t. The name itself comes from the expression "LOL" [laugh out loud].
You've seen this stuff - Twitter uses it a lot:
It's not easy working with this stuff- Phil and I were trying to figure out how to actually create a type with it. Phil took the first pass:
1 2 3 4 5 6 7
This worked pretty well, doing what you'd expect but you have to be sure to close off the "IM IN YR" opener or you'll have a memory leak. I still needed some help so I trolled over the LOLCode forums and found some great samples to help out.
Here's how you can work with strings:
1 2 3 4 5 6
1 2 3 4 5 6 7 8 9 10
Switches are supported too, although the GTFO is much clearer, to me, that "Break":
1 2 3 4 5 6 7 8 9 10 11 12 13
The best part of the language is the terse syntax - it's immediately readable and allows you to grok the intent of the programmer. Check out this routine - you know what's intended here:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Feel free to check it out in the latest commit to our repository - it's one of the coolest things I've seen... EVAR.