Matz said :
I designed Ruby to minimize my surprise. I wanted to minimize my frustration during programming, so I want to minimize my effort in programming.
But sometime we get (bad) surprise in ruby practice.
As beginner in ruby, I found some example :
- Exception Thread do not produce any immediate traces by default, we must do
Thread.abort_on_exception = true
or don't forget to join all thread. - socket search dns name for any accept, do
BasicSocket.do_not_reverse_lookup = true
for do not be surprise by long delay split(regexp)
don't split empty field in the end of string, dosplit(regexp,-1)
for splitting all stringstring.trim
is unknown, usesting.strip
in place (for old tcl dev...)
Have you other case for improve my ruby practice ?
thank you.