﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>firefly commented on Production Errors Best Practices</title><description>I think consistency is the most important. As long as users know exactly where to look up the error every times they'll generally be happy. 
</description><link>http://ayende.com/3881/production-errors-best-practices#comment7</link><guid>http://ayende.com/3881/production-errors-best-practices#comment7</guid><pubDate>Fri, 20 Feb 2009 00:10:14 GMT</pubDate></item><item><title>Konstantin commented on Production Errors Best Practices</title><description>I would google for "Could not find order attribute with the name" - a piece of error message, not for useless and almost meaningless ID.
  
  
Googling for pieces of error message text gives you some flexibility in finding similar problems.
  
  
Also I think that error ID expressed in numbers like 0x99334422 are better because you don't have to think about naming the ID (which is just another area for programmer jokes).
</description><link>http://ayende.com/3881/production-errors-best-practices#comment6</link><guid>http://ayende.com/3881/production-errors-best-practices#comment6</guid><pubDate>Thu, 19 Feb 2009 20:26:09 GMT</pubDate></item><item><title>Ayende Rahien commented on Production Errors Best Practices</title><description>Rafal,
  
You ignore one very important issue.
  
Being able to lookup the error easily, and being able to trip it easily
</description><link>http://ayende.com/3881/production-errors-best-practices#comment5</link><guid>http://ayende.com/3881/production-errors-best-practices#comment5</guid><pubDate>Wed, 18 Feb 2009 13:37:38 GMT</pubDate></item><item><title>Rafal commented on Production Errors Best Practices</title><description>Simon, I agree with you. Occasional 'developer jokes' could be fun, but  not anymore if every message wants to be funny. Also, let's think who is the intended reader of these messages. If it's a developer or technically-aware admin, he will probably know that deployment went wrong and ordinary 'missing column XXX in table YYY' message would be sufficient. For other exceptions, it's a good practice to add some context information, for example name of the file or database table where the error occurred. Error codes, like ERROR_ORDER_ATTRIB_NOT_FOUND - don't work in my opinion and it doesn't make sense to give some code to every possible application error, especially when there is no other information available. Look at almost totally useless HRESULTS.
</description><link>http://ayende.com/3881/production-errors-best-practices#comment4</link><guid>http://ayende.com/3881/production-errors-best-practices#comment4</guid><pubDate>Wed, 18 Feb 2009 10:57:12 GMT</pubDate></item><item><title>Simon Labrecque commented on Production Errors Best Practices</title><description>Did you really put that last sentence in the deployed application? I wouldn't. I'm so tired of working with code containing stuff that the author thought was funny. It's NEVER funny, especially when you get an exception. This also applies to comments. Today, I came across a comment (in the linux kernel, mind you) which says "I see dead people", a reference to the movie "The sixth sense". Now, believe me, that part of code actually *needed* a comment, and all I got was that lousy reference. I guess it made some sense to the author. Not to me. (ok, the code was actually de-allocating some "dead" structures... but still).
  
  
I believe I have a very good sense of humor, but I just don't find those types of "jokes" funny. Not anymore, anyway.
  
  
To be fair, the rest of the post is incredibly useful in listing how to make sure an exception actually communicates information instead of just barfing uselessness ;)
</description><link>http://ayende.com/3881/production-errors-best-practices#comment3</link><guid>http://ayende.com/3881/production-errors-best-practices#comment3</guid><pubDate>Wed, 18 Feb 2009 01:47:19 GMT</pubDate></item><item><title>configurator commented on Production Errors Best Practices</title><description>I suggest you make the "not been properly prepared for the deployment" and "are also missing" bold and somehow highlighted because users may not read this rather long message...
  
  
Of course, that depends on what exactly causes the message.
  
</description><link>http://ayende.com/3881/production-errors-best-practices#comment2</link><guid>http://ayende.com/3881/production-errors-best-practices#comment2</guid><pubDate>Wed, 18 Feb 2009 01:39:40 GMT</pubDate></item><item><title>Duncan Godwin commented on Production Errors Best Practices</title><description>Its certainly much better than many of the standard KeyNotFound, DuplicateKey and NullReference style exceptions!
</description><link>http://ayende.com/3881/production-errors-best-practices#comment1</link><guid>http://ayende.com/3881/production-errors-best-practices#comment1</guid><pubDate>Wed, 18 Feb 2009 01:36:57 GMT</pubDate></item></channel></rss>