Articles : Page 1 of 2

  • OSS and .NET Year In Review 2011

    OSS and .NET Year In Review 2011

    Dec 11
    26

    T’is the season for “Year in Review” and “Best of” blog posts. It’s a vain practice, to be sure. This is exactly why I’ve done it almost every year! After all, isn’t all blogging pure vanity? Sadly, I did miss a few years when my vanity could not overcome my laziness. This year I am changing it up a bit to look at the intersection of open source software and the .NET community in 2011. I think it’s been a banner year for OSS and .NET/Microsoft, and I think it’s only going to get better in 20...


  • How to access controller methods from a view in ASP.NET MVC

    How to access controller methods from a view in ASP.NET MVC

    Jul 11
    30

    This question has been posed in several places. One of the places is on StackOverflow here. The use case here is that my controller has important state or an important function, and I’d like to leverage it from the view. It’s not appropriate to factor out to an html helper or other view-based utility class. It is something unique to the controller. It would be very easy to just pass the controller over to the view so that the view could make use of its methods, but there is a lot of discussion...


  • Are you Mocking Me?

    Are you Mocking Me?

    Jan 11
    15

    Jimmy has had a couple posts (mocks, mocks, and less mocks) that prompted Derick to post this on his experience with tests Id like to add my thoughts to mix. First, let me say Im not offering an answer to Dericks question (sorry Derick), simply some ideas to consider. If they help you, great. If not, please join the mix. Not All Tests are created equal If I told you there are only X types of programs you can write to solve any problem and they could only be created a certain way, etc. youd ...


  • Best of 2010: top 5 most popular posts

    Best of 2010: top 5 most popular posts

    Dec 10
    22

    This is the time of the year when people start looking back at the year that is about to end, and drawing conclusions. I will come to my “personal” considerations in a future post, reviewing my 2010 resolutions, but for the moment I want to share with you my top posts of 2010. The most popular post of 2010 1. Lucene.Net needs your help (or it will die) – Unfortunately it didn’t help Lucene.net get a new set of contributors (at the time of writing they didn’t comply to the conditions set b...


  • These Times, They Are A-Changin

    These Times, They Are A-Changin

    Oct 10
    20

    Warning, serious rant ahead, get yourself a cup of coffee and relax... C# has been my bread and butter for quite some time, and before that it was Delphi. And you know what, I loved Delphi. It was a powerful language, one which was fast and relatively easy to develop in. I wrote Delphi code for years and enjoyed it. As the .NET platform was taking off I started to take a serious look at C# because it seemed like the most obvious jump from Delphi for what we were doing, which was writing Wind...


  • A quick primer on .NET web frameworks

    A quick primer on .NET web frameworks

    Aug 10
    25

    I’ve received quite a few questions in the past months and year about web frameworks for .NET (some confusion around the difference between WebForms, ASP.NET MVC, FubuMVC, ASP.NET in general, etc). So I thought I’d make a quick blog post giving some real basic explanations of these frameworks, what the intended audience is for each, and what the strengths and weaknesses are of each. Note: This is not an exhaustive list. It does not include all the frameworks that are out there. There are man...


  • 13 books for a .NET Summer reading list

    13 books for a .NET Summer reading list

    Aug 10
    16

    As last year, before going on holiday I’m list some of the books that are in my reading list. It’s not entirely about .NET book, but will also cover other languages not related with .NET development at all, like Scala or Arduino. JavaScript and jQuery I think JavaScript is still the most unknown language among all the ones used to write web applications: mostly due to the fact that it lives in the limbo between developer and designer. JavaScript: The Good Parts It seems incredible, but I ...


  • The Software Craftsmanship Club

    The Software Craftsmanship Club

    Jul 10
    01

    That's right, I started a club! It happened somewhat suddenly after the last Austin Code Camp. We were sitting outside on the patio, either discussing about various subjects or listening to one of Scott Bellware's mad genius rants. The sun was going down and the temperature was very comfortable, despite having had eaten too much food. With slightly weakened inhibitions, due to a few glasses of beer, I started talking about my quest to become a master craftsman. But I knew I wouldn't do it by m...


  • Extending NerdDinner: Adding MEF and plugins to ASP.NET MVC

    Extending NerdDinner: Adding MEF and plugins to ASP.NET MVC

    May 10
    20

    The original NerdDinner Sample was very simple. Two samples, simple, in fact. Perhaps it's the new Northwind, as it's a good way to start working with ASP.NET MVC. However, it's not a perfect sample or an idealized example on how to do many things that users want to do. Fortunately, there's been lots of cool folks in the community who have forked NerdDinner and done interesting stuff with it. Each of these samples is usually focused on a specific scenario, so they won't necessarily be merge...


  • How to Build a Custom View Engine with Theme Support

    How to Build a Custom View Engine with Theme Support

    May 10
    16

    All good blogging platforms have theme support. So while working on WeBlog I initially implemented theme support by using a base controller class. The base controller class was responsible for dynamically setting the master page at runtime. I did this by assigning the action’s MasterName property in the OnActionExecuted event. Here is a short snippet of code which outlines the process. public class BaseController { protected override void OnActionExecuted(ActionExecutedContext filterContext)...