wood burning stoves 2.0*
The moose likes Blatant Advertising and the fly likes the case for/against Guard Clauses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Blatant Advertising
Bookmark "the case for/against Guard Clauses" Watch "the case for/against Guard Clauses" New topic
Author

the case for/against Guard Clauses

M Easter
Ranch Hand

Joined: Feb 11, 2007
Posts: 133
In case anyone finds it interesting... I'm blogging on the case "for" and "against" the use of guard clauses (see http://tinyurl.com/2d6msh as a reference). The blog is at http://codetojoy.blogspot.com

I've only just finished the case "for" guard clauses but thought I'd post a heads-up.

Personally, I'm against guard clauses but I realize that it's gonna be a tough battle: I'm going against conventional wisdom and fashion.

Mike


M Easter
Software Composer - http://codetojoy.blogspot.com
M Easter
Ranch Hand

Joined: Feb 11, 2007
Posts: 133
FWIW, the case against guard clauses has been posted on Code to Joy.

Please give your feedback! It will help settle a debate between a friend and I...

ps. I wonder if I can post a non-blog-referencing version of this debate on Java Beginner or something. I have chosen this forum since it is an explicit link to the blog.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11154
    
  16

I think it might be an interesting discussion topic in either JiG Beginner or Intermediate - I'm just not sure which one. I don't even think there would be a problem with referring to you blog, as long as there was more than JUST a reference to your blog. We like to discuss fun things like this here.

So I say, pick one forum and start a debate.

Note for full disclosure: M Easter and I have known each other for many years in MeatSpace.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: the case for/against Guard Clauses
 
Similar Threads
single return statement: yes / no?
The iStone , a bargain at $299
Physics and Airtravel....
mocking time
What is your favorite technological blugs and web sites