Before starting a DB project

·  数据库阅读资料004

Before we start our DB develop project, we should know:

1、How to arrange the project folders

Ø  以项目工程名作为文件夹名;

Ø  C#在创建项目工程时选择该文件夹;

Ø  在该文件夹内创建data文件夹,保存数据库文件;

Ø  在该文件夹内创建doc文件夹,保存与项目工程相关的所有设计文档;

Ø  在改文件夹内创建pic文件夹,保存与项目工程相关的UI图形、logo设计素材。

2、How to write a good program

Which includes variable naming, expressionwriting, commenting and so on

2.1 变量命名

(1)见名知义;

使用与变量含义相一致的英文单词或字母命名变量,如:

Ø  s:字符串;

Ø  sqlStr:SQL语句;

Ø  p,q:指针变量;

Ø  i,j,k,m,n:循环变量;

(2)驼峰命名法,

    可以是单峰命名,如stuName,teaMajor;也可以是双峰命名,如:txtStuID,labTeacherName等。

    

3、Debugging program sources is a beautiful job both in source codetypesetting and in logical inference;

4、All in all, customer user interface interaction is the mostimportant thing during the system design.


猜你喜欢

转载自blog.csdn.net/totosj/article/details/79891667