Archive for the 'Coding' Category
I recently found StudioStyles, a collection of Visual Studio 2010 color schemes, and it inspired me to create my own. I’ve never bothered customizing my editor colors before, but since VS2010 has an overall darker look, I thought I’d have a bash at creating a matching dark editor scheme.
May 16th, 2010 | Posted in Coding, Design, Opinion | 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
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
You’ve been a coder for a few years now, maybe even decades. You’ve got a successful job, making enough money. You know the “respectable” technologies that the recruiters look for: C++, C#, Java, whatever. There’s no need to learn anything new. Stay in your comfort zone. Take it from these guys:
May 5th, 2009 | Posted in Coding, Opinion | 7 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, Coding, Tips, Tutorials, c# | 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 Coding, Experiments, Tips, Tutorials, c# | 2 Comments
If you’ve been reading this blog, you’ll know that I’ve been doing more and more JavaScript coding recently. One aspect that’s very different to C# coding is that there’s no explicit notion of ‘public’ or ‘private’ methods. This article explains my own journey towards implementing these concepts in JavaScript.
March 1st, 2009 | Posted in Coding, JavaScript | 6 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, Coding, Tips, c# | No Comments
I spotted a question over on StackOverflow the other day that piqued my interest – “How do you handle scheduling/deadlines around programmers?” – and I thought I’d note down my thoughts since I’ve noticed that a lot of people either confuse deadlines with estimates, or feel there’s some sort of battle between programmers and managers.
February 2nd, 2009 | Posted in Coding, Opinion, Tips | 12 Comments