Geeks With Blogs

News

My Blog
A while back I wrote about using a semantic model for HTML generation. Today I finally got around to posting our (Phoenix Web Group) extensions for Fubu's HtmlTags library online. The code can be found here. We added a bunch of missing tags and some extention methods to help make working with nesting and tables easier. (We prefer using params parameters ......

Lately I've been using JBar, a very neat jQuery plugin for displaying notifications in my web applications. Unfortunately the original version of JBar only supports binding to the click event of a DOM item. In order to get around this limitation I have modified the source code and posted an updated version on my GitHub account here. The modified version ......

Goals Create a class that associates a numeric quantity with a unit of measurement. Provide support for simple arithmetic and comparison operations. Implementation An immutable class (Could have been struct but I may try inheritance later) Unit is stored in an enumeration Supported operations: Addition w/ like units Subtraction w/ like units Multiplication ......

In this post I look into the code smell that is HTML literals and show how we can refactor these pesky strings into a friendlier and more maintainable model. The Problem When I started writing MVC applications, I quickly realized that I built a lot of my HTML inside HtmlHelpers. As I did this, I ended up moving quite a bit of HTML into string literals ......

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 ......

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 ......

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... ......

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 ......

Copyright © Ryan Ohs | Powered by: GeeksWithBlogs.net | Join free