Let's Write Some Bad Ruby
hashrocket.com
Let's Write Some Bad Ruby
1–10 of 37 posts
Re: Let's Write Some Bad Ruby
#2I wonder if it would be an interesting project to comb though it all and see if any useful tools could be extracted. Probably not, like the code in this blog most of my one-offs are unashamedly terrible.
Re: Let's Write Some Bad Ruby
#3Re: Let's Write Some Bad Ruby
#4This is the sort of thing a combination of bash/grep/awk/sed is good for also.
Re: Let's Write Some Bad Ruby
#5This is the sort of thing a combination of bash/grep/awk/sed is good for also.
True, but if you write Ruby all day and are most familiar with it, a script like this takes a matter of minutes to write compared to trawling the man pages of grep/awk/sed to implement the same thing you're only going to throw away after execution anyway.
Re: Let's Write Some Bad Ruby
#6Earlier quoted context omitted.
True, but if you write Ruby all day and are most familiar with it, a script like this takes a matter of minutes to write compared to trawling the man pages of grep/awk/sed to implement the same thing you're only going to throw away after execution anyway.
Sure if you control the environment and can install Ruby. grep/sed/awk are always installed.
Re: Let's Write Some Bad Ruby
#7Earlier quoted context omitted.
True, but if you write Ruby all day and are most familiar with it, a script like this takes a matter of minutes to write compared to trawling the man pages of grep/awk/sed to implement the same thing you're only going to throw away after execution anyway.
Sure if you control the environment and can install Ruby. grep/sed/awk are always installed.
Re: Let's Write Some Bad Ruby
#8Earlier quoted context omitted.
Sure if you control the environment and can install Ruby. grep/sed/awk are always installed.
Portability becomes a problem though. GNU vs BSD sed/grep :(