Geeking it Out at Deeper in .NET

by Nick Saturday, April 05, 2008 7:56 AM

I found a table right next to a power source, and I have WiFi so things are good.  I'm going to be live blogging the speakers as they come up.  If you want to see the line up, you can see the listing here.

LINQ Internals with Scott Wisniewski @ 8AM

Scott had an interesting approach which was to write an app using traditional ADO.NET data access methodology to show you how painful current techniques are, and then gradually change the app to utilize the new LINQ functionality in VB9.  Not sure this was the best approach given the relatively limited time, since we all know (or should know) how painful the current methods are.  It's pretty clear that he's new to speaking at these types of events.  He has good information, and speaks fairly well, but there is a degree of polish that is missing, which only comes with speaking at events often.  This started to kill him during the presentation because he had a lot to cover, and not being fully prepared meant that his live coding demos were slowing him up.

He started out pretty basic with talking about extension methods.  However, he doesn't go into some of the important caveats of extension methods, namely that it's syntactic sugar (utilizing good compiler tricks), and isn't polymorphic in anyway.  Scott Hanselman had a good post on this recently because this issue is causing a lot of confusion.  This is sort of like how var caused significant confusion with people when it was originally talked about, in that people think it's a variant (from the bad old VB6 days) when it's not.

Obviously in an hour, you can only give just barely a taste of LINQ, but the problem is that there are so many new language features that are required to make LINQ work (extension methods, lambdas, type inference, etc.) that it's really hard to do a good job in just an hour.  For most people, getting your head wrapped around some of these things, especially lamda expressions, is really hard.

He also showed the built in XML expressions that is in VB9.  C# needs something like this!  Normally with .NET, C# would get something before VB.NET (unsigned types, using directive, built-in nullable type support with the ? operator, etc).  To my knowledge, this is really the first time that VB.NET is getting a super cool feature that C# doesn't have first class support for first.

Scott recommended Rico Mariani's blog if you're interested in the performance of LINQ.  He's got some good posts that talk about how to squeeze the maximum performance out of LINQ.  I was surprised that he never mentioned LINQPad.  If you want to learn LINQ and use it a lot, get this tool!!!  It allows you to write code snippets with LINQ and run them without having to create a command line harness, and gives you powerful looks at your database just like SQL Management Studio, but with better features for navigating the relationships in your tables.

The Science of Great UI with Mark Miller @ 9:45 AM

I'm a usability nut, so I was really looking forward to this one.  What was good right away is that he talked about things besides controls, and grids, and code.  He was talking about real "human factors" like how your eye and hand movements, if not designed well, can make things harder on your user.  Of course, he hardly talked at all about CodeRush, which is too bad because I've wanted to see more of it without installing it at this point because of the cost.

Best quote so far... "You want to be able to spank your data like a porn star."

Mark spent this first part of the talk with observations of common interaction issues.  He talked about keyboard shortcuts, mouse travel distance, and poor GUI paradigms that require extra brainpower to run a UI.  What seemed strange to me was that use used Visual Studio as an example of these pains.  While its something we're all familiar with, the developer is definitely not your typical user, and so it seemed odd.  Maybe because we consider ourselves to be power users, we don't mind the pain... but maybe that also encourages us to make poor UI's for other users.

Mark recommended Visual Explanations by Edward Tufte.  He's not a programmer, which is a good thing.  This is just about how the human brain works, and how to present things in the easiest way possible for the user.  Mark talked about showing things with the smallest effective difference necessary, presenting things in serial vs. parallel, and also reducing the amount of noise.

He also recommended using a tool from Adobe called kuler which allows you to pick good color schemes for your UI using good hue combinations.  Mark talked a lot of the difference to use contrast appropriately, as well as size.  High contrast and larger size both attract your eye, so it should be used for important data, not mundane things like headers.

Another good quote... "This moving in and out, its sort of like coding masturbation."

As far as animation goes, be careful with it.  Animation attracts the eye (like moving a window in and out from the side), but you can't work with the dialog until the animation is done.  Use changes in opacity instead because you can start moving towards your target in the middle of the opacity change and it's less jarring to the eye and brain.

For making keyboard shortcuts better, utilize context better.  Make the same keyboard combination do different things in different contexts.  One drawback of this that he doesn't talk about is confusion.  One of the beauties of keyboard shortcuts is that they're viewed as "global", and by adding too many meanings to the same combination, it might confuse the user.

He talked a lot about wanting to have UI's reorganize themselves based on context, or move the mouse if the dialog get's shifted, etc.  Unfortunately, there aren't a lot of libraries that do this for you, so you'll spend a lot of time rolling your own for these ideas until someone does it for you.  He did talk a lot about the beauty of monochrome applications, but I'm concerned about physical eye strain, and really didn't have any information on that.  You don't want to physically tire out your users, and that might be a concern.

Speaker Q&A Panel @ 11:30

I'm eating, networking and not paying much attention.  Mostly its people complaining about this or that not being in Visual Studio, and what blogs people like to read.  Heard it once, heard it a thousand times.  Why do they always serve pizza and Diet Mtn. Dew?  I mean, I enjoy both... but how much more do we need to self identify as geeks?  Honestly.

The Scaling Habits of ASP.NET Applications with Richard Cambell @ 12:45 PM

Way too much information about his personal history that took away from what the topic of the conversation was.  I mean seriously, it's good to know who you are, but I'm here to listen about specific topics.  Get to it already.  He did push .NET Rocks, Hanselminutes and RunAs Radio, which are all good developer podcasts.  Once I figure out how to integrate podcasts into my life, I'll start listening to them I'm sure.

He had really good information about all the details around performance calculations.  I know its boring, but there are lots of things that people forget to account for when doing those calculations, and reminded us of those.  You know, things like Round Trip Time, extra HTTP Requests, etc.

Interesting thought... performance is how fast something works with one user.  Scalability is how fast something works with multiple users.  The difference between the two should be as small as possible.  It's ok to sacrifice single user performance if it improves multi-user performance.  Most testing is with single users, so some changes will seem as if they killed performance, when they in fact they improved scalability.

He does talk about using Firebug and YSlow.  You need to be careful with YSlow though, because it is skewed towards using things like Content Delivery Networks which really are only useful for certain types of users.  Jeff Atwood talked about this at length.

Funny perspective on software versions:

  • Version 1:  Make it work.
  • Version 2:  Make it work right.
  • Version 3:  Business Traction (now the app is important).
  • Version N:  Business Success.

What does failure look like?  It's usually not a smoking server.  So what is it?

  • .NET Memory consumption over 80% (because the physical server may still have 1 gig free)
  • Processor consumption over 100%
  • Request queues grow out of hand (usually during a GC b/c requests can't be served during a GC)
  • Page timeouts
  • Sessions get lost
  • People bitch at you.

Nobody ever needs 100% reliability.  The cost difference between 99% reliability and 100% reliability is huge (on the order of hundreds of thousands of dollars).

His view on optimization made me sad.  What is the cost of tuning your code vs. buying another web server.  It's usually cheaper to buy the second server.  How many people will simply use that as an excuse to write bad code?  *sigh*  Sometimes optimization makes your code harder to understand and more buggy though.  So there is a tradeoff.  Often times caching isn't used as much as you think, and you pay a memory cost.  So always instrument your cache code to decide whether its worth the penalty.

Building Next Generation Web Applications Using Silverlight 2.0 with Jason Beres @ 2:30 PM

Holy cow, he mentioned Silverlight as being similar to Flash!  Now we know he doesn't work for Microsoft.  Basically this talk is marketing talk about Silverlight from someone who doesn't work at Microsoft.  Kind of boring really.  Hardly any code.

Silverlight is still pretty Beta.  In Visual Studio 2008, the graphical display is read only, and so you have to know XAML and be able to edit it in order to do anything.  At that point, the graphical display area will correctly re-render with your changes.  This seems to be by design.  Expression Blend has all the drag and drop that you'd expect.  It seems that Microsoft is enforcing this idea of having developers separated from the designers.  That's great if you're working in the Flash model, but the reality is that most companies will have one person doing both.  Why do I need two software products then?!

Strange side note, he pulled one of the Silverlight assemblies into ILDASM.  Who still uses ILDASM?!  Doesn't everyone use Reflector?  And if not, you should.  Its also important to note right now that Microsoft Expression Blend is still in CTCP, and is free to use until July 1st.  By then, you should be able to find a free license of it somewhere.

Best quote so far... "It's super fast!  It's like running an old VB5 app on a 2.5 GHz machine!"

Deep Zoom was freaking cool.  It allows you to take an extremely high resolution picture and break it into grids of higher and lower resolution sections so that you can display the picture at lower resolution, and then zoom in quickly without the huge bandwidth penalties all at once.  Sort of like how Google Maps works, but at a much finer resolution.  Matt Berseth has as some really cool examples of this.

Sadly, when he finally got to the demos, they basically all blew up.

The Essence of LINQ with C# 3.0 with Charlie Calvert @ 4:30

This will be interesting because we already heard a LINQ talk with regards to VB.NET, so now we'll see it from the C# perspective, and also whether Charlie can accommodate the fact that we heard some of it before earlier in the morning.  So far he's covering the same stuff we heard this morning, but in a slightly different way.  Scott Wisniewski did this by showing us old code and new code, while this guy is doing it by talking with a single PowerPoint slide up.

However, he is talking about some of the features of LINQ that Scott never hit, like the ability to write custom providers like extensions to use LINQ to go after reflection data in assemblies, or use LINQ to go after web services in a query like fashion as opposed to a function call like paradigm.  For instance, there is an extension to query Amazon web services using LINQ to get book information.

Why is nobody using LINQPad?  Seriously.  Who needs to write a console app in Visual Studio when you can have the results immediately delivered in an output window for your demo?

He did explain the true nature of var, and that fact that you need it for anonymous types.  A lot of people are using var to be sloppy in their coding though, so they don't have to think about the types they're using, even though they ought to be able to know the type easily.

At least he is going into more detail about what Lambda methods are, along with the new enumerator syntax (with yield return), etc..  These are really hard core changes into the language that you have to know in order to get the most out of LINQ.  It will either be really successful, or it will be the downfall because of the perceived difficulty, even though the result is easier code.

You can tell that he's a compiler geek.  He's getting really, really, excited about about Expression Trees when realistically, for someone writing a business app, you could care less.  Why can't these demos be more practical?  Seriously.  Show me how it will make my life easier writing a real world application, not masturbating over how cool the compiler can figure out parameters in a lambda.

Summary:

Well that's pretty much it everyone.  Some pretty good speakers, and some interesting topics.  I'm off to the After Party... we'll see what other tidbits I can get out of them next.

I Have a Cube Neighbor...

by Nick Monday, March 17, 2008 1:19 PM
... that enjoys listening to the radio at a reasonable volume from nine to eleven.

But I Need to Get the Dust Out!

by Nick Monday, March 10, 2008 12:10 PM

I was just walking back to my cubicle, and I heard a banging noise coming from one of the cubes I was walking past.  Being the curious type, I stopped and looked in to see one of the call center supervisors (who shall remain nameless... I'll caller her "J") holding her keyboard upright and banging the edge of it against the desk and then shaking it upside down.

Me:  What are you doing?
J:  I'm cleaning my keyboard.
Me:  You could damage your keyboard by doing that you know.
J:  No I can't.  I do this all the time and it still works.  Besides, how else am I supposed to do it?
Me:  They have little vacuum cleaners you can use, or a can of compressed air.
J:  I'm not paying money for a stupid can of air when I can just do this.
Me:  I'm telling you, that's like cleaning your car by crashing into a light post to shake the dirt off.
J:  Oh Nick, stop exaggerating.

These are the people we design computers and software for.  Always remember that.

The TSA Should Be Required to Read Slashdot

by Nick Monday, March 10, 2008 9:06 AM

After all, if they're going to be the arbiters of who can and cannot board a plan based on the technology you carry, they should be up to date on what the latest technology is.  Here's the story of someone who missed their flight because the TSA didn't believe that a Mac Book Air was a real laptop:

Only... today, something is different. Instead of my bags trundling through the x-ray machine, she stops the belt.  Calls over another agent, a palaver. Another agent flocks to the screen. A gabble, a conference, some consternation.

They pull my laptop, my new laptop making its first trip with me, out of the flow of bags. One takes me aside to a partitioned cubicle. Another of the endless supply of TSA agents takes the rest of my bags to a different cubicle. No yellow brick road here, just a pair of yellow painted feet on the floor, and my flight is boarding. I am made to understand that I should stand and wait.  My laptop is on the table in front of me, just beyond reach, like I am waiting to collect my personal effects after being paroled.

I'm standing, watching my laptop on the table, listening to security clucking just behind me. "There's no drive," one says. "And no ports on the back. It has a couple of lines where the drive should be," she continues.

Your tax dollars at work.  Via Engadget.

Maybe I Should Change My Blog Name

by Nick Tuesday, March 04, 2008 9:39 AM

Here is this morning's Dilbert:

'nuff said.  And yes... Wally's description of an architect is amazingly accurate.

Yahoo! The Bid Was Rejected!

by Nick Monday, February 11, 2008 10:27 AM

Count me among those who was absolutely terrified that Microsoft was going to buy out Yahoo!  Also count me as one of the ones who is breathing a sigh of relief at the news that Yahoo rejected the offer, for now.  Actually, I was a little nervous when Yahoo bought Flickr, and also del.icio.us, but as it tuns out, those fears were unfounded.  Flickr has changed very minimally, and del.icio.us hasn't changed at all.  In fact, both services have have changed so little as far as integration with Yahoo (Flickr only changed their login) that I really have to wonder why Yahoo bothered at all.  My only explanation is that Yahoo did it to prevent Google from buying either service.  Google had bought Picasa, which I found to be a very strange purchase, since at the time, Picasa didn't have a web presence.  Google also didn't have a bookmarking service.  Google ended up having to build Picasa's web album infrastructure, and they built their own bookmarking infrastructure.  Neither of which have taken off like Flickr and del.icio.us.  Windows Live services have tanked as well.

But where Yahoo was smart and left those services alone to excel as they had prior the purchase, I have absolutely no faith in Microsoft to do the same.  Flickr will first get wrapped up in Windows Live ID, and then have their content pulled in with Windows Live as fast as humanly possible.  They will also replace the very capable Flash engine with Silverlight.  Just wait and see.  I have no idea what would happen to del.icio.us.  They'd probably port all your bookmarks to Windows Live and then close up that shop.

Anyone disagree?

Email Troubles

by Nick Thursday, February 07, 2008 12:04 PM

For anyone trying to get a hold of me, it seems as if my two domain email addresses are not forwarding properly at the moment.  So if you've been emailing me at nick-at-nickschweitzer-dot-net or nick-at-thecodingmonkey-dot-net and I haven't responded, please try me at schweitn-at-gmail-dot-com.  I have a support ticket into my hosting service, so hopefully it will be resolved soon.

Update:  Everything got resolved some time last night, and I even got an influx of emails from throughout the day.  Nice to not lose anything, even if they were delayed several hours.  I actually do prefer nick-at-nickschweitzer-dot-net however, since at some point, I may stop using gmail, and if everyone sends to that address, I don't have to worry about losing too much email in the switch.

Nick, Could You Reboot The Internet?

by Nick Friday, February 01, 2008 3:27 PM

Yes... someone actually asked me to do that at work today.

Isn't That a Basic Feature?

by Nick Saturday, January 26, 2008 12:27 PM

I don't know about the rest of you, but I generally prefer to read real books, rather than online books.  In fact, I've commented before about how I only own one truly "digital book".  It was a book written by Dean Koontz, and at the time I bought it, it was only available online.  I have since bought a signed author's copy, and lost the online version.  But now I'm reviewing a new book on Microsoft Silverlight which is only available online in PDF format.

Most of the time when I use PDF's, it's for relatively brief documents that only amount to one or two pages.  I read the document, and then close it.  But now I'm trying to read a nearly 200 page online book, and I have no idea how to bookmark where I left off in Adobe Reader.  The author of the book can add their own bookmarks when they create the PDF, but how does a reader add a bookmark... like... where I left off?  Adobe Reader is in version 8 now, and either they still don't have this feature, or it's so hidden that I can't find it.  Shouldn't that have been in version 1.0?

New Book Review Posted

by Nick Friday, January 18, 2008 9:18 AM

I have a new book review posted on BlogCritics.  It's on Programming WPF by Chris Sells and Ian Griffiths.  This is probably one of the best technical books I've read since doing book reviews.  If you're interested in learning the latest framework for doing GUI programming in Windows, then this ought to be the book you buy.

About Me

Nick Schweitzer Nick Schweitzer
Wauwatosa, WI

Contact Me
I'm a Software Consultant in the Milwaukee area. Among various geeky pursuits, I'm also an amateur triathlete, and enjoy rock climbing. I also like to think I'm a political pundit. ... Full Bio

Community Involvement

Twitter

Archives

Flickr Photos

www.flickr.com
This is a Flickr badge showing public photos and videos from Nick_Schweitzer. Make your own badge here.

Standard Disclaimers

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017 Nick Schweitzer