Scott Hanselman

Hanselminutes Podcast 270 - Nancy, Sinatra and the Explosion of .NET Micro Web Frameworks with Andreas Håkansson

June 14, 2011 Comment on this post [4] Posted in ASP.NET | ASP.NET MVC | Open Source | Podcast
Sponsored By

Scott chats with open source developer Andreas Håkansson about his .NET micro web framework called Nancy which is inspired by a Ruby framework called Sinatra. Why do we need frameworks like this? What kinds of sites and services can they support and how do they relate to ASP.NET?

Links from the Show

Hello World Example

public class Module : NancyModule
{
public Module()
{
Get["/greet/{name}"] = x => {
return string.Concat("Hello ", x.name);
};
}
}

Download: MP3 Full Show

NOTE: If you want to download our complete archives as a feed - that's all 270 shows, please subscribe to the Complete MP3 Feed here.

Also, please do take a moment and review the show on iTunes.

Subscribe: Subscribe to Hanselminutes or Subscribe to my Podcast in iTunes or Zune

Do also remember the complete archives are always up and they have PDF Transcripts, a little known feature that show up a few weeks after each show.

Telerik is our sponsor for this show.

Building quality software is never easy. It requires skills and imagination. We cannot promise to improve your skills, but when it comes to User Interface and developer tools, we can provide the building blocks to take your application a step closer to your imagination. Explore the leading UI suites for ASP.NET AJAX,MVC,Silverlight, Windows Forms and WPF. Enjoy developer tools like .NET Reporting, ORM, Automated Testing Tools, Agile Project Management Tools, and Content Management Solution. And now you can increase your productivity with JustCode, Telerik’s new productivity tool for code analysis and refactoring. Visit www.telerik.com.

As I've said before this show comes to you with the audio expertise and stewardship of Carl Franklin. The name comes from Travis Illig, but the goal of the show is simple. Avoid wasting the listener's time. (and make the commute less boring)

Enjoy. Who knows what'll happen in the next show?

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
June 14, 2011 23:57
Pretty cool interview (good job moving the conversation along btw).

Anybody can create their own mini-framework to assist in the completion of whatever niche task the developer thinks is in dire need of a new solution, but I wish there was more expansion on the idea of Nancy as a service end point.

I know Microsoft realized a long time ago that there was going to be some cross over between WCF and ASP.NET MVC, but it seems like to do some simple RESTful POX services does require high "ceremony". Set-up of endpoints and actions can be easy once you have configured your WCF services site (but then you lose out on a lot of the cool things MVC offers). If you go with MVC, you really have to roll a lot of your own foundation coding to mimic some WCF goodies, so either way you have to do a lot to accomplish a task that can only be higher in demand these days with every client-sided coding library needing AJAX requests/JSON responses or just to expose data to alternative clients like handsets.

I do see value in a project that would permit rapid prototyping for RESTful services.
June 15, 2011 0:40
Agreed. That said, I think you'll see some cool integration between MVC and WCF in the coming months that will reconcile some of the goo. Those two groups all work for ScottGu now. ;)
June 15, 2011 13:50
@Ian & @Scott

Since Nancy can run on-top of WCF, you can still leverage a lot of the WCF stack "below" Nancy. See the beauty? ;)
June 15, 2011 20:42
I see what you did there! Nice and well-played!

Comments are closed.

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