Monthly Archives: April 2007

Creating unit test program for existing project

The typical method is to start from a new project and add necessary files to it, creating some mock/stub objects in the unit test. It works fine with small and simple projects, but it is painful for large complex projects … Continue reading

Posted in Uncategorized | Leave a comment

why heavy process does not work in local companies

Heavy process is working well in US companies, but usually does not work well in local companies. I think it is due to the fact that, most employees of a US company have more than 10 years experience in the … Continue reading

Posted in Uncategorized | Leave a comment

ZT: 美国各级毕业生的薪水

学啥最赚钱? 美国各级毕业生的薪水原来是这样的 大学春秋 美国大学与雇主协会,每年按4个季度分别发布新毕业的大学生、硕士和博士研究生的薪水调查报告,这报告共涉及80个学士专业,40个硕士专业,23个博士专业。冬、春、夏三季发布的数据是各季度的数据,秋季版发布的是去年8月31日到今年9月1日为止的整个学年数据。以下列出的是该协会最新公布的美国博士和硕士毕业生2006年秋季薪水调查报告。   美国博士毕业生2006年薪水最高的几种专业:   1、商业管理(Business Administration/Management):$81,438   2、电气/电子与通信工程(Electrical/Electronics&Communications Engineering):$81,297   3、冶金工程(含陶瓷科学与工程)(Metallurgical Engineering):$80,667   4、计算机科学(Computer Sciences):$76,630   5、化学工程(Chemical Engineering):$75,659   6、计算机工程(Computer Engineering):$74,750   7、工业/制造工程(Industrial/Manufacturing Engineering):$73,292   8、物理(Physics):$72,357   如果这些工程师没有升迁到高层管理,做到退休一般年薪不会超过$150,000   美国博士毕业生2006年薪水最低的几种专业:   1、心理学(Psychology):$49,374   2、人文科学(Humanities):$48,938   3、社会科学(SocialSciences):$48,487   4、生物/生命科学(BiologicalSciences/LifeSciences):$43,916   5、英语语言与文学(EnglishLanguage&Literature/Letters):$41,405   美国硕士毕业生2006年薪水最高的10种专业:   01、计算机科学(ComputerSciences):$71,165   02、石油工程(PetroleumEngineering):$68,833   03、电气/电子与通信工程(Electrical/Electronics&CommunicationsEngineering):$66,687   04、计算机工程(ComputerEngineering):$66,545   05、地质及相关科学(Geological&RelatedSciences):$64,111   06、材料科学(MaterialsSciences):$63,500   07、航天/航空/宇航工程(Aerospace/Aeronautical/AstronauticalEngineering):$62,811   08、工业/制造工程(Industrial/ManufacturingEngineering):$61,273   09、机械工程(MechanicalEngineering):$61,234   10、化学工程(ChemicalEngineering):$59,008   如果这些工程师没有升迁到高层管理,做到退休一般年薪不会超过$120,000   2004年美国律师的年薪平均为:$94,930 … Continue reading

Posted in Uncategorized | Leave a comment

4 methods to use UDT as key of std::map, by Onega

// 4 methods to use UDT as key of std::map, by Onega// VC++ 6.0#include <map>using namespace std; // method 1: provide member less than operator struct UserDefinedType1{ int a; int b; bool operator< (const UserDefinedType1& right) const { return true; … Continue reading

Posted in Uncategorized | Leave a comment

Engineers go to marketing

Some peers thought that engineers should go to market. That may make sense in some market which is completely competent because everybody knows the product well, but in a less competent market, customer doesn’t know their real needs and market … Continue reading

Posted in Uncategorized | Leave a comment

Interview a guy from M$

Today I interviewed a guy from M$ and knew some surprising facts. His team consists of 6 newbies (10 in total, others are about 4~6 years) with less than one year experience, and they didn’t do unit test, but just … Continue reading

Posted in Uncategorized | Leave a comment

Matron

Today my current matron left suddenly, so we were in a hurry finding another one. I did some search in google but the records published by agency are not accurate — some records I saw half a year ago still … Continue reading

Posted in Uncategorized | Leave a comment

Windows Vista

Windows Vista = Foundation. It claimed to be high performance, but some user reported that it is extraordinarily slow and eat a lot of memory.

Posted in Uncategorized | Leave a comment

In depth process analysis in DDJ issue 395 April 2007

After reading half of this issue, at last I found an interesting article — Enough of Processes: Let’s DO Practices by Ivar Jacobson, Pan-Wei Ng, and Ian Spence. Change everything is stupid, change one thing is smarter. Opinions proposed by … Continue reading

Posted in Uncategorized | Leave a comment

assert error in wincore.cpp line 979

Create a MFC DOC/View application via project wizard, add ATL simple object to it, then create a console COM client project to test the ATL object. Run COM client out of debugger, I got an assert error in COM server, … Continue reading

Posted in debug | Leave a comment