官术网_书友最值得收藏!

Why do users want to use your code?

The answer to the question of why your users would want to use your code could be long and varied. If it is, you might want to go back and re-read the SRP section. Beyond being able to split the code into smaller, more concise chunks, we need to make a list. We will apply the 80/20 rule to this list. Typically, 80% of usage comes from 20% of the use cases. Let me put this into perspective with an example.

Consider an automated teller machine (ATM). A list of its use cases might look like the following:

  • Withdraw money
  • Deposit money
  • Check balance
  • Change PIN code

  • Transfer money
  • Deposit check

I reckon that on at least 80% of the occasions that a person uses an ATM, their purpose is to withdraw money. So what can we do with this information? We can optimize the interface to make the most common use cases as convenient as possible. In the case of the ATM, it could be as simple as putting the withdraw function on the first screen at the top so that users don't have to search for it. Now that we understand what our users are trying to achieve, we can build on this and consider how they expect to use it.

主站蜘蛛池模板: 论坛| 平塘县| 房山区| 茂名市| 金秀| 南陵县| 承德县| 萨迦县| 洛浦县| 卢湾区| 团风县| 仁怀市| 驻马店市| 九江市| 买车| 乐山市| 永德县| 宁强县| 庄浪县| 容城县| 昆山市| 磴口县| 宜丰县| 界首市| 泸溪县| 桐柏县| 七台河市| 武宣县| 连平县| 太湖县| 敖汉旗| 搜索| 乐业县| 茌平县| 平谷区| 夏邑县| 石渠县| 阳信县| 合川市| 泽普县| 东乌珠穆沁旗|