A very common use case for Module#prepend is for mixins that want to decorate methods. For example, say I have a class that can process stuff, and a mixin that attempts to log calls to the #process method: class…
Methods that simply behave differently depending on whether or not an argument is given. For example, passing nil (or any other object) to inject is different from passing nothing. [1, 2, 3].inject(:+) [1, 2,…
It seems to me that any character that needs to be typed using alt gr can't be detected (using Firefox as my browser and BÉPO as my keyboard layout).
What I find funny in that is that when I'm in a social circle, we usually don't have quick access to the Internet. Is using a phone for browsing (I guess that's the only way you could) during a conversation that common?
Although getting an interactive environment definitely is a nice thing, I'd argue you don't have to create a whole project directory, etc. to play with an idea; I usually write it in a single file.
I always have mitigated feelings about these tools. On the one hand, those features are really appealing. On the other hand, leaving my regular editor prevents me from using its (sometimes heavily configured) text- and…
This reminds me of one of the math teachers I had, who used a technique I found quite interesting and effective compared to how other teachers taught us about new concepts. He would rarely come up with some theorem, ask…
As there is an app[1] that allows to run Lua code typed by the user, the most likely changed their policy about interpreting code. [1] Codify: http://itunes.apple.com/us/app/codify/id439571171?mt=8
Just in case you (or someone else) would like to know, Ray has been tested with both JRuby and Rubinius.
There's a method to check for collisions between rectangles (which can be called on sprites too).
Yes, the heavy work is done in C. So it should be fast enough for many games.
A very common use case for Module#prepend is for mixins that want to decorate methods. For example, say I have a class that can process stuff, and a mixin that attempts to log calls to the #process method: class…
Methods that simply behave differently depending on whether or not an argument is given. For example, passing nil (or any other object) to inject is different from passing nothing. [1, 2, 3].inject(:+) [1, 2,…
It seems to me that any character that needs to be typed using alt gr can't be detected (using Firefox as my browser and BÉPO as my keyboard layout).
What I find funny in that is that when I'm in a social circle, we usually don't have quick access to the Internet. Is using a phone for browsing (I guess that's the only way you could) during a conversation that common?
Although getting an interactive environment definitely is a nice thing, I'd argue you don't have to create a whole project directory, etc. to play with an idea; I usually write it in a single file.
I always have mitigated feelings about these tools. On the one hand, those features are really appealing. On the other hand, leaving my regular editor prevents me from using its (sometimes heavily configured) text- and…
This reminds me of one of the math teachers I had, who used a technique I found quite interesting and effective compared to how other teachers taught us about new concepts. He would rarely come up with some theorem, ask…
As there is an app[1] that allows to run Lua code typed by the user, the most likely changed their policy about interpreting code. [1] Codify: http://itunes.apple.com/us/app/codify/id439571171?mt=8
Just in case you (or someone else) would like to know, Ray has been tested with both JRuby and Rubinius.
There's a method to check for collisions between rectangles (which can be called on sprites too).
Yes, the heavy work is done in C. So it should be fast enough for many games.