• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the case for/against Guard Clauses

 
M Easter
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12186
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic