I Rubyized shadytyrant's paint program. Why? I dunno. Felt like it.
Well I'm not gonna say which language is better, but I do know that a lot of people are afraid of VB6. Ruby is trendy, hot, and has a great community around it. Most people aren't quite as afraid of it.
When I was a young boy, I had my eyes exposed to VB6, and no, I did not like it. I could however read and understand it, so I was able to Rubyize it for people who have weaker eyes. It seemed like a good program to me, it just wasn't where people could see it!
Enjoy. I hope you never buy the wrong amount of paint again.
#!/usr/bin/ruby
def gallonsOfPaint(height, length,
width)
#I'm just going to safely assume that nobody's screwing with me and put integers for args
o hay thanx. But it's spelled "rewriting". *ducks*
"Haha, \"Why? I dunno. Felt like it.\" ;-)"
Yep. Pretty much.
"You know you would be better of posting this as a \"source code\" on your
profile... since i will be deleting this code pin board next year in favor of the
source code application."
Eh, I don't feel like it's enough code to warrant that. After all, it's only two lines of real, actual code. I could make it one line, akshully.
You know you would be better of posting this as a "source code" on your profile... since i will be deleting this code pin board next year in favor of the source code application.