Archive for the 'Tips' Category
In this article I link to two excellent articles on the subject of hiring coders. They’re not new by any means, but if you haven’t read one or both of them, I thoroughly recommend them. (If you’re familiar with both these writers, then skip this article.)
January 10th, 2010 | Posted in Links, Opinion, Tips | No Comments
One of the “anti-patterns” I come across from time to time is over-use of enumerations for control flow. This article describes why I consider it an anti-pattern, and how to counteract it.
December 1st, 2009 | Posted in Coding, Opinion, Tips, Tutorials | 3 Comments
In this article I describe how to create shaped buttons in HTML/CSS that size to their content, have roll-over state, and require only a single image, using jQuery.
September 2nd, 2009 | Posted in Design, Experiments, JavaScript, Tips, Tutorials | No Comments
I wrote an article about this problem a while back – but it seems that the fix is relevant to more than just 64-bit installs of Vista, so I thought I’d re-release it in the hope that it reaches and helps a few more people.
July 10th, 2009 | Posted in Tips, Tutorials | No Comments
One thing I was told as a young programmer was to make good use of assertions for checking code. As time goes by however, I can see less and less use for assertions. I’m starting to think they’re pretty useless.
June 10th, 2009 | Posted in ASP.NET, Coding, Experiments, Links, Opinion, Tips | 6 Comments
Usually, you don’t want the browser doing any kind of caching on dynamic content served from a generic handler (.ASHX) in ASP.NET – afterall, the content is usually changing (dynamic). Sometimes however, it’s handy to use a handler to serve content that effectively never changes. Here’s how.
May 1st, 2009 | Posted in ASP.NET, C#, Coding, Tips, Tutorials | 4 Comments
Out of the box, Visual Studio uses the Courier New font for displaying code. While that’s an acceptable font for programming, it’s hardly modern or easy on the eye. Did you know that Microsoft supply a much more readable alternative, for free?
April 16th, 2009 | Posted in Coding, Opinion, Tips | 12 Comments
Recently I needed to display rotated graphics within a web-page. Since there’s no way to do that cross-browser using CSS, I needed to auto-generate a collection of pre-rotated images that could be displayed as CSS sprites. I’ve found that WPF (Windows Presentation Foundation) is great for generating batches of images suitable for use in web [...]
April 10th, 2009 | Posted in C#, Coding, Experiments, Tips, Tutorials | 2 Comments
Internet Explorer 8 (IE8) has now been released to the public, and while it’s not enough to shift me from Firefox, I’m happy that it offers standards-compliant rendering and a useful “compatibility view”, meaning that web developers can essentially test on IE7 and IE8 without needing virtual machines. Unfortunately, when installed on 64-bit Vista (x64), [...]
April 1st, 2009 | Posted in ASP.NET, EasyAs123Web.com, Links, Tips, Tutorials | 11 Comments
Closures are a really useful programming construct, but as they’re only just appearing in the C-family languages, they’re relatively new to me. In this article I show how they can be used to vastly simplify event-handler code in web development.
February 20th, 2009 | Posted in ASP.NET, C#, Coding, Tips | No Comments