Thursday, May 07, 2009

NoVa Code Camp – 23 May

Update: Apparently I found a wormhole this morning and stated January instead of May. That would be May 23!

We have a code camp coming up on Saturday 23 May in Northern Virginia at the Reston Microsoft Training Center at 12012 Sunset Hills Rd, Reston, VA. There is a great line up with 4 tracks and over 20 speakers.

I’ll be giving a session on Developing Service Oriented Workflows, come out and expand your brain!





Thursday, May 07, 2009 11:26:37 AM (GMT Standard Time, UTC+00:00)
Comments [1]  | 


  Friday, May 01, 2009

Selecting the Right Client Technology Interview

Last year at TechEd, I was interviewed for ARCast TV about selecting the right client technology for your application, which I also gave as a breakout session at the conference. I don’t know why it took almost a year to produce, but that interview is now available. You can check it out here:

http://channel9.msdn.com/shows/ARCast.TV/ARCastTV-Brian-Noyes-on-Selecting-the-Correct-Client-Technology/

Some of the key points from the discussion included:

- WPF is really your best choice for any new smart client application development over Windows Forms if you care about building your team’s skill set where it matters for the long term.

- Windows Forms is still relevant for evolving existing applications, and even for new applications that are intensive on data editing but not visualization, where you have an existing team with deep knowledge in Windows Forms but no experience with WPF, and where you can justify that you will never need to have enhanced graphics, user experience, or advanced data visualizations.

- Silverlight is the way to go for anything where you want both broad reach in the browser and rich graphics. Particularly with the announcements of features in Silverlight 3 since this interview occurred, there are many applications that in the future with Silverlight 3 will be just as well off as a Silverlight application as they would be with WPF for businesses.

- ASP.NET (using AJAX features for better user experience) can still go a long way in delivering what you need for broad reach applications, and is certainly the way to continue if you have a good investment in web application development with .NET.

- Mixing ASP.NET and Silverlight for where their strengths lay is the sweet spot for web

- Starting to invest in WPF knowledge now is the right choice for the future with smart client development

Nothing too earth shattering will cause Nostradamus to rise from his grave, but hopefully helps cement some tough technology choices for people who were not sure which direction to head. 





Thursday, April 30, 2009 11:50:25 PM (GMT Standard Time, UTC+00:00)
Comments [0]  | 


  Wednesday, April 22, 2009

Building Composite WPF Applications at Evansville .NET Users Group

I presented a session last night at the Evansville .NET Users Group in Indiana on building composite applications with Prism 2. It was a great little group with a lot of really good questions.

For those that were there, thanks!

For those who are interested, here are the slides and demos:

Slides

Demos





Wednesday, April 22, 2009 8:36:51 PM (GMT Standard Time, UTC+00:00)
Comments [3]  | 

Composite Extensions for Prism 2

I figured that since I wrote my original composite extensions for Prism 1 on an airplane, I should keep up the tradition. On the way home from speaking in Evansville Indiana last night (not surprisingly on Prism), I got all the code in my composite extensions updated to Prism 2.

So if you like the modularity and pub-sub events story from Prism and would like to be able to do those same things in a Windows Forms or other kind of .NET application, you can easily do so now with these CompositeExtensions.

These extensions allow you to use the modular loading patterns and capabilities of Prism as well as the pub/sub events in a Windows Forms application, or any other kind of application (even console apps, WCF services, etc.).

The key pieces remain the same:

A CompositeEvent class that has all the same capability as the CompositePresentationEvent class in Prism2, but is not tied to the WPF libraries at all. For the UI thread dispatching capability, it uses the SynchronizationContext class (which is used under the covers by both WPF and Windows Forms, so this class will also work with WPF).

A SimpleUnityBootstrapper class that removes the tie to WPF in the bootstrapper by removing the creation of the shell and the region adapter stuff.

The  code also include a sample Windows Forms application that uses the extensions to load a module and fire and handle pub-sub events. As mentioned in the original post, I also demonstrate a simple way of using the DI container (Unity in this case) to achieve a Region-Manager like UI composition ability in Windows Forms.

Check it out and let me know if you have any feedback.





Wednesday, April 22, 2009 7:34:08 PM (GMT Standard Time, UTC+00:00)
Comments [4]  | 


  Thursday, March 05, 2009

TFS Build Node Problem Fix

Yesterday (in the midst of trying to get some builds done to get to a release), the Build node of my Team Explorer window for all Team Projects under my main user account went stupid and was displaying a red X for unavailable. Very frustrated, I did some searching and found very little other than one post suggesting that killing my user account and recreating it from scratch would clear the problem. That would also have cost me hours of reconfiguring other programs and settings that are customized under my account, so I dismissed that.

Based on that though, I went and created a separate user account and was able to run builds from there and switch back and forth with Switch User to get through the day.

The sweet thing was that when I fired up VS 2008 this morning and went to Team Explorer with no project loaded, I noticed a bunch of stuff get spit into my output window. Looking closely, it was a nice little error message from Team System telling me the BuildPackage was not being loaded due to previous errors, and if I wanted to have it try again, just launch VS from the command prompt with the following line:

devenv /resetskippkgs

Worked like a charm and my environment is totally happy again.

You gotta love software that detects its own problems and suggests simple things that actually work to fix it.

Well done VSTS team!





Thursday, March 05, 2009 2:37:31 PM (GMT Standard Time, UTC+00:00)
Comments [3]  | 


  Thursday, February 26, 2009

Prism 2 Bits Refresh

Update: Great post by Julian Dominguez from the Prism team here that tells exactly what files changed in case you just want to update those in your source control: http://blogs.southworks.net/jdominguez/2009/02/prism-20-download-bits-refreshed-whats-changed/

In case you have already jumped on downloading Prism 2 (Composite Application Guidance for WPF and Silverlight) when it released about a week ago, time for you to go get some fresh bits. There were a couple of minor issues that have been fixed and the download links now have the updated code behind them.

So remove what you have for Prism 2, go to the download links and get the latest.

In WPF the main thing affected was that certain containers, TabControl in particular, did not bring their View to the foreground with an Activate call on the region. There was also a build issue for Silverlight projects that was fixed.

So go get yer fresh hot bits!





Thursday, February 26, 2009 10:53:40 PM (GMT Standard Time, UTC+00:00)
Comments [6]  | 


  Sunday, February 08, 2009

Avoiding Login Dialogs with TFS Remote Access

I’ve been working on a project for a remote customer for a number of months and something that constantly bugged me is the way TFS wants you to log in every time you open your solution or fire up Team Explorer. Unlike other login dialogs in Windows and Internet Explorer, the one presented by TFS does not have the magic checkbox to “Remember my password”. But at some point I did something on one machine and it stopped asking and was logging me in automatically if I was online. Excellent! Now how to get it to behave the same on my other two dev machines?

I did a little thinking and realized that TFS just uses HTTP Web Services for it remote access. The team project I was working on was using SSL and a particular port, lets say it was 8089.

So I just fired up the browser, hit http://tfs.somecompany.com:8089 and I got the standard IE login dialog which does have the Save password checkbox. Checked that box, got and error of course because the web service is not designed to be used from the browser, but now whenever I hit the team project in VS through opening the source controlled solution or opening Team Explorer, viola it logs me automatically now.

10 seconds of effort on any machine to avoid the repeated hassles of logins. Nice.





Sunday, February 08, 2009 9:42:23 PM (GMT Standard Time, UTC+00:00)
Comments [1]  | 


  Sunday, January 04, 2009

Arabic-English Encyclopedia of Computer and Internet Terms

If you work with any colleagues who read and speak Arabic but are still getting up to speed on technical terms in English, you should have them check out a book written by a friend and neighbor of mine:

Encyclopedia of Computer and Internet Terms, by Dr. Alam E. Hammad.

It has the technical terms in English and the explanation in Arabic.

Should be a great reference for Arabic speakers to have handy.





Sunday, January 04, 2009 9:17:07 PM (GMT Standard Time, UTC+00:00)
Comments [1]  | 


  Friday, January 02, 2009

.NET Technical Forecast 2009

Beginning of the year is always a good time for reflection and speculation on what is to come, so I thought I would put a few thoughts out there on what the technical forecast for 2009 looks like to me. I'll do it in the context of some of the key technologies I work with on a regular basis.

WCF: Because this got great adoption from the outset, I don't see a huge change in the rate of adoption of WCF. What I do see is more and more use of the REST programming model that came available in .NET 3.5. Unfortunately, I predict that more people will end up using that model instead of SOAP-based messages than probably should, just because it has the hype right now. REST makes a lot of sense for externally exposed, resource-oriented services to put a minimum bar for consumption of data out there. For secure, reliable enterprise services though, you need the additional protocols that the WS-* stack gives you. Consumption of a SOAP based service is also still far easier due to simple code generation of the proxy. So internal services should still be using SOAP in my opinion, but REST makes perfect sense for public exposure of data, whether read only or read-write.

Cloud Services: With the Azure platform announced and PDC, the .NET Services piece of that which has been available for a while in CTP form in its previous incarnation as "BizTalk Services", third party vendors building lots of cloud-like services, expansion of the mobile application market with the explosion of iPhone and the chasing touch devices out there, cloud services will certainly grow in importance and early adopter attention, but since a released Microsoft variant will not come until possibly the very end of 2009 or early 2010, most production projects will probably not accept the risk of building against the platform for at least 6-9 months.

WF: One word: hesitation. WF has had very low adoption as it is because it requires a pretty significant shift in the way you think about designing your systems as well as how you go about that. Couple that with a number of rough edges in the programming model and the fact that you have to build a fair amount of infrastructure around your solution to run it effectively in production, and you can understand the slow adoption. It is still a vary rich platform for building complex business applications, but certainly can use some improvement. The good news is, that improvement is coming in .NET 4.0, in a big way. At an SDR I attended in the Spring of 2008, I commented to one of the product team members that I was very pleased because they were fixing or improving every single aspect of the WF model that causes difficulty for me or my customers with the current version. The bad news is that to do that, they are making some pretty sweeping changes in the programming and even hosting model of WF. That doesn't mean that you will have to rewrite anything you build today, there is an easy interop story to run 3.5 workflows and activities in the 4.0 model. But it does mean that if you start building on 3.5 now, you will have to learn a set of skills that you will then have to relearn in about a year to start building things the new way. It is not 100% relearning of course, but the changes are sweeping enough that I would guess that 60-70% of the time you spend on the workflow part of your application will be done at least slightly differently in 4.0 than in 3.5.

WPF: Adoption should start to take off more than it has in 2008 due to a combination of factors. One of the impediments are the tools, and those are not going to change substantially until VS 2010 comes out (don't know if that will be its name, but it is reasonable speculation to guess that). However, a bigger impediment has been the learning curve, and having companies willing to bite the bullet to acquire those skills. Competitive pressure, both for the companies and the developers themselves, will continue to mount quickly though as more companies ship nice looking WPF apps that demonstrate the ways you can substantially alter the user experience by using WPF. That will help force people to learn the WPF way of doing things to stay competitive. The other factor is Silverlight adoption. With rapidly growing interest and adoption of Silverlight, companies will quickly realize that the skills investment in either WPF or Silverlight cascades to a large degree into the other technology, so that will allow them to build the best kind of app for their users without needing to master two completely different UI skill sets. And finally of course, the closer we get to better tools, the shorter the period of productivity hits you will have to endure by being on WPF, so that barrier becomes less as well.

Silverlight: Although there have been some media hits with a public announcement of dropping Silverlight, there have been many more success stories out there due to Silverlight 2, and I think people are really seeing the light there. Some stuff still belongs in web pages and web forms. But for rich interactive applications that are web delivered, you can't beat Silverlight as a platform when you are a .NET developer. Add to that all the cool new stuff coming to enhance Silverlight development in .NET 4 and VS 10, and you have even more reason to make this a first consideration for any interactive web application. The only caution is similar to what I said about REST services. Don't overuse Silverlight just because it is the shiniest new toy. WPF or Windows Forms smart client apps still make sense for a broad assortment of internal corporate type applications.

Economic impacts: OK, the market sucks and we are all feeling the impacts in one way or another. But the fact is that the world already runs on software. And short of a total global economic collapse, we can't stop making or at least maintaining software. So I think there is room for plenty of work in our sector even if things get bad. And if you can align yourself with markets that are doing well, then you should be able to weather the storm.

So that is about it. Nothing too startling or earth shaking there. But a view through my eyes based on what I see from working with lots of customers around the globe.





Friday, January 02, 2009 3:32:24 PM (GMT Standard Time, UTC+00:00)
Comments [1]  | 











Ads by Lake Quincy Media









Sign In
Copyright © 2006-2007 Brian Noyes. All rights reserved.
Advertise on this site through Lake Quincy Media
designed by NUKEATION STUDIOS