ASP.NET Web Developer Checklist
The following is a simple checklist you can use when building web
applications. Much of this still applies to other technologies and can
easily be extended. I try not to get too specific on technology or
methodology, but it is definitely leaning toward ASP.NET.
If you
can think of something I am missing or disagree, please leave a
comment. Detailed information follows the checklist.
How much
of the checklist you follow will depend on the project. If its just a
hobby site, you may skip items like load testing, but as the site grows
you will likely need to check off more and more items. Some items, like
separation of logic should just be done from the start. In any case,
you should make an actual decision to ignore the item. This is much
better than just forgetting to do it.
The Check List
Everywhere
Use source control.
Be consistent with naming
conventions.
Create documentation.
Backup
everything.
Use code analysis tools.
Database
Use non-clustered indexes on unique identifier columns.
Setup foreign key relationships.
Use a last updated
timestamp column.
Add simple audit columns or a history
table.
Analyze and tune your database.
Business
Logic
Clearly separate business and data logic.
Use some standard patterns and stick with them.
Do not
duplicate rules. Data is okay.
Create unit tests.
Web Interface
Make the site accessible.
Use
resource files.
Minimize use of server controls.
Separate
your HTML, JavaScript and CSS.
Minimize ViewState.
Pay
attention to search engine optimization.
Clearly separate
presentation and business logic.
Don’t forget a site map,
favicon and search provider.
Create user interface unit
tests.
Check your site with YSlow.
Load test the
site.
Security test the site.
Use a hosting
provider.
Minify and combine resources.
Turn on
IIS compression.
Process
Stay agile.
Vision before you design.
相关文档:
cache在开发高可扩展性的web应用中起着至关重要的作用,我们可以按照预定的时间将任何get请求缓存到浏览器中,如果在预定的时间内用户请求同一URL那么response就会通过浏览器的cache来实现而非server。可以通过下面的action filter在ASP.NET MVC应用中实现同样的功能:
using System;
using System.Web;
using System.We ......
转自:http://www.cnblogs.com/sunrack/archive/2009/10/16/1584427.html
theme就是一系列属性设置,利用它可以定义页面和空间的外观。它控制的范围可以是某些网页、整个web应用程序,甚至可以是一个服务器上的所有Web应用。
theme和控件皮肤
theme由一系列元素组成:皮肤、css、图片以及其它资源。它至少包含皮肤。the ......
一、三层体系架构 1.表示层(USL):主要表示WEB方式,也可以表示成WINFORM方式。如果逻辑层相当强大和完善,无论表现层如何定义和更改,逻辑层都能完善地提供服务。
2.业务逻辑层(BLL):主要是针对具体的问题的操作,也可以理解成对数据层的操作,对数据业务逻辑处理。如果说数据层是积木,那逻辑层就是对这些积木的 ......
ASP.NET页生命周期的定义,有以下8个方面:页请求,开始,页初始化,页加载,验证,回发事件,呈现,卸载。
ASP.NET 页运行时,此页将经历一个生命周期,在生命周期中将执行一系列处理步骤。这些步骤包括初始化、实例化控件、还原和维护状态、运行事件处理程序代码以及进行呈现。了解页的生命周期非常重要,这样就能在合适 ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Collections;
using System.Data.SqlClient;
namespace DAL
{
/// <summary>
/// 数据库的通用访问代码
/// 此类为抽象类,不允许实例化,在应用 ......