当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: C# Programming guidlinessource:T
 

 

    摘要:vb6程序员:未来在哪里?(看破三个神话)原作者: builder.com.net占领市场的速度比原来预期的要稍微慢一些,但是,它向整个市场的渗透却是不可避免的,而且这个过程也不曾有过任何的停顿。许多分析人士都预言,在2003年的第三季度,那些采用.net的主流软件开发企业将会开始设计生产他们的第一批.net应用软件。这种转变对于那些使用微软产品的团体产生了一定的震撼,而且,现在对于‘......
    摘要:需求为:到某一网站抓取查询结果.环境为vb.net从0开始,一开始具体需要用到.net里的具体什么东东都不清楚,于是就一顿瞎搜索.又是google,又是baidu,yisou......胡乱搜的内容有.net ie,拆分网页 .net,内嵌ie等等.没过多久能得知webbrowser这个控件.其中对我有帮助比较大的文章是asp">http://www.microsoft.com/china/msd......


C# Programming guidlines

c# programming guidlinessource:

larry o’brien  and bruce eckel 【程序编程相关:VB 二进制块读写类模块(第一版)

thinking in c# 【推荐阅读:VB 二进制块读写类模块应用实例,包括一

begin: 【扩展信息:失去信心?还是再度迷惘

prentice hallupper saddle river, new jersey 07458www.phptr.com

this appendix contains suggestions to help guide you in performing low-level program design, and in writing code.

naturally, these are guidelines and not rules. the idea is to use them as inspirations, and to remember that there are

occasional situations where you need to bend or break a rule.

design0.elegance always pays off. in the short term it might seem like it takes much longer to come up with a truly graceful solution to a problem, but when it works the first time and easily adapts to new situations instead of requiring hours, days, or months of struggle, you’ll see the rewards (even if no one can measure them). not only does it give you a program that’s easier to build and debug, but it’s also easier to understand and maintain, and that’s where the financial value lies. this point can take some experience to understand, because it can appear that you’re not being productive while you’re making a piece of code elegant. resist the urge to hurry; it will only slow you down.

1.first make it work, then make it fast. this is true even if you are certain that a piece of code is really important and that it will be a principal bottleneck in your system. don’t do it. get the system going first with as simple a design as possible. then if it isn’t going fast enough, profile it. you’ll almost always discover that “your” bottleneck isn’t the problem. save your time for the really important stuff.

2.remember the “divide and conquer” principle. if the problem you’re looking at is too confusing, try to imagine what the basic operation of the program would be, given the existence of a magic “piece” that handles the hard parts. that “piece” is an object—write the code that uses the object, then look at the object and encapsulate its hard parts into other objects, etc.

3.separate the class creator from the class user (client programmer). the class user is the “customer” and doesn’t need or want to know what’s going on behind the scenes of the class. the class creator must be the expert in class design and write the class so that it can be used by the most novice programmer possible, yet still work robustly in the application. library use will be easy only if it’s transparent.

4.when you create a class, attempt to make your names so clear that comments are unnecessary. your goal should be to make the client programmer’s interface conceptually simple. to this end, use method overloading when appropriate to create an intuitive, easy-to-use interface.


...   下一页
    摘要:八、 提供可交互的属性视图 当你在visual c# .net中创建一个项目的时候,你可能会注意到属性窗口的工具栏上有一个像闪电的按钮,按下这个按钮属性窗口就会切换到事件视图,这样就可以来编辑事件处理了。 属性窗口的视图来自“属性页(property tabs)”,因此视图使用的最主要的类是propertytab,命名空间是system.windows.forms.d......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE