﻿<?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 It is a matter of style...</title><description>That was for the NON C++ comment, actually, and it was the variable placing that gave the hint.
</description><link>http://ayende.com/2593/it-is-a-matter-of-style#comment7</link><guid>http://ayende.com/2593/it-is-a-matter-of-style#comment7</guid><pubDate>Tue, 26 Jun 2007 17:48:43 GMT</pubDate></item><item><title>Pierre Henri commented on It is a matter of style...</title><description>For the C++ comment, is it because he didn't use the ternary operator?
  
Or because he used an output parameter instead of a return value?
  
</description><link>http://ayende.com/2593/it-is-a-matter-of-style#comment6</link><guid>http://ayende.com/2593/it-is-a-matter-of-style#comment6</guid><pubDate>Tue, 26 Jun 2007 17:46:15 GMT</pubDate></item><item><title>clayton collie commented on It is a matter of style...</title><description>there was a spell a few years back where i was contributing to an opensource project (in c), consulting on a Delphi project (Pascal), while doing C# for some personal work.
  
  needless to say, it was confusing keeping my code from looking confused...
</description><link>http://ayende.com/2593/it-is-a-matter-of-style#comment5</link><guid>http://ayende.com/2593/it-is-a-matter-of-style#comment5</guid><pubDate>Mon, 25 Jun 2007 16:02:28 GMT</pubDate></item><item><title>Frans Bouma commented on It is a matter of style...</title><description>as a person who is raised with assembler and C, I had to look very carefully before I saw the issue :) (I first thought: it's the 'GetValid/InvalidTotalCars method which should 1 method with a parameter ;)). It's indeed something one has to work on really hard to get rid of, it took me several years before I got used to declare things when I first needed them instead of at the top of the method. 
  
  
And then you run into a try/finally clause and you have to declare the variable OUTSIDE the try to be able to access it in the finally block :(
</description><link>http://ayende.com/2593/it-is-a-matter-of-style#comment4</link><guid>http://ayende.com/2593/it-is-a-matter-of-style#comment4</guid><pubDate>Mon, 25 Jun 2007 07:37:34 GMT</pubDate></item><item><title>Mats Helander commented on It is a matter of style...</title><description>Actually, Classic Basic coders do that too.
  
  
/Mats
</description><link>http://ayende.com/2593/it-is-a-matter-of-style#comment3</link><guid>http://ayende.com/2593/it-is-a-matter-of-style#comment3</guid><pubDate>Sun, 24 Jun 2007 23:30:58 GMT</pubDate></item><item><title>Ayende Rahien commented on It is a matter of style...</title><description>There _isn't_ any issue with the code samples. :-D
  
  
C programmers tend to put declarations at the top of the function, basically.
</description><link>http://ayende.com/2593/it-is-a-matter-of-style#comment2</link><guid>http://ayende.com/2593/it-is-a-matter-of-style#comment2</guid><pubDate>Sun, 24 Jun 2007 22:11:30 GMT</pubDate></item><item><title>MarkK commented on It is a matter of style...</title><description>As an enthusiatic young developer, I dont suppose you would kindly point out why you made the comments?
  
I confess I'm naive and dont see the issue with the code samples :)
</description><link>http://ayende.com/2593/it-is-a-matter-of-style#comment1</link><guid>http://ayende.com/2593/it-is-a-matter-of-style#comment1</guid><pubDate>Sun, 24 Jun 2007 22:06:18 GMT</pubDate></item></channel></rss>