防御性编程_防御性设计

防御性编程

It's not the best book that I've seen on web design, but it's easy to read, and illustrates its common sense guidelines with good and bad examples from popular sites.

这不是我在网页设计上看过的最好的书,但它很容易阅读,并通过受欢迎的站点中的好与坏示例说明了其常识性准则。

At the end of the book there's a design test that you can use on your own web site, to see how it rates.

本书结尾处有一个设计测试,您可以在您自己的网站上使用它,以查看其评分。

当事情发生严重错误时 (When Things Go Horribly Wrong)

As a customer, my worst web site experience was with the Westin Hotel, while booking accommodations for a conference. I selected my arrival and departure dates, then clicked a button to view room information, so I could decide which type I wanted.

作为客户,我最糟糕的网站体验是在威斯汀酒店预订会议住宿的时候。 我选择了到达和离开的日期,然后单击一个按钮以查看房间信息,这样我就可以确定想要的类型。

I closed the room info window, completed the booking, and got my confirmation, which I quickly read, then filed.

我关闭了房间信息窗口,完成了预订,并得到了我的确认,我Swift阅读了该确认,然后提交了。

About a week before the conference, I checked the confirmation, and realized that it was for only one night, instead of the four that I needed. A few frantic phone calls later, I had the four nights booked, although one night was a a different hotel, a few doors down from the Westin.

在会议开始前大约一周,我检查了确认信息,意识到那只是一个晚上,而不是我需要的四个晚上。 后来有几个疯狂的电话打来,我预定了四个晚上,尽管一个晚上是另一家旅馆,离威斯汀酒店只有几扇门。

What went wrong? I went back to the site and tested. While booking, when I opened that room info window, it wiped out my departure date! Now that's bad design. One of the book's 40 guidelines suggests saving customer data in incomplete forms.

什么地方出了错? 我回到现场进行了测试。 预订时,当我打开那个房间信息窗口时,它擦掉了我的出发日期! 现在,这是糟糕的设计。 该书的40条指南之一建议以不完整的形式保存客户数据。

其他应用 (Other Applications)

Some of the book's ideas could also be applied to forms in Excel and Access. For example:

该书的某些想法也可以应用于Excel和Access中的表单。 例如:

  • Highlight either required or optional fields.

    突出显示必填或可选字段。
  • If customers can't choose it, don't show it.

    如果客户无法选择它,请不要显示它。
  • Make it fast, not cute.

    快速,不可爱。
  • Eliminate unnecessary navigation during multistep processes.

    在多步骤过程中消除不必要的导航。

翻译自: https://contexturesblog.com/archives/2008/10/16/defensive-design/

防御性编程

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值