| LingKai's profileRomance Dawn 冒险开始的地方PhotosBlogLists | Help |
|
24 September 8个月/11个月在微软8个月了,想到过去的经历,心情有点彭湃。在这里,我的体验与以往任何时候不同。我曾为了交作业而写程序,为了在喜欢大作业里超过室友而写程序,为了游戏大厅而写程序,为了AutoCad而写程序,现在我仍然在为windows写程序,为Microsoft写程序,但在这里,我才真正认识到,我是在为自己写程序,我并不是在为工资,也不是在为名誉,不是为了title,甚至已经不是为了看着程序running的那种快感,只是因为我喜欢,一种淡淡的喜欢,伴随着每天长时间看似枯燥乏味工作的喜欢,真正的Passion,也可以是源于内心对某件事的强烈渴望。 21 September I will be working on National DaysI think it should be better not take those holidays to sync up with the whole team. 16 September static members initialization issues -- Another tech postMy feelings and understanding on static members in managed code:
1. in some cases, static members had better be readonly ... or you will not know where did they get value from.
2. avoid writing this:
class SomeClass
{
static readonly SomeClass[] allItems = { A, B, C, D}
static readonly SomeClass A = new ....;
....
}
3. prefer const than static readonly
4. avoid using shared initialize function to intialize a static member. If we have to do this, make sure that method is not used out of inilization.
5. don't make static constructor too heavy, it's hard to maintain and debug. 15 September a Damned Friday --- It's a technical post!It's a real story, and the hero is me --- a junior software engineer working on developing a server.
This morning when I came to office, I noticed that my program manager, Ken, had sent me a mail with HIGH importance complaining that when he got a clean installation of the latest build, my feature is broken. I was surprised because from his description, the Virtual Path in the IIS is not set correctly. However, every build ran smoothly on my test machine and all the testers boxes beside. I tried it myself, and then absolutely understood that it is a BUG. Exactly we do an UPDATE instead of a CLEAN BUILD everyday just to save time. The bug only occurs when you do a clean build.
Ironically, tomorrow is our demo day, which means I need to fix the bug as soon as possible(We do have a work around here, just fix manually on our demo machine using a server update not clean install). After that I began to debug it. This time, I feel like I AM COMPLETELY FUCKED, because in the refactoring of the ugly code in the origin installer, I removed every gabage including TRACING. The situation is even worse when each time we need to do a clean build only to try fixing it.
And then I looked at my calendar, it seemed I need to seperate a whole day as estimated to do this fix, that meant the some items in my well-planned calendar would die, I need to cross my fingers and beg I can still meet the deadline. And that's the reason I have time sitting here and writing this blog. Because I'm doing a clean install to have a fix-try.
Things I learned from it:
1. Don't do something everytime because it is time saving. Consider the worst situation and beg for bad news.
2. While do somethinig NON-TRIVIAL, DO WRITE A LOG FILE, or you will be a poor engineer sit beside your problematic machine, eating quick noodle, gaining fat, keeping an eye on the boring installation progress bar, and writing a blog to do logging your brain failures.
Epilog:
24 hours later, when I'm sitting at home and going through my mailbox, I noticed how silly the bug is ................................................ witout the log and debugger. Life is so....fantastic that you never ever know what is it going to be in the next coming moment.
10 September Swanson's unwritten rulesSWANSON'S UNWRITTEN RULES 1: Learn to say, "I don't know." If used when appropriate, it will be used often. 09 September @ home/ office/ dorm /lab etcMSN Messenger可以考虑加这样一个feature:在本地设置里存一个location。扩展的功能,比如调整Messager状态:根据location,对于不同组显示不同状态(比如在公司,就自动把其他组设成busy)。。。不知道怎样,yy一下放松放松 03 September Brain.Save()if (!Brain.IsEmpty)
{
Brain.Save();
}
给自己放假一天,决定今天只看书,不做任何关于公司的事情。
想了很久,我到底要花多少时间才能做到一年前开始时的目标?我的时间,到底有多少是花在coding?多少是花在mail和discussion group?多少是用来参加meeting和training?剩下的又浪费掉多少?
以一天14小时来算,实际上真正有效的也就快3小时吧,其他的呢?都被整个开发过程吃掉了。在这短短的真正coding时间里,假设90%在用已经掌握的技术为公司写程序,那真正在技术上获得的经验,差不多是15分钟。一周最多也就两个小时。所以,一切差别来自于8小时之外。最困难的事情,并不是选择一个工作和生活的平衡点,而是公司事务和个人发展的平衡。
最近看了一些李开复的文章,弱弱地认为,他核心的是两个思想,一个是生命在于选择,另一个是凡事没有绝对。他当然是对的,但我仍然认为,明智地选择很重要,保持中庸也很重要,但如果现在就把一切看透,就失去了很多乐趣。每天早晨都能为那十五分钟为自己的创造而雀跃,每天发生的事情都是未知的。从这个角度说,加班也是一种享受吧。 |
|
|