Archive for September, 2008

Yummy…. Crow!

Yes, I will accept I need to eat some crow. I’ve been playing a lot recently with the .NET framework and C#. My PHP mistress got kinda boring. Same-o, same-ol’. I decided to give .NET another whirl because I wanted to port the ExtJS presentation I did for the local Spring users group to .NET. 

Since I hadn’t really gotten in to .NET since v2.0, I got up to date with Visual Studio 2008 and .NET 3.5sp1. I knew I neeeded JSON for my AJAX, so I thought about starting with WCF. But to fully dig in to WCF, I needed to understand the new features in .NET 3.5, so I found some good tutorials on what was new.

I was really blown away with how far .NET has progressed. I’m a big fan of JavaScript, and C# in .NET 3.5 actually starts to look a lot like it. You can declare variables with the var keyword and you have anonymous classes and lambdas. I actually played with LINQ, and I have say I like it a lot. I will humbly eat that crow pie over the trash talking I gave LINQ serveral posts ago.

I’m still not down with the postback model for ASP.NET, but am playing with ASP.NET MVC, which is getting pretty mature in its fifth preview release. It will definitely be the way I head. I just need to sort out the WCF stuff for the JSON/AJAX calls and I’ll be a happy camper.

So in an epic “I will not eat green eggs and ham” kind of way, I’ve decided I really like those green eggs and ham. But it is a lot more like green eggs and crow in this case.

The Future of Browsing

The big news today was about Google Chrome. Chrome is web browser built by Google based on Webkit that is going to be their way of finally killing off Microsoft. They actually created an online comic book to explain why they created Chrome and the technology behind it.

What makes Chrome special compared to Safari or Firefox is their JavaScript VM called V8. The V8 JavaScript engine provides JIT compilation of JavaScript code, so your JavaScript RIA applications run with blazing speed. ExtJS is incredibly fast in Chrome. Another awesome feature is the ability to create a shortcut to a page that actually is an application link. For example, here is Chrome viewing the ExtJS API documentation:

Notice the window decoration with tabs, navigation, etc… Selecting the Create Application Shortcuts option will create a Start Menu, Desktop and/or Quicklaunch shortcut to the page you are viewing. Opening the shortcut opens the page as a pseudo-application, like this:

This creates a kiosk-mode view, without navigation. This web page of documentation is now essentially a standalone application. Google obviously intends Chrome to be the primary client-side hosting environment for its web-based application suite. This is also really good news for folks using JavaScript for RIAs. With the V8 JavaScript VM, you can have JavaScript performance on par with what a plug-in can do, and thus don’t need the plug-ins.

When Chrome goes final, I don’t see why anyone would not want to use it. It is extremely fast, with a clean UI and will completely change peoples perspectives on web-based productivity software. ExtJS becomes stunning in Chrome, and I’d actually bet that Google buys ExtJS to use it as their main JavaScript library. The only question becomes Google motivations. Will they “not be evil” or will Chrome turn into adware/spyware. Time will tell, but I’ll be using it until I think it is evil ;-)