My Blog

  Home  |   Contact  |   Syndication    |   Login
  8 Posts | 0 Stories | 17 Comments | 0 Trackbacks

News

Archives

February 2010 Entries

Update: I have updated the repository to include references to Fubu's Dlls instead of copying their code directly. Here’s something fun that I’ve been playing with. A few weeks ago I saw Jeremy Miller’s post “Shrink your view’s with FubuMVC’s Html conventions” and knew I had to have this functionality in my Microsoft MVC applications. I pulled the source and started writing an adapter to make it work. I hope the FubuMVC guys don’t mind that I’ve borrowed some of their hard work. What are Html Conventions?...

While my home development computer is fried I’m going to hack away at my backlog of non-code related posts. Today I’d like to discuss some of the advantages and disadvantages of using Microsoft MVC over WebForms. First of all, MVC is not the end all, magical platform that many people would like you to believe. In fact I wouldn’t even recommend it to beginner developers. However, if you have experience with .NET and you’re willing to put in the time to learn how MVC works, you will find that it offers...

Here is an example of a case in which I wanted to overload a Spark macro to display two input elements in one table row. <table> !{Row(x => x.Name)} !{Row(x => x.Description)} !{Row(x => x.Price)} !{Row(x => x.SaleStartDate, x => x.SaleEndDate)} !{Row(x => x.SaleDiscount)} <tr> <td></td> <td>!{Html.SubmitButt... </tr> </table> <macro name="Row" expression="Expression[[Fun... object]]]]"> !{Row(expression,...

I was recently having a discussion with @tyarmer and @g0t4 about what is necessary to sufficently test a method that determines the previous business day. There are quite a few unique scenarios that can come up. Here are a few: On a weekend, you should get Friday, unless it’s a holiday. On a Monday you should get Friday, again unless it’s a holiday If a day is holiday you should get the day before, unless that’s a holiday and a weekend And so on… Obviously there’s a bit of a pattern here I suggested...