I’ve got a bit of an addiction to intellisense. Dynamic types are interesting but I still prefer being able to see a nice neat list of properties on each of my objects. Since anonymous types are ‘real’ classes then you can actually create them at runtime. This means you can use them as templates for ...
I’ve had a few e-mails asking how to perform a query on JSON data from an external source, for example Flickr Services. This post we will go over accessing Flickr data but also performing a secondary query on the information returned. You can download a .zip file at the end of the post with the ...
Checking for null can be time consuming and add a lot of extra noise to the code you write. In some ways it can reduce the readability of your code and obscure the purpose of your functions. For example, check out all of the null checks required for this bit of code. public static int ...
Got an interesting piece of anonymous feedback today reminding me of something rather obvious… How exactly do you install CobaltMVC? Oh yeah… That would be handy information… and it probably should have already been released. That said, lets get right to it. Download CobaltMVC The new CobaltMVC site is still in beta (like the rest ...
If you’ve seen the early versions of jLinq then you know there is a dedicated online section to test out the project before you download it. Well the new jLinq demo is now online with a shiny new logo and 25 code samples to show how to perform common (and not so common) tasks. Of ...
Since I released the beta code for the new jLinq I’ve had several of the same questions show up. Here are some answers to help you get started. Where Is ‘Manual’, Query Commands Are ‘Auto-pilot’ I’ve had a few questions where people start trying to use the where command and find that it isn’t solving ...
[jLinq Beta is now online - go check it out!] My first ‘open source’ project I ever released was a Javascript library that allowed you perform LINQ style queries with arrays of objects. The library supported operators, extension methods and even memorized commands to reduce typing. Overall, it did a good job of making it ...
As much as you might try, sooner or later you’re going to wind up parsing string values and converting them into their correct type. It is… inevitable. If you’re going for clarity then this only takes a couple lines of code to accomplish. For example… int value = default(int); int.TryParse("44", out value); No big deal, ...
After writing this post I went back and rewrote jLinq from the ground up to improve performance. So here is something interesting. Another developer named Dan Stocker has been working on a Javascript sorting library named jOrder and used jLinq for comparing benchmarks. The results are interesting to say the least. Dan has a good ...
CobaltMVC is coming along really well. I’ve been dog fooding it myself for the past few weeks in some projects and it fits nicely. I’ve discovered (and fixed) a lot of flaws and bugs along the way, so overall it has been a good experience. I started a new site to be the dedicated home ...