tag:blogger.com,1999:blog-15135700.post8400831764259070270..comments2012-01-28T03:50:21.920+01:00Comments on throws dotNetException: Size does matter!Runehttp://www.blogger.com/profile/00640836124811415245noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-15135700.post-60916430493199752382010-01-12T20:17:29.080+01:002010-01-12T20:17:29.080+01:00Hi Jake, Looks like Kernighan has written an inter...Hi Jake, Looks like Kernighan has written an interesting book on the subject. I will have to read that at some pointRune Juhl-Petersenhttps://www.blogger.com/profile/05658234442386749696noreply@blogger.comtag:blogger.com,1999:blog-15135700.post-20699493663961168582010-01-12T13:43:38.623+01:002010-01-12T13:43:38.623+01:00It's the good old discussion that can be very ...It's the good old discussion that can be very religious at times. Using curly brackets after or before a newline " \n" is a matter of ethics and beauty.<br /><br />I.e.<br /><br />#include <br /><br />int main()<br />{<br /> printf("Hej Verden!\n");<br /> return 0;<br />}<br /><br />Is far more ethic correct in my POV than:<br /><br />#include <br />int main() {<br /> printf("Hej Verden!\n");<br /> return 0; }<br /><br />Because I am no machine !<br /><br />BCPL was actually the first language to use curly brackets to outline multi-statement function bodies as one of many stylistic ways to format a program. STYLISTIC!<br />Hence the refereal to ethic and beautifully written code. When it comes to practical use it’s a matter of working with STYLISTIC code. 1TBS indent style as your style is called, can be as useful as any other. But again is a matter of STYLISTIC code. Beauty is everything. Have you ever seen Einstein's equations? They are so beautiful in style (and content)<br />By the way, I am more into Kernighan and Ritchie's style which was what I read in my first computer book The C Programming Language.<br /><br />The indent war has begun :)Jakehttps://www.blogger.com/profile/05506880719977270137noreply@blogger.comtag:blogger.com,1999:blog-15135700.post-60009631728560542382010-01-05T22:42:58.012+01:002010-01-05T22:42:58.012+01:00Commence the brace war.Commence the brace war.Unknownhttps://www.blogger.com/profile/00952709457053974061noreply@blogger.comtag:blogger.com,1999:blog-15135700.post-51291158179902773182010-01-05T08:33:06.904+01:002010-01-05T08:33:06.904+01:00Hi shevegen and thanks for your comment. Isn't...Hi shevegen and thanks for your comment. Isn't it true that neither ruby or python have brackets around blocks of code. Python uses indentation to group code and ruby uses the 'end' tag. In my opinion this means that they are closer to my second example, don't you?Rune Juhl-Petersenhttps://www.blogger.com/profile/05658234442386749696noreply@blogger.comtag:blogger.com,1999:blog-15135700.post-34767427282625844862010-01-04T18:25:41.157+01:002010-01-04T18:25:41.157+01:00The first version is more readable due to the char...The first version is more readable due to the characters not sticking so close to each other.<br /><br />But both are pretty bad - ruby and python code is about 100x easier to read.shevyhttps://www.blogger.com/profile/09636171104216432368noreply@blogger.com