Joel's SharePoint Architect Blog

SharePoint 2013 Training, Architecture, Administration and Development

Subscribe Subscribe  View Joel Jeffery's profile on LinkedIn
joelblogs.co.uk | joelj.co.uk | joeljeffery.co.uk | jfdiphoenix.co.uk

Posts Tagged ‘C#’

PDC10: The Future of C# and Visual Basic

Asynchronous vs. Synchronous Programming

Anders Hejlsberg at the PDC10

I really wish I’d managed to go to the Microsoft Professional Developer Conference this year. Luckily a lot of the sessions were recorded.

In this video Anders Hejlsberg, the godfather of C# and all things .NET, gives a concise history lesson of the .NET platform, followed by a look at some of the new things C# and VB.NET have in store for asynchronous programming techniques.

Asynchronous techniques are becoming more and more commonplace – JavaScript, Silverlight and many other platforms are starting to gain async-only APIs for some of their functionality.

One example that’s close to my heart is the SharePoint 2010 Client Object Model. This comes in three flavours – .NET, Silverlight and JavaScript. Although the .NET and Silverlight ones support both synchronous and asynchronous, it’s a good idea in most scenarios to forget about the synchronous methods. In fact, the beta of the Silverlight version of the API, only had asynchronous exec methods. After all, what’s the point of going to the trouble of using responsive, client-side technologies like Sliverlight or JavaScript, and then writing synchronous code that blocks the UI?

Asynchronous methods are also worthwhile on server-side code. Clever usage can mean that server response threads are able to deal with more incoming requests.

Technorati Tags: C#, Development, Microsoft .NET, Programming, Visual Basic

Windows 7 Applications with WPF, C# and MFC/C++

Since managed code made its appearance about a decade ago, I’ve not touched MFC or C++. For business applications or just for applications that look great, writing code in MFC/C++ seemed to be doing things the hard way. A few weeks ago at a TechDays event, I got the chance to see that the unmanaged code world hasn’t been standing still either.

We’ve had Windows Presentation Foundation and Silverlight for a few iterations now. Windows 7 comes with even more of these APIs as standard, which you can use to give your applications the distinctive Windows 7 look and feel.

Whilst managed languages in .NET have had excellent support for developing shiny applications for a while (Paint.NET is a great example of this, go ahead and download the Paint.NET source code!), unmanaged C++ and MFC has lagged behind in the tools department for too long.

Visual Studio 2010 changes this.

If you’re a C#, WPF or Silverlight developer, then you’ll be anxiously awaiting the WPF 4.0 Windows 7 and Office Ribbon Control, which is not yet released. Scott Guthrie as a long-standing article on the out-of-band WPF 4.0 controls package.

At a Microsoft TechDays UK event at Reading last month, Jason Zander the Visual Studio 2010 general manager, went through many of the new features in the platform.

In the video below, Jason walks through the steps to upgrade an old MFC application, with a distinctly 1990′s feel, to use the up-to-date look and feel of Windows 7.

There’s a lot of copy and paste of MFC and C++ code in this video. Looking at all the steps MFC and C++ guys have to go through, I’m quite happy my C++ days are over. Even though there’s a lot more help for C++ in the IDE these days, it’s still seems a very pedestrian way of cutting code. At least you’ve got Ctrl-Comma to launch Intellisense in the IDE.

MFC Class Wizard

One feature missing that was removed in the 2008 release of Visual Studio was the MFC class wizard, so you can’t say they don’t listen!

Jason also shows how you can access some of the animation subsytem in unmanaged code. This is so much easier in WPF and C#.

The nice people at VivaMind have build this splendid WPF sample to show the tree of WPF documentation samples available on MSDN.

Technorati Tags: C#, MFC, Videos, Visual Studio 2010, WPF

C# / .NET Client API for Facebook Data Store

I’ve just released a (basic, but better than nothing) wrapper for the API. The source code is up on Codeplex, and you can download it at the following here:

http://www.codeplex.com/facebookdatastoreapi/

Feel free to leave feedback, feature requests and issues/bugs.

Cheers,

joel

Technorati Tags: C#, Codeplex, Facebook, Facebook API