From: mark hahn Date: 2001-11-22T08:14:19+09:00 Subject: [ruby-talk:26087] Re: R: Re: Hello World considered harmful >some people say that anything using regexes is bad I was surprised when Sun announced that the next Java release would have regex in the standard library. ----- Original Message ----- From: "Ciaran McCreesh" Newsgroups: comp.lang.ruby To: "ruby-talk ML" ; Sent: Wednesday, November 21, 2001 7:33 AM Subject: [ruby-talk:26033] Re: R: Re: Hello World considered harmful > Erik B�gfors wrote: > > face it people. You can do obfuscating in (almost) any language. There > > is nothing wrong with having a bit fun with it. :) > > Some people have strange ideas of what bad code is... I've seen the > following (or something along these lines) criticised for lack of clarity: > > if (matched = (@mystr[@currentpos, -1][/ # do something with matched > > Is that bad code? I wouldn't say so, but some manager-types think > otherwise. Sure, if you've never used Ruby it could look strange, but if > you're not a Ruby programmer then you shouldn't be messing with Ruby code. > > Heck, some people say that anything using regexes is bad, because it ain't > readable. I guess that's just COBOL syndrome... > > -- > Ciaran McCreesh > mail: keesh@users-dot-sf-dot-net > www: http://www.opensourcepan.co.uk/ >