﻿<?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>Ayende Rahien commented on Write the checkin comment, part II</title><description>Chris,
  
YES!
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment21</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment21</guid><pubDate>Mon, 26 Oct 2009 23:48:24 GMT</pubDate></item><item><title>Chris C commented on Write the checkin comment, part II</title><description>I would say there are two main parts to this, the first having already been mentioned and that is a service does not have a console to write the error message to.
  
  
The second is when running as a service re-throw the exception so that the service manager knows the app did not terminate correctly, when running from the command line you do not wish to re-throw the exception as it will cause the Microsoft error reporting dialog to show.
  
  
Though it is traditional when running from the command line, on an error to have a non-zero exit code.
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment20</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment20</guid><pubDate>Mon, 26 Oct 2009 22:18:19 GMT</pubDate></item><item><title>Stuart commented on Write the checkin comment, part II</title><description>Clearly what the code is doing is writing the exception to the logger, rather than to the console. I'd venture that the *purpose* is to decouple your code from the command line, or to make your code more suitable for a class library/server, rather than a console app. 
  
  
But this seems too obvious, so maybe I'm missing something..?
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment19</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment19</guid><pubDate>Mon, 26 Oct 2009 20:19:15 GMT</pubDate></item><item><title>meisinger2 commented on Write the checkin comment, part II</title><description>The inclusion of "log4net" is a simple change in that it is nothing more than a progression in development (e.g. the next step)
  
  
the "executionOptions.Action == Action.Server" is the more important change that indicates the "Host" program can now run as a Client or as a Server
  
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment18</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment18</guid><pubDate>Mon, 26 Oct 2009 17:33:51 GMT</pubDate></item><item><title>dave-ilsw commented on Write the checkin comment, part II</title><description>@Thilak Nathen - That's diff output, not complete code.
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment17</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment17</guid><pubDate>Mon, 26 Oct 2009 16:21:27 GMT</pubDate></item><item><title>Thilak Nathen commented on Write the checkin comment, part II</title><description>Does that even compile? You have a catch without a try. I don't know what those blue lines mean. I don't know what exception you're trying to rethrow. And yup, in the spirit of the post title... do write the check in comment.... please. 
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment16</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment16</guid><pubDate>Mon, 26 Oct 2009 12:28:04 GMT</pubDate></item><item><title>Joe commented on Write the checkin comment, part II</title><description>*Introduce Log4Net dependency
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment15</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment15</guid><pubDate>Mon, 26 Oct 2009 09:05:38 GMT</pubDate></item><item><title>Whut commented on Write the checkin comment, part II</title><description>I beleve that the lacking comment should describe why we started to simetimes(!) throw exception.
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment14</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment14</guid><pubDate>Mon, 26 Oct 2009 07:03:05 GMT</pubDate></item><item><title>jmorris commented on Write the checkin comment, part II</title><description>Are you trying to figure out if your audience is _really_ reading your posts? I am guessing you expect them not to be!
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment13</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment13</guid><pubDate>Mon, 26 Oct 2009 04:24:41 GMT</pubDate></item><item><title>Andrew commented on Write the checkin comment, part II</title><description>* Use log4net to handle error logging so that we can easily capture fatal errors when necessary (along with the timestamp of the exception)
  
* Re-throw the exception when we hit a fatal Server error as we would have arrived in an unusable state
  
  
Something like that :) 
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment12</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment12</guid><pubDate>Mon, 26 Oct 2009 02:54:18 GMT</pubDate></item><item><title>Andrew Sampson commented on Write the checkin comment, part II</title><description>Ensure that an error doesn't take down the service by trying to write to the Console (which doesn't exist for a Windows Service).
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment11</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment11</guid><pubDate>Mon, 26 Oct 2009 01:43:20 GMT</pubDate></item><item><title>Troels Thomsen commented on Write the checkin comment, part II</title><description>@Mr_Simple
  
  
I can't see why you can't do both. Keeping a tight structure will typically improve the overall quality as well as making your job easier.
  
  
It's not about remembering what you did yesterday. It's about documenting what you did five minutes ago. Unless you're a goldfish, that should be an easy task.
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment10</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment10</guid><pubDate>Sun, 25 Oct 2009 21:02:43 GMT</pubDate></item><item><title>Mr_Simple commented on Write the checkin comment, part II</title><description>@ Ayende 
  
  
I dont know about you, but I'd rather spend my time billing $$$ my clients than playing word association games trying to remember what the heck I programmed yesterday.
  
  
It's all about zero friction when you're paying your own way.
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment9</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment9</guid><pubDate>Sun, 25 Oct 2009 17:29:59 GMT</pubDate></item><item><title>Jarda commented on Write the checkin comment, part II</title><description>Throw only if error happens on a server...
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment8</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment8</guid><pubDate>Sun, 25 Oct 2009 17:26:38 GMT</pubDate></item><item><title>Justice commented on Write the checkin comment, part II</title><description>"Host program fails fast (rethrow) and loud (log) if an error occurs."
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment7</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment7</guid><pubDate>Sun, 25 Oct 2009 17:06:25 GMT</pubDate></item><item><title>Dmitry commented on Write the checkin comment, part II</title><description>I am not exactly sure what executionOptions are but it seems like the exception should only be thrown if it happens on the server. Otherwise, the code logs the exception and then swallows it.
  
  
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment6</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment6</guid><pubDate>Sun, 25 Oct 2009 15:52:24 GMT</pubDate></item><item><title>Ayende Rahien commented on Write the checkin comment, part II</title><description>Arne,
  
That is actually a very small (and relatively insignificant) change
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment5</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment5</guid><pubDate>Sun, 25 Oct 2009 15:18:37 GMT</pubDate></item><item><title>Arne Claassen commented on Write the checkin comment, part II</title><description>"Made error log collection configurable at runtime, rather than having it always puke to the console"
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment4</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment4</guid><pubDate>Sun, 25 Oct 2009 15:17:23 GMT</pubDate></item><item><title>Ayende Rahien commented on Write the checkin comment, part II</title><description>Mr_Simple,
  
That is the point of this post, to see if you can figure it out :-)
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment3</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment3</guid><pubDate>Sun, 25 Oct 2009 14:15:41 GMT</pubDate></item><item><title>Mr_Simple commented on Write the checkin comment, part II</title><description>I spent no more than 5 seconds looking at the code and wished the author had written a simple comment about what was suppossed to be happening.
  
  
Maybe that was too simple - or perhaps my brain is just too simple to understand.
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment2</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment2</guid><pubDate>Sun, 25 Oct 2009 14:10:57 GMT</pubDate></item><item><title>Frank Quednau commented on Write the checkin comment, part II</title><description>"Ensured I am able to get to see the darned error on startup even when the Prog is operated by a non-human user"
</description><link>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment1</link><guid>http://ayende.com/4267/write-the-checkin-comment-part-ii#comment1</guid><pubDate>Sun, 25 Oct 2009 11:14:07 GMT</pubDate></item></channel></rss>