From: zdennis Date: 2005-11-07T13:17:13+09:00 Subject: Re: programming best practices swille wrote: > I have a couple of standard programming questions. The first is that > I often like to return true or false in a method when no other return > value is really needed. Is that bad form? I was talking to someone > the other day who said said something that made me think that maybe it > was. For example: > > def login() > rc = false > begin > perform action > rescue > rc = false > some error > end > > return rc > end Not really pertinent to your question, but another way to do your example code is to utilize the rescue clause at the method level which gets rid of the need for a temporary variable and makes your method shorter, which IMO can go towards better readability. def login perform action true rescue false end Zach