import new
class NullClass:
def __init__(self, y):
self.y = y
pass
nc = NullClass(23)
def f(self, x):
print "hello world %i" % (x * self.y)
def g(self, x):
print "spam spam etc %i" % (x * self.y)
nc.doSomething = new.instancemethod(f, nc, None)
nc.doSomething(13)
NullClass.doSomethingElse = g
nc.doSomethingElse(23)Wake me up when the CLR will let me do that. Actually, better wait until the CLR will let me do that from a function defined in the interactive console I give the user.dynamic bar = "i like bars"; dynamic barlength = bar.Length;It is, oddly enough, a static type called "dynamic", and the typing is resolved at runtime.
Here be the repositories of why the lucky stiff. WELCOME TO THEM. If you are interested in helping out on a project list here, please apply for an account by first getting yourself a Rubyforge account and then by granting yourself access. Which is taken care of at http://code.whytheluckystiff.net/access/. If you are just a regular old person unawares, I still believe that great things can come from you, but only if you will just leave this place immediately and begin your quest to invent a machine for turning pure kinetic energy into animals. If you are a thief, here to steal my products and sell them for wholesale at your underground hardware store (corner of Starks and Braithwaite; hours are from 2am to 5am,) I hope you will also steal from the equally brilliant Keanu Reeves, who died at age nine, was quickly reconstructed by a team of Egyptian robots and went on to become a movie mathematician of no small order! If you are here because you believe me to be Autrijus Tang, you are sadly mistaken. Yet, you will not leave empty-handed! Stay, and I will cry of relief... and admiration. If you are an orphan without a home or parents, then I encourage you to become a professor or perhaps a millionaire instead. If you are Ilias Lazaridis, then you have changed us all in one way or another. Perhaps you merely made us click a few trashcans, but maybe you helped us to hate everything. Who knows the effects that will cascade through the generations? If you are a wireless lizard looking for a crustaceous hotspot, you're alongways off. Seek scientosophy. If you are the missing leg with a cameo in my next book, I am very grateful for the appearance you made. Your timing was perfect. If you would have waited until the casino to show up, I think most readers would have thought you extraordinarily tardy. If you are a young person who insists on reading every bit of text you are faced with until its dire conclusion, you should know that I was very tempted to taper this WELCOME off into an endless stream of random text. But I know that's what exactly what you want. And what I want. And we can't have two more plump and satisfied people scrolling in the world. The END.
#
#82
see-el-free-i Says:
August 28th, 2009 at 1:53 am
Straight up, no chaser:
_why: I love you. I lost my love of programming back in the early 90's, beaten down and just too saddened by the cookie-cutter corpocracy cultures that demeaned coffee lovers everwhere on planet3. No more coding to pay the bills so I could play the music I want to play-- years spent painting houses and jamming out instead.
Cut to 2006--
Had a 12 year old friend who wanted to learn programming. Read 'Why Johnny can't Code'. Cried while I got my Apple II+ serial #0000333 out of the closet. Searched the web. Found hackety-hack, ruby, divine madness in your hands--
Woke up laughing. Coding for a living, teaching kids and anyone else who wants to learn how to hack. Jamming the good tunes coming through, creative flux monumental.
You never know what will happen when you let loose and show your soul with all its quirky zigzags all naked and shiny like that. You never know the good you do, really. One kind word you don't remember might just have saved a life. One time you almost gave some asshole in traffic the finger, but laughed instead. Butterflies flapping chaos into mountains of future chunky bacon coated goodness, shining down from skies of azure into keyboards of the future, hacking freedom from the fingers of the grey-faced humorless robots, laughing all the way to new life, new dreams, new futures of inconceivably absurd wonderfulness.
Ya changed my life, _why, and the life of the kids in my life who are hacking away at their futures while I type. Ya changed the life of the Ethiopian immigrant checkout guy in the scary dangerous convenience store on my corner, who is learning to hack too, all 'cos he asked what I do for a living, and I told him how I learned how to code again after almost 20 years off for bad behavior...
You are so, so loved. Disappear or reappear when you choose, it's all up to you. It's a free will universe, all the way, all the time, and I know you know that.
Just know this: you made a real difference in my life, and it's made a real difference in other lives, and the ripples ain't done spreading yet.
see-el-free-i,
ever your faithful admirer
over'n'out
« Older Sweet!... | Alan! Alan! Alan! Alan! Alan!... Newer »
This thread has been archived and is closed to new comments
posted by chasing at 4:33 PM on August 19, 2009 [5 favorites]