LP on .NET

September 7, 2007

LINQ is Fantastic!

Filed under: .NET,LINQ,Orcas,technology — Larry Parker @ 2:15 am

I finally got the opportunity to use LINQ in a real project.  Up until a couple of days ago it was always a quick prototype here, install the latest CTP there, read a blog about LINQ, etc.  But there’s nothing like diving in and giving it your best shot on a data-intensive ETL app that would otherwise force you to hand-code a ton of opaque SQL strings using ADO.NET.

For the past two days, I have been sailing along and the code almost seems to be writing itself.  Well not really, but I’m almost done with my app and I have not had to write a single SQL query, and not one INSERT or UPDATE statement.

It was especially nice to see that the SQL generated by LINQ for a moderately complex query was exactly what I expected.  I was a bit concerned that the SQL would be convoluted and unnecessarily use temp tables, but after seeing what got generated I’m getting more confident that I won’t need to worry about it too much.

Perhaps the days of writing explicit SQL will become a thing of the past for me, much like writing assembler code was twenty years ago when I moved to a compiled language and no longer had to worry about the machine code behind the scenes.

Anyway, I hope to post more about LINQ as I continue to get better at it, but my initial test-drive has been extremely positive.  Thank you Microsoft!

Advertisements

September 1, 2007

Microsoft Expression Blend

Filed under: .NET,Orcas,technology,Visual Studio,WPF — Larry Parker @ 12:47 am

The first thing I did after installing Visual Studio 2008 Beta 2 was to check out the new visual designer for WPF.  My first impression was that it definitely worked better than the Cider add-in for Visual Studio 2005, but it was still missing something to give me a good visual design experience for my WPF app.

I heard mention of Microsoft Expression Blend after reading some blogs, and I even saw a demo at someone’s desk, but it looked like it was more targeted towards graphic artists than developers.  In fact, Microsoft’s site even says this about it:

Design cutting-edge user interfaces and collaborate with developers to bring these stunning new types of applications to life.

Collaborate with developers?  I am a developer, so this possibly couldn’t be what I needed!  But one morning I came to work and figured I would give it a shot, and after using it for a couple of weeks now, I have found it to be a very useful tool!

First of all, it works reasonably well with a WPF project under Visual Studio 2005.  You don’t need to convert your 2005 project to the new Visual Studio format (which was a plus for me because I’m not yet ready to do serious development under 2008 Beta 2).

The screen layout of Expression Blend is very nice, although it does get a bit crowded with the various panels and there is not much real estate provided for the “Artboard” that contains your WPF form.  I solved this by increasing my secondary monitor to the highest resolution and now it’s pretty acceptable.

Speaking of two monitors, I have found it to be very productive to run Expression Blend on one monitor and Visual Studio on the other.  This lets me work in Expression Blend for the visual design aspect of my app, and Visual Studio for the C# coding as well as the XAML.  Expression Blend does let you edit the XAML for your form, but Visual Studio is a better editor for this.  Once you save your app (in either tool), the other is smart enough to recognize the change and ask you if you wish to reload it.

One of the projects I am working on uses some customized styles to shape the application’s window (e.g. cornering off the edges using transparency).  The new Visual Studio 2008 Beta 2 WPF designer did not show me these changes at design-time, but Expression Blend did!  Visual Studio 2008 Beta 2 did read some of the styles (e.g. custom buttons), but Expression Blend seems to be more in touch with your customizations.

Anyway, I wanted to share my initial experience with these two tools and let you know that Expression Blend is not just for the graphic artist who knows nothing about programming!  And as a graphically challenged developer, Expression Blend is bringing out a creative part of me I didn’t know I had!  🙂

July 27, 2007

VS 2008 and .NET 3.5 Beta 2 Released!

Filed under: .NET,Orcas,technology,Visual Studio — Larry Parker @ 3:08 am

Microsoft has released Beta 2 of Visual Studio 2008 and .NET 3.5 (I guess the Orcas codename is getting phased out at this point).  Here’s a good blog that talks more about it.

I’m downloading the Professional Edition now using the Microsoft Secure Content Downloader.  It’s pretty big (3 gb), but fortunately I’ve been getting a decent download rate at work (2-3 Mbps).

July 26, 2007

Orcas Beta 2

Filed under: .NET,LINQ,Orcas,technology,WPF — Larry Parker @ 12:23 am

Looks like Orcas Beta 2 could be available either Thursday or Friday!

http://blogs.zdnet.com/microsoft/?p=594

This is great timing for me since I am just starting the next design and coding cycle of my product.

I’ve been looking forward to using LINQ for a while.  It will be nice to move my SQL out of strings and into an environment where I get strong typing and Intellisense.

 I’m also looking forward to the new WPF designer so I can see what my UI will look like at design time instead of runtime.

Hopefully things will go well with Beta 2, and I’ll post some blogs as I use it.

Create a free website or blog at WordPress.com.