Our Scripts Vault contains many game scripts that you can use to create your own game!
Is Ruby Slow?In a word "yes". Search around for benchmarks on the net and you'll find numerous surveys that show that, even by the standards of scripting languages, Ruby is a tortoise.On the whole, however, this has been irrelevant to us. Most of our uses of Ruby are in building database backed websites. I've visited many projects over the decades like this, using Ruby and other technologies, nearly every project has spent time working on performance issues and in almost every case those performance issues are database access. People spend time tuning SQL not tuning their processing code. So since most applications are I/O bound, the use of a slow language for processing doesn't make any appreciable impact to the overall performance of a system.
class String def NullOrEmpty? (self == nil || self == "") endendputs "test".NullOrEmpty?puts "".NullOrEmpty?
Point subclass: #GriddedPoint instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Exercise11.5'!!GriddedPoint methodsFor: 'accessing'!x: xInteger "Set the x coordinate gridded to 10 (using rounding, alternatively I could use truncating)." super x: (xInteger roundTo: 10)!y: yInteger "Set the y coordinate gridded to 10 (using rounding, alternatively I could use truncating)." super y: (yInteger roundTo: 10)! !!GriddedPoint methodsFor: 'private'!setX: xPoint setY: yPoint "Initialize the instance variables rounding to 10." super setX: (xPoint roundTo: 10) setY: (yPoint roundTo: 10)! !
while were on the ruby bashing bus....