Archive for the 'Coding' Category

Controlling Browser Content Expiration in ASP.NET

Correctly controlling content expiration is a tricky thing. You need to balance two goals: getting the browser to cache as much as possible to reduce page load times and bandwidth, versus not showing the user stale content. In this article I’ll cover a simple technique (with code) to solve this issue in ASP.NET for stylesheets [...]

How-To: Delete a cookie in ASP.NET

Deleting a cookie from ASP.NET is something that trips up a lot of people (myself included when I first started ASP.NET coding). Here’s how:

Sniff Out That Smelly Code

As time goes by, things go wrong with any body of code: we get lazy, bad developers contribute code, the original clean architecture gets forgotten, and so forth. Some bad code is easy to spot: it simply “smells” – once you see it, you know it’s bad. Refactoring this sort of code to remove the [...]

A Double Handful of Programming Quotes

I’m busy tidying up a few loose ends with work at the moment, before family arrive for Xmas – and I just haven’t have any time for in-depth articles. So instead of my own words, here’s a few of my favourites from other people:

Developing a jQuery Plug-In: Virtual Earth Maps

One of the really nice features of the jQuery JavaScript library is that it allows you to very easily write plug-in methods for it. Custom jQuery plug-ins are called by the end-user in exactly the same way as the core jQuery methods, and make use of the powerful querying syntax. On top of all that, [...]

LINQ-to-Entities: Follow-Up

There’s been a bit of discussion about my last article, “LINQ-to-Entities: The Blackberry Storm of ORMs?“. I thought I’d try to clear up a bit of what I was trying to say, especially with regards my statement about LINQ-to-Entities returning differing values depending on code order.

LINQ-to-Entities: The Blackberry Storm of ORMs?

(In case you missed the reference, the new Blackberry Storm has been widely slammed as an inferior copy of the iPhone, and was released basically unfinished to try to fend off its better rival). Note: the first part of this article is a bit of an opinionated rant – if you want to skip to [...]

A Developer's Introduction to jQuery

I’ve only been using jQuery for a couple of months now, but I’ve been immediately impressed by its power and concise syntax. I thought I’d present it from my (a developer’s) perspective. I come from a C# background, so this article will be written from that sort of point of view. I’ll start with an [...]

New Site Theme!

I’ve finally bitten the bullet and spent half an hour creating a new theme for this blog. The main content is wider; The code blocks are 50% bigger and hence easier to read; The header image is smaller so it won’t decimate my bandwidth limit; The page now looks more modern and fresh. What’s with [...]

Ten Web Development Tips I Wish I'd Known Two Years Ago

A couple of years ago I started doing more and more web development and web design, and less and less desktop development. Here’s a few things I wish I’d known then: 1. Use a Reset Stylesheet Different browsers are free to set default styles for font sizes, margins, and so forth. It’s a silly part [...]