Browse by Tags

All Tags » .NET

Using derivated Exception classes for better error handling

One defect that I’ve been finding once and again in the past doing .NET projects is a bad exception handling strategy. Too many times I’ve seen code that just places a generic try { … } catch(Exception ex) { … } code block to capture errors. And of course...
Posted by Kartones | 4 comment(s)

Obtaining Gravatar images

Gravatar is a website that, after registering and adding an email, allows you to set an avatar (image) associated to that email, so that sites that query them for gravatar images will return your same image to all of them. Although Community Server doesn...
Posted by Kartones | with no comments
Filed under: , , ,

Avoiding the break statement

Some coding guidelines and best practices advice against the use of continue and break statements. With continue the solution is easy, placing an if (or if it existed to call continue , negate it to execute the code). But with break , it is not always...
Posted by Kartones | 5 comment(s)

ASP.NET: Flushing files to browser with Response.AddHeader()

This post should be nothing new for people used to ASP.NET 2.0 or higher, but at my last job I had to fix a summary download page that was not flushing correctly the content to the browser (it appeared as downloading the .aspx page instead of a csv file...
Posted by Kartones | with no comments
Filed under: , ,

ASP.NET: Split AppSettings and ConnectionStrings to separate files

This is a simple yet not always known "trick". We usually have in our ASP.NET Web.Config files the app settings variables and connection strings: < appSettings > < add key = " MyAppSetting1 " value = "" /> <...
Posted by Kartones | 3 comment(s)
Filed under: , ,

Working with PHP, six months later

Now that I’m back from a small vacations, time to get back to blogging too! A bit more than six months ago, I changed once again where I work , but this time it was not only a new company, but a new world, with PHP as the flagship. Six months later, I...

KartonesNet CS2007 Addon Pack 1.3.3

This small revision of the CS2007 Addon Pack just contains two improvements: TwitterAutoPostingAddon and UserTwitterAccountPostingAddon modules have been refactored. Now both use the same helper class (“Tweeter”), which does better handling of Twitter...

Resource exhaustion and other uncommon testing scenarios

The idea of this post and part of the contents are from the fantastic book The Pragmatic Pogrammer . We don't usually test for most of the following resources: Anti-virus software : Some of them have aggressive heuristics that can confuse a binary...

Your worst enemy: Ignorance

This post will surely appear as a flame for some people, but I can’t avoid talking about it now that I work in a very heterogeneous workplace and I’m part of the smaller slice of Windows users. It started being funny, being asked things like “but Microsoft...

Kartones.Net CS2007 Addon Pack 1.3.2: Lightweight + Visual Tags

In my last release of this Community Server 2007 pack I added a lightweight list of all posts, but it wasn’t the only optimization I had in mind to do small speed increases on blog page loads. Two new controls I’ve just finished are a readonly tag list...
More Posts Next page »