Archive for the 'Coding' Category
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 [...]
January 29th, 2009 | Posted in ASP.NET, Coding, Tips, Tutorials, c# | No Comments
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:
January 25th, 2009 | Posted in ASP.NET, Coding, Tips, Tutorials, c# | 2 Comments
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 [...]
January 20th, 2009 | Posted in Coding, Opinion, Tips | 68 Comments
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:
December 23rd, 2008 | Posted in Coding | 50 Comments
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, [...]
December 18th, 2008 | Posted in Coding, Tips, Tutorials | 4 Comments
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.
December 4th, 2008 | Posted in Coding, Experiments, Opinion, c# | 7 Comments
(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 [...]
December 3rd, 2008 | Posted in Coding, Experiments, Opinion, c# | 18 Comments
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 [...]
November 27th, 2008 | Posted in Coding, Tips, Tutorials | 22 Comments
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 [...]
November 26th, 2008 | Posted in Coding, Opinion | 4 Comments
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 [...]
November 6th, 2008 | Posted in Coding, Links, Opinion | 99 Comments