it sounds great, aha.
B公司实习,感觉回到了SIFLS
在B公司实习了一个星期了,就觉得像是回到了中学里。B公司老板台湾人李董,SIFLS老板台湾人梁董,一样的钟爱cost-down;在B公司早上7点起床,晚上8、9点回宿舍,回宿舍洗个澡,在空调下吹一会,这不跟SIFLS一样嘛?吃饭各部门时间岔开、食堂排队、有人发餐巾纸、两个大荤选一个、一份水果、这不就是SIFLS嘛!要数最像的,呵呵,还记得SIFLS的校服衬衫要怎么穿吗?塞到裤子里!!!!!!!!!!怎么台湾人都这样啊~~~~~~~~~
不管怎么说在SIFLS也呆了六年,也彻底体验到了台湾同胞的cost-down之利害,但是到B公司倒是有一种亲切的感觉,可能是跟SIFLS比较像的原因吧,虽然在学校的时候一直埋怨学校这儿那儿的缺点,不过到现在,在离开学校快四年的时间里,还怪想念学校的,对,反正在苏州,选个周末去学校逛逛(要避开招生办的人)。
第一天上班的时候kevin(曾在SIFLS任教,恩师&朋友)没上班,我打电话给他后他特地到公司来看了一下我,我和他果然在同一个办公区,意外的是还有一个SIFLS出来的老师zhu和我是一个部门的。他们都来5年多了,算资历很老的了,跟他们差距大咯!kevin甚至混到了regional director,就这样,kevin还敲了我一顿饭,看来第一个月的实习工资不保咯。
一个星期接触下来,感觉部门的氛围还是是不错的,但是,自从对自己的工作有了一定的了解后,觉得这可能不是我最想要的工作。。。to be continued(赶班车了)
[ANN]Info3G.net暂时关闭
因为info3g.net这个域名没有备案(也不打算备案),不想连累朋友的主机,遂暂时关闭Info3G,待另行寻觅一符合要求的国外主机空间再开放,给朋友们带来不便,请谅解。
Professional C# 学习笔记之错误和异常
1.try…catch…finally。
2.计算机查找的cache块应表示同一个类(或基类)中匹配的异常类实例。
3.计算机只执行它找到的第一个合适的catch块。
4.写catch的一般顺序:最上面的catch块应用于最特殊的异常情况,最后是最一般的catch块,它可以处理任何错误。
5.当抛出一异常,运行库会查找适合的catch块,找不到会去嵌套着的上一层找,直到找到为止,最外层是.NET运行库提供的。
6.定义异常类时要确保基类构造函数正确调用。
Professional C# 学习笔记之集合
1.ArrayList有点像动态数组。
2.集合:实现System.Collections.IEnumerable。
3.IEnumerable实现一个方法GetEnumerator,返回IEnumerator。
4.Ienumerator有三个成员,current返回集合中的当前对象;MoveNext方法:移动到集合的下一元素上,如果成功下移,返回true,如果已过最后一个元素,返回false;Reset方法:移动到第一个元素前面(注意不是第一个!)。
5.如果键是字符串,可用System.Collections.Specialized.StringDictionary来代替Hashtable。
6.在字典使用内部算法时,如果容量是一个素数,它们的工作效率最高。
7.如果A.Equals(B)是True,则A.GetHashCode()和B.GetHashCode()必须返回相同的散列。
8.一般来说,做键的对象都要重写Equals()和GetHashTable(),因为System.Object.Equals()仅比较引用,GetHashTable()会根据对象的地址返回一个散列。则只有键是相同的对象时,才是相等的。
9.Microsoft已经为String类提供了一种虽然复杂、但很有效的散列算法。如果要自己设计散列算法,有一个简单方法,把对象中表示对象唯一性的成员字段们的数字乘以不同的素数再加起来。
Professional C# 学习笔记之字符串和正则表达式
1.System.String类进行文字处理,效率不佳。System.Text.StringBulider更适合文字处理。
2.IFormattable接口,自定义格式化字符串。
3.正则表达式和Jscript的正则表达式类似。规则较繁,用时再查MSDN。
Professional C# 学习笔记之内存管理和指针
1.stack存储值数据类型,heap存储引用数据类型。
2.引用分配在stack上,而引用所对应的实例分配在heap上。
3.垃圾收集器在释放了它能释放的所有对象后,就会压缩其他对象,把他们都移动回heap的端部,再次形成一个连续的块。
4.有析构函数的对象需要垃圾收集器两次处理才能删除:第一次调用析构函数时,没有删除对象,第二次调用才真正删除对象。
5.由于垃圾收集器的工作方式,无法确定C#对象的析构函数何时执行。
6.可实现IDisposable接口的Dispose()来显示释放由对象使用的所有未托管资源。
7.要用指针,请先用unsafe标记。Unsafe可以标记方法、类、结构、成员和代码块,但不能标记局部变量。
8.C#中int* pX,pY等价于C++中 int *pX,*pY。
9.不允许针对void指针执行算术运算。
10.sizeof只能用于不安全代码块,且不能对类使用。
11.不能创建指向类的指针,这是因为垃圾收集器不包含指针的任何信息,只包含引用的信息,因此创建指向类的指针会使垃圾收集器不能正常工作。
12.int* pX = &(myObject.X);这样的表达式是错误的,因为在垃圾收集的过程中,垃圾收集器会把myClass移动到内存的一个新单元,这样,pX会指向错误的存储单元。解决方法是使用fixed关键字。fixed(int* pX=&(myObject.X))(//do something}。这样,垃圾收集器知道,在执行fixed块的代码是,不能移动myObject对象。
13.创建基于stack的数组。int* pInt = stackalloc int [10];
Stay Hungry, Stay Foolish
This is some of my favorate passages of the Commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Animation Studios, delivered on June 12, 2005 at Stanford University.
Of course it was impossible to connect the dots looking forward when I was in college. But it was very, very clear looking backwards ten years later.
Again, you can’t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something – your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.
I’m convinced that the only thing that kept me going was that I loved what I did. You’ve got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle. As with all matters of the heart, you’ll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don’t settle.
When I was 17, I read a quote that went something like: “If you live each day as if it was your last, someday you’ll most certainly be right.” It made an impression on me, and since then, for the past 33 years, I have looked in the mirror every morning and asked myself: “If today were the last day of my life, would I want to do what I am about to do today?” And whenever the answer has been “No” for too many days in a row, I know I need to change something.
Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma – which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become.
Everything else is secondary.
some pictures of benq china
pictured by 枫之舞
for more picutures of benq, please visit my flickr
Professional C# 学习笔记之委托和事件
1..NET以委托的形式实现了函数指针的概念。.NET委托是类型安全的。
2.委托只是一种特殊的对象类型。使用委托时,首先定义要使用的委托,然后创建该委托的一个或多个实例。delegate void VoidOperation(unit x);
3.多播委托,返回void。可识别运算符+,+=,-,-=。
4.事件:event EventHandler Action;
5.EventHandler委托和EventArgs对象已被.NET Framework定义,可用于实现无数据传递的事件。
6.委托和事件博大精深,一时半会不能理解其精髓,等多接触一下.NET再来回味。


