Stepping out on a Limb - some very ugly code

Wow, thanks. There's so much out there - it's a bit overwhelming. I feel
like a baby goldfish in a non-chlorinated swimming pool filled with rafts
and other assorted swimming paraphernalia trying not to get lost. :slight_smile:

ยทยทยท

On 3/1/07, James Edward Gray II <james@grayproductions.net> wrote:

On Mar 1, 2007, at 7:02 AM, Louis J Scoras wrote:

If you keep doing a lot of this, you might want to look into the
HighLine library. It gives you the tools to validate and convert
input as well as issue error messages on certain conditions:

http://highline.rubyforge.org/

James Edward Gray II

--
Samantha

http://www.babygeek.org/

"Beware when the great God lets loose a thinker on this planet. Then all
things are at risk."
  --Ralph Waldo Emerson

<snip>>

Lose the !. Just issue a new string with capitalize. There's no
serious performance or memory issue here (unless someone has a name
the size of "War and Peace" :slight_smile:

Even that should not be a problem:

"War and Peace".size

#=> 13

:wink:

max

ยทยทยท

On 3/1/07, dblack@wobblini.net <dblack@wobblini.net> wrote:

Why do things need to be so simple? :slight_smile:

ยทยทยท

On 3/1/07, dblack@wobblini.net <dblack@wobblini.net> wrote:

Lose the !. Just issue a new string with capitalize. There's no
serious performance or memory issue here (unless someone has a name
the size of "War and Peace" :slight_smile:

David

--
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black\)
    (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf\)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)

--
Samantha

http://www.babygeek.org/

"Beware when the great God lets loose a thinker on this planet. Then all
things are at risk."
  --Ralph Waldo Emerson