Jay McGavren's Journal

2008-06-02

Local aspects of modules?

Everyone’s so up in arms about re-opening core classes like Kernel and String in Ruby… Why not just apply changes to a target module only when viewed from within the current module or class?

class Bar
	def baz(fizz)
		fizz * 2
	end
end
module Foo
	local class Bar #Or some other keyword.
		def baz(fizz)
			fizz * 5
		end
	end
	def buzz
		puts Bar.new.baz('a') #'aaaaa'
	end
end
puts Bar.new.baz('a') #'aa'

That way you could tweak behavior to your heart’s content without worrying about the expectations of the other libraries you were using. This seems so obvious I’d be surprised if I was the first to think of it, so someone please let me know what problems have been encountered.

Read more...
2008-06-01

Move your ass.

If you are reading this, odds are…

  • You are one of the richest 5% of Earth’s population.
  • You live in the most peaceful era in human history.
  • You are at least reasonably healthy, both mentally and physically.
  • You have more educational materials, literature, music, and movies available to you, several times faster and cheaper than your parents did.

All of the above are threatened on multiple fronts.

You need to realize immediately how unbelievably fucking lucky you are. And that your luck may not last forever.

Then you need to go out and do something for humanity with the incredible resources at your disposal.

Do NOT waste one more day. You don’t know how many you have left.

Read more...
2008-05-31

Just finished up my presentation for Zyps...

I really can’t pronounce it a huge success; I had a group of about ten people. Not insanely pleased with how everything went, but that may be just my own overly self critical eye on it.

Part of the problem was that I was flustered - I couldn’t get the projector working despite arriving 15 minutes early… 10 minutes in, Lorin Thwaits finally got it going with the help of some UAT staff. (Many thanks to him for rescuing the presentation!)

Got a couple questions, got modest replies, I think it was just too early in the morning for me and for everyone else.

Read more...
2008-05-28

When you want to indulge all your vices but still save gas...

starbucks OR “panda express” near 85032

Read more...
2008-05-28

WhiteCap 5 is absolutely beautiful. I haven’t messed with it (or any visualizer) since, oh, version 2.0. Bought the Gold version of that and G-Force, and then never touched them. I barely have time to listen to music these days, much less trip out to a screensaver while I do it.

Hmmm, speaking of G-Force, that’s next…

…and I need to create an EnvironmentalFactor for Zyps that manages the colors of all GameObjects according to their Location (for rainbows and such).

Read more...