人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

June 19, 2007

Classic Mistakes in Development

Filed under: 经验积累

By Steve McConnell
http://blogs.construx.com/blogs/stevemcc/archive/2007/06/15/Classic-Mistakes-Updated.aspx

Confusing estimates with targets
Excessive multi-tasking
Assuming global development has a negligible impact on total effort
Unclear project vision
Trusting the map more than the terrain
Outsourcing to reduce cost
Letting a team go dark (replaces the previous “lack of management controls”)

People-Related Mistakes

Process-Related Mistakes

Product-Related Mistakes

Technology-Related Mistakes

1. Undermined motivation

2. Weak personnel

3. Uncontrolled problem employees

4. Heroics

5. Adding people to a late project

6. Noisy, crowded offices

7. Friction between developers and customers

8. Unrealistic expectations

9. Lack of effective project sponsorship

10. Lack of stakeholder buy-in

11. Lack of user input

12. Politics placed over substance

13. Wishful thinking

14. Overly optimistic schedules

16. Insufficient risk management

17. Contractor failure Insufficient planning

18. Abandonment of planning under pressure

19. Wasted time during the fuzzy front end

20. Shortchanged upstream activities

21. Inadequate design

22. Shortchanged quality assurance

23. Insufficient management controls

24. Premature or too frequent convergence

25. Omitting necessary tasks from estimates

26. Planning to catch up later

27. Code-like-hell programming

28. Requirements gold-plating

29. Feature creep

30. Developer gold-plating

31. Push me, pull me negotiation

32. Research-oriented development

33. Silver-bullet syndrome

34. Overestimated savings from new tools or methods

35. Switching tools in the middle of a project

36. Lack of automated source

May 16, 2006

.net 开发service必须要写一个从Installer类继承的类

Filed under: 经验积累

出自

http://www.cnblogs.com/jjstar/archive/2004/07/02/20354.aspx

我一直有一个误区:只要从System.ServiceProcess.ServiceBase继承一个类并编译好就可以用.net提供的命令行程序InstallUtil.exe安装了。但实际上如果仅仅做了这样的一个类是无法用InstallUtil.exe安装的,在安装时会报错:

这是因为installUtil.exe会用反射的方法去查找所有把RunInstallerAttribute设置为true的System.Configuration.Install.Installer类型,并执行上面的Install方法,当找不到的时候,安装就失败了。
所以我们必须要写一个从Installer类继承的类来满足installUtil.exe的要求。

May 15, 2006

调试时不要过分相信自己眼睛.以下代码有什么问题?

Filed under: 经验积累
If _cnt.ConnectionString.ToLower().IndexOf("Integrated") >= 0 Then
     Return True
Else

Web Method不能overloading

Filed under: 经验积累

WSDL不能区分两个名字一样,参数不同的web method

解决方案
1.不要这样搞
2.
[WebMethod (MessageName="HelloWorld")]
public string HelloWorld()
{
 return "HelloWorld";
}
[WebMethod (MessageName="HelloWorldWithName")]
public string HelloWorld(string name)
{
 return "HelloWorld " + name;
}

在proxy中添加了一个新方法,请进行下列检查

Filed under: 经验积累
1.Class上的System.Web.Services.WebServiceBindingAttribute 属性中的[Namespace]是否和proxy method上的SoapDocumentMethodAttribute属性中的RequestNamespace和ResponseNamespace保持一致,特别是 namespace最后的"/", 否则参数无法传递
2.proxy method中SoapDocumentMethodAttribute属性中URL ,web method的名字, Invoke中的字符串是否一致. 否则,web method访问失败.
3.proxy method 的参数名必须和web method一致,否则参数无法传递

May 13, 2006

Web Service bin目录下的Dll

Filed under: 经验积累

在debug web service时,想临时往bin目录下拷贝一个文件,但是又不想覆盖原来的文件,于是我就修改了原来的文件名,并copy了一个新的文件,

注意!这个修改并不生效,在web service的执行过程中,仍然会使用旧的文件,正确的做法是把老的文件移到别的目录,再copy新的文件.

其中的原因就是asp.net在某处备份了bin目录下的文件,并监视了对这些文件的修改.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham