# Monday, 13 December 2010

Last week I spoke at the first ever Professional Developer’s Summit in Bucharest, Romania. I delivered a keynote titled: “Agile Development for three screens and the cloud.” The summary of the session is that you can use Agile development methodologies to aid your transition to developing on multiple platforms. I went over:

  • What Agile is, the Agile Manifesto
  • Scrum 101
    • Why I wear a Rugby Jersey when I speak about Scrum
  • Agile Estimation
  • The Cone of Uncertainty
    • A drinking game around the cone of uncertainty
  • Developing with remote teams
  • That Rugby has a position named after the US English slang for a prostitute: hooker
  • Agile uses at Telerik
  • How my friends use Wikipedia against me Winking smile

Slides are here:

posted on Monday, 13 December 2010 06:22:02 (Eastern Standard Time, UTC-05:00)  #    Comments [2] Trackback
# Wednesday, 08 December 2010

If you are creating OData or WCF services in your application and have been using the Telerik Data Services Wizard, things just got a whole lot easier. As I have shown before, you can go from File|New to a new CRUD application in 30 seconds using the wizard. With the Q3 release last month, Telerik gives you more control over the wizard and its output. Some of the new features are: the ability to isolate your service in its own project, the ability to select which CRUD methods gets created for each entity, and Silverlight data validation. Let’s take a look.

When you run the wizard, on its first page you now have the option, as shown here, to separate the service in its own class library. You can check the checkbox and type in a project name and the Data Services Wizard create the implementation files for the service in this new class library for you.

image

In previous versions of the wizard, the wizard would create all of the CRUD operations for you automatically. We received feedback from customers that said they would like more control over this process, allow some entities to be read only for example. The Q3 version of the wizard now allows you to select which CRUD methods to generate for each entity.

image

Lastly, if you choose the automatic Silverlight application generation, the wizard will read the database validation rules and replicate them as client side validation rules, saving you a lot of configuration and coding!

image

Enjoy the new wizard’s improvements!

posted on Wednesday, 08 December 2010 08:35:15 (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback
# Tuesday, 07 December 2010

If you are currently invested in LINQ to SQL and want to upgrade to Telerik OpenAccess ORM, with the new OpenAccess Q3 release you can do this quite easily. There is a new wizard included with OpenAccess that will automatically convert your LINQ to SQL classes to Telerik LINQ classes. Let’s take a look.

I’ll start with a simple project that has a simple LINQ to SQL model in it: Northwind.dbml. It is mapped to the Northwind database tables.

image

I created a simple web form that has a GridView on it. I decided that I would try to stump the wizard by writing a complex LINQ statement, one with aggregates, joins, sums, and projections to anonymous types. Then I take that code and bind it to the GridView. The LINQ code is shown here. 

   1:  //DataContext
   2:  NorthwindDataContext dat = new NorthwindDataContext();
   3:  //LINQ Query to Aggergate and Group by to an new type
   4:  var result = from i in
   5:                      (
   6:                      from c in dat.Customers
   7:                      join o in dat.Orders
   8:                      on c.CustomerID equals o.CustomerID
   9:                      select new { c.Country, o.Freight }
  10:                      )
  11:                  group i by new { i.Country } into g
  12:                  select new { g.Key.Country, TotalAmt = g.Sum(f => f.Freight) };
  13:              
  14:  //bind the results
  15:  GridView1.DataSource = result;
  16:  GridView1.DataBind();

Results are shown here:

image

 

Conversion time. Doing the convert is simple and done in place. Just right click on the LINQ to SQL model and choose “Convert From L2S Model to Domain Model” from the context menu.

image

 

This will bring up the OpenAccess Conversion wizard. In reality the wizard is one page. If you accept the defaults, the wizard will create a new RLINQ file (Telerik OpenAccess LINQ file) and give it the same Name and Namespace as the LINQ to SQL model. In addition, it will backup the old files.

image

 

Accepting all of the defaults and clicking next brings you to the confirmation page.

image

 

From here click Finish and the wizard will do its work. You will see a conversion report come up.

 

image

Now you will have a new OpenAccess Domain Model in your project.

image

 

Since your project now has two identically names LINQ classes, it is time to delete the LINQ to SQL class. (Don’t worry it is backed up.) Without changing any code in my application, I press F5 and the project runs, but now using Telerik OpenAccess.

Enjoy!

image

posted on Tuesday, 07 December 2010 08:56:30 (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback
# Monday, 06 December 2010

I recently wrote a piece in DevProConnections on the recent advances in ORM technologies. While I am still not a complete convert to ORMs, I think that they can play an important role in your application development toolkit. As time progresses and we abstract the database even more, ORMs will become more and more common. You can read the piece here.

posted on Monday, 06 December 2010 16:03:28 (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback
# Friday, 03 December 2010

Back at the PDC 2009 in Los Angeles, CA, Brian Goldfarb showed off the “Microsoft Silverlight Client for Facebook Beta”. It was released by Microsoft in early 2010 and had millions of downloads for both Windows and the Mac. Over the past few months, the Facebook app has been further developed by Telerik and is now available as the first official version under its new name: Telerik f!acedeck.

SNAGHTMLc83121

Telerik has taken over the application from Microsoft and will continue its further development and support as a free application for everyone to enjoy. Telerik f!acedeck delivers a superior experience to Facebook users and offers unique features: such as drag-and-drop from the local file system, access to the video camera,  instant loading and smooth scrolling of the Facebook wall, notifications and chat.

SNAGHTMLd71d44

Telerik f!acedeck Client for Facebook is immediately available from its original location on Microsoft’s website (http://www.silverlight.net/content/samples/apps/facebookclient) as well as from Telerik’s website (http://facedeck.telerik.com). The product is free and works on both Windows and Mac OS operating systems with the Silverlight 4 plugin installed.

Enjoy!

posted on Friday, 03 December 2010 07:37:31 (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback
# Thursday, 02 December 2010

Miguel Castro: Introduction to MVVM

Subject:
You must register athttps://www.clicktoattend.com/invitation.aspx?code=152298 in order to be admitted to the building and attend.
WPF overwhelmed us with the most powerful data binding ever released in a development platform. It seemed there was so much to learn in order to use it, but it really isn't that complicated. However, to use it to its full potential, you really do need to introduce the Model-View-ViewModel pattern. The ideas and goal around this pattern seem to vary from person to person, but the one thing that they all share is that it provides a point of binding for XAML pages. In this session, I'll show you what MVVM is and how to use it and what to put in it, in order to get maximum potential out of XAML binding. I'll even show you how to get a small MVVM Framework going for sharing across all your applications.

Speaker:
Miguel Catstro, IDesign
< Miguel Castro is an architect with IDesign with over 22 years of experience in the software industry. He’s a Microsoft MVP, member of the INETA Speakers Bureau, and ASP Insider. With a Microsoft background that goes all the way back to VB 1.0 (and QuickBasic in fact), Miguel has spoken at numerous user groups, code camps, and conferences throughout the US and overseas. He has also been featured on the technology talk shows, .NET Rocks, .NET Rocks-TV, Microsoft’s ARCast (Architecture Podcast), and The Polymorphic Podcast on numerous occasions. He specializes in architecture and development consulting and training using Microsoft technologies. Miguel is also a regular author with CoDe Magazine.

Date:
Thursday, December 16, 2010

Time:
Reception 6:00 PM , Program 6:15 PM

Location: 
Microsoft , 1290 Avenue of the Americas (the AXA building - bet. 51st/52nd Sts.) , 6th floor

Directions:
B/D/F/V to 47th-50th Sts./Rockefeller Ctr
1 to 50th St./Bway
N/R/W to 49th St./7th Ave.

posted on Thursday, 02 December 2010 10:06:12 (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback
# Sunday, 21 November 2010

While I was on the road this past month, I caught up with Richard and Carl and appeared on a show of .NET Rocks. The show is about design and developers and featured Scott Stanfield, Lino Tadros, and myself. You can listen here.

posted on Sunday, 21 November 2010 01:57:35 (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback
# Saturday, 13 November 2010

Thursday, November 18, 2010
Windows Workflow 4 - Patterns, Practices and Usages

Subject:
You must register athttps://www.clicktoattend.com/invitation.aspx?code=150257 in order to be admitted to the building and attend.
Everybody who writes code wants to build great software. If that software is a server application, part of being great is scaling well, handling large loads without consuming too many resources. A great application should also be as easy as possible to understand, both for its creators and for the people who maintain it. Achieving both of these goals isn’t easy. Approaches that help applications scale tend to break them apart, dividing their logic into separate chunks that can be hard to understand. Achieving this is a primary goal of Windows Workflow Foundation (WF). This session covers some basic concepts , windows workflow 4 architecure , its best patterns and usages.
Session Includes:
1. Workflow Architecture , business problems and technical case for using workflow.
2. Best Patterns and Practices.
3. Hosting using AppFabric and IIS , contract base routing.
4. Parallel Programming in Windows Workflow.
5. Workflow as a service model.

Speaker:
Navneet Srivastava, Emerging Health Information Technology
Navneet is lead architect and manager of engineers in the Product Development division of Emerging Health Information Technology, a subsidiary of Montefiore Medical Center in the Bronx. He oversees design and development of the breakthrough clinical intelligence application, Clinical Looking Glass, employing cutting edge Microsoft technologies and a host of best practices. In past positions, Navneet has developed other healthcare applications with national distribution.

Date:
Thursday, November 18, 2010

Time:
Reception 6:00 PM , Program 6:15 PM

Location: 
Microsoft , 1290 Avenue of the Americas (the AXA building - bet. 51st/52nd Sts.) , 6th floor

Directions:
B/D/F/V to 47th-50th Sts./Rockefeller Ctr
1 to 50th St./Bway
N/R/W to 49th St./7th Ave.

posted on Saturday, 13 November 2010 13:49:43 (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback