Tech Tock

Time is of the essence.

Week @ Lab 2/21/2010

Ski Trip!

20-02-10_1539

The Lab sponsored a ski trip on Saturday to Windham Mountain.  It was an awesomely awesome trip.  Great weather, great company, and as far as I could tell, a great time had by all.

Goodbye ThreadPool & BackgroundWorker,
Hello Task

At this month’s .Net Meetup, David Barnhill, gave a great presentation on Multithreading in .Net 4.0.  While the internal features are just upgrades, support for new syntaxes and keywords in a lamda style will make the current thread starting styles obsolete.  Task Parallel Library is now the way to go.  The Mandelbot Set demo was instructive and visually pleasing.

You can download David’s multithreading samples here.

Another David also presented on mutlithreading in PLinq.

Some links:

Patterns for Parallel Programming: Understanding and Applying Parallel Patterns with the .NET Framework 4

Samples for Parallel Programming with the .NET Framework 4

Parallel Programming in the .NET Framework

DryadLINQ is a simple, powerful, and elegant programming environment for writing large-scale data parallel applications running on large PC clusters.

Reactive Extensions – Rx
Rx is a library for composing asynchronous and event-based programs using observable collections.

I’ve heard only great things about the Rx library, but David B. noted that the support and upgrade path is somewhat nebulous at this time.

Interesting fact:  StackOverflow data is publicly shared.

I highly recommend this meetup.

16-02-10_2124

This is the city after the meetup.  Its an interesting area, a few blocks up from times square.

Word of the week:  Blend·a·bility

With MS Expression Blend becoming more and more important in our development, we strive to maintain code that doesn’t break the UI designer features of Blend.  We call this maintaining blendability.

Basically, Constructor and OnApplyTemplate methods for visual elements need to be respected and not throw errors when loading in design time.  Constructor issues often come from dependency injection which Blend doesn’t supply.  In this case making a default constructor can solve the problem.  Code in the OnApplyTemplate should also respect nulls often caused by lack of dependency injection.  Alternatively, you can check for design time with this code:

if(System.ComponentModel.LicenseManager.UsageMode ==
System.ComponentModel.LicenseUsageMode.Designtime)

About these ads

February 22, 2010 - Posted by | Uncategorized | , , , , ,

3 Comments »

  1. I wish you’d gotten a ski trip picture of the truck that hit me…

    Comment by Peter Kapner | April 20, 2010 | Reply

  2. [...] 14, 2010 Was working on a medium sized DataTemplate that lost Blendability.  Extracted the piece I wanted to work on into a new DataTemplate and connected it with a simple [...]

    Pingback by ContentTemplate for Blendability « Tech Tock | July 14, 2010 | Reply

  3. [...] others in attendance toned down the geek speak just a little.  My topic of the day is skiing, but I heard about tornadoes, kids and schools (and skiing), travelling, movies, and of course DLR, [...]

    Pingback by @Lab Holiday Spectacular « Tech Tock | December 18, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: