What’s the best way to name a css class: form-field-label or bold-text? Is there any difference between MVC’s EditorFor and TextBoxFor? Or between a DetailedRowText property and ArticleDescription? For all the cases, there is a difference. The first one is naming by purpose and the other naming by effect, or what it actually does. Even… Continue reading Naming by Purpose or by Effect
Category: Web
More on this in JavaScript
There’s more to this in JavaScript than I showed last time. Time for more details on methods, closures and the global object. This is a direct continuation of the this in JavaScript vs C# post. If you haven’t already read it, I suggest that you read it before continuing here. More on Methods Last time… Continue reading More on this in JavaScript
this in JavaScript vs C#
Coming from C#/C++/Java, the usage of the this keyword in JavaScript is confusing. This is my attempt to explain it, in C# terms (with C# being very close to C++ and Java). I’ve thought of writing this post a long time, but it’s just now, when reading JavaScript: The Good Parts that I’ve finally understood it… Continue reading this in JavaScript vs C#
Prevent Page behind JQuery UI Dialog from Scrolling
I love jQuery UI dialogs. I hate when scrolling the dialogs’ content to the bottom starts scrolling the page underneath, moving the dialog off screen. With some smart structure of the page’s html, that can be avoided. First, let’s show the problem. This is a basic page with a jQuery UI dialog shown. The dialog… Continue reading Prevent Page behind JQuery UI Dialog from Scrolling
Using a Bit of Luck to Track Down CSS Parse Errors in IE7
This post is written by guest blogger Albin Sunnanbo. He’s a great friend and source of inspiration and also one of the best developers I know. It was Albin that first introduced me to LINQ, EF Migrations and jQuery that I now use daily. Recently I had trouble with Twitter Bootstrap in IE7. We had recently… Continue reading Using a Bit of Luck to Track Down CSS Parse Errors in IE7