Just added a radio station to the top of the blog. You can come back here and listen to it whenever you want;)
Friday, April 20, 2007
Sunday, April 15, 2007
Optimize for happiness
Recently I came across the idea of happiness optimization. It basicly says something like - do what you like to do - that way the product will be better, and you wil be happier.
I never concidered my self a great programmer. That is true. I never liked programming contests, as I'm not really sure what are those for. I beleive that a good programmer is a happy programmer. And that is it. Which is why I've decided to optimize for happiness.
Maybe I'm too much motivation driven, but I really think that satisfaction from the job is obligatory.
I really think that programmers should have life. If you ever read Douglass Coupland's "Microsofters" I think you'll know what I mean. By life I mean girlfriend, parties, trips, friends, etc. This is mandatory. Ofcourse there are nightly shifts etc, but programmer is a human beeing, and he/she should be able to have fun. Code shouldn't be the meaning of the life. Life should. I don't see the reason to write a good code by sacrificing even the smallest peace of your own life. Maybe opensource commnity will strongly disagree with me on that :).
I remember some interview with Linus Torwalds, where he was describing his first steps in programming. Oh common - who can think now programming on machine language can be fun? Obviously he can. I remember it was something like: "And look, I change this bit - and it moves! wow! cool!". Didn't we all had a simiar feeling? Don't we all love the possibilities thos machines give us in controlling themselves? Isn't THAT fun? Isn't THAT art or whatever you call it? Isn't THAT why we all are so into it?
One of the reasons I've started programming was to get more into various audio stuff, as I was keen of producing music. And it was really something - to hear those lines of code producing sound. That was my wow. That is my inspiration. I hate working without inspiration and I actually don'r remember if I ever did. I really don't know what was "wow" for those programmerв who love Database programming - that is like fata morgana to me. Man is that boring?
So this is my current position as to what should the work look like - work should be fun. Otherwise it's not yours and you will do a great favor to yourself and others by turning around and looking for something more suitable for you. I'm pretty sure this will change in future, when I will be a bit older and would like to have a static home and job. Right now that is not for me, so I've decided to quit SoftServe and register as an enterpreneur with a state.
Thanks to all of SoftServe employees for being patient to my weirdness that was bugging them sometimes;).
Posted by Shoniko at 00:44 3 comments
Wednesday, April 11, 2007
installed XPCOM components list
If anybody wants to list all XPCOM components installed on his/hers Mozilla platform - here is a small script. Embed it on the page and it will do the rest. It took me a pretty lng while to figure this out (I'm not very good with javascript and Mozilla), and in the end it appered to be so freaking simple!.. so maybe it will be useful for somebody like me.
Here it goes:
var numOfObjs = 0;
for (tmp in Components.classes)
{
document.write(tmp + "
");
numOfObjs++;
}
document.write("Found objects: " + numOfObjs + "
");
Same you can do for interfaces:
var numOfObjs = 0;
for (tmp in Components.interfaces)
{
document.write(tmp + "
");
numOfObjs++;
}
document.write("Found objects: " + numOfObjs + "
");
It still did not help me to get my registered class though - it appears to be not registered, but at least I see my interface..
Posted by Shoniko at 16:42 0 comments
Labels:
XPCOM Mozilla Javascript Components.classes
DiggIt!
Del.icio.us