檢測輸入路徑是否存在錯誤_為什么存在用戶輸入錯誤

檢測輸入路徑是否存在錯誤

Errors are a fact of life when using almost any type of software. Forms are the worst though. Nothing is more frustrating than filling out a form and getting a robotic message from the computer telling you that you have failed, please click ok to confirm your failure.

使用幾乎所有類型的軟件時,錯誤都是生活的事實。 形式是最糟糕的。 填寫表格并從計算機中收到一條機器人消息,告訴您您已失敗,這讓您感到沮喪,請單擊“確定”確認您的失敗。

為什么存在用戶輸入錯誤 (Why user input errors exist)

Input errors don’t exist to make us feel stupid or ruin our day — even if it feels that way sometimes. They protect databases from incorrectly formatted or malicious data. They are like an immune system for the computer. They are there to protect it from anything that could be harmful.

輸入錯誤不會使我們感到愚蠢或破壞我們的一天,即使有時會感到這種錯誤。 它們可以保護數據庫免受格式錯誤或惡意數據的侵害。 它們就像是計算機的免疫系統。 他們在那里是為了保護它免受可能有害的影響。

Image for post
Bad data can make your database sick
錯誤的數據會使您的數據庫不舒服

But of course, the users on the other side don’t care about this. They just want to get their tasks done and achieve their goals quickly, easily and without any errors.

但是,當然,另一側的用戶對此并不關心。 他們只是想快速,輕松且沒有任何錯誤地完成任務并實現目標。

錯誤對用戶而言是痛苦的 (Errors are painful for users)

Errors aren’t life-threatening, but they are painful to recover from. Instead of watching your users suffer through errors, you can install some guard rails to prevent them from hurting themselves.

錯誤并不會危及生命,但是要從中恢復是很痛苦的。 您可以安裝一些護欄以防止他們受傷,而不用看著用戶因錯誤而受苦。

Image for post
Avoid the ambulance at the bottom of the cliff.
避開懸崖底部的救護車。

預防勝于治療 (Prevention is better than the cure)

Rather than trying to find more polite or ‘user-friendly’ ways of telling your users that they are wrong, what if you spent your time preventing their mistakes in the first place?

與其嘗試找到更多禮貌或“用戶友好”的方式來告訴用戶他們是錯誤的方式,不如您首先花費時間防止他們的錯誤該怎么辦?

Welcome to error prevention, the practice of designing things in a way that prevents your users from encountering errors.

歡迎使用錯誤預防,這是一種以防止用戶遇到錯誤的方式設計事物的實踐。

So how can you prevent input errors?

那么如何防止輸入錯誤呢?

  • Install invisible guardrails

    安裝隱形護欄
  • Collect only the data you need

    僅收集您需要的數據
  • Make the system do the heavy lifting for the user

    使系統為用戶帶來沉重的負擔

Let’s dive a little deeper.

讓我們深入一點。

1.安裝隱形護欄 (1. Install invisible guardrails)

Guardrails are safety measures that restrict users from doing things that could result in error messages. If a form is well designed the user shouldn’t even be aware the restrictions exist.

護欄是限制用戶執行可能導致錯誤消息的操作的安全措施。 如果表單設計合理,則用戶甚至都不應該意識到存在限制。

Most input patterns can be used as guardrails. The trick is to use them in a way that restricts the data the user can input to prevent mistakes.

大多數輸入模式都可以用作護欄。 技巧是使用它們來限制用戶可以輸入的數據以防止錯誤。

滑桿 (Sliders)

A slider restricts the minimum and maximum values a user can input. This means the user cannot input a number that is higher or lower than allowed.

滑塊限制用戶可以輸入的最小值和最大值。 這意味著用戶不能輸入高于或低于允許的數字。

Image for post
Sliders restrict the numbers you can input
滑塊限制您可以輸入的數字

踏步機 (Steppers)

Steppers make it easier for the user to increase or decrease a value using the ‘+‘”’ and ‘-’ controls instead of their keyboard. You can user steppers to prevent the user from entering a number that is too high or low.

步進器使用戶可以更輕松地使用“ +””和“-”控件而不是鍵盤來增加或減少值。 您可以使用用戶步進器來防止用戶輸入太大或太小的數字。

Image for post
Steppers make it easy to increment and decrement values but also restrict types of data that can be input
步進器使增加和減少值變得容易,但也限制了可以輸入的數據類型

單選按鈕,復選框和開關 (Radio buttons, checkboxes and switches)

Radio buttons, switches and checkboxes give the user preset options to choose from. This prevents the user from making choices that aren’t available.

單選按鈕,開關和復選框為用戶提供了預設選項供您選擇。 這樣可以防止用戶做出不可用的選擇。

Image for post
Radio buttons restrict the choices you can make
單選按鈕限制您可以進行的選擇
Image for post
Input select menus restrict your options
輸入選擇菜單限制您的選擇
Image for post
Switches only allow binary yes/no choices
開關僅允許二進制是/否選擇

當心文本輸入字段 (Beware of text input fields)

Text input fields can cause a lot of problems because they have no constraints. They allow the user to input whatever they want, often resulting in errors.

文本輸入字段沒有約束,因此可能導致很多問題。 它們允許用戶輸入所需的任何內容,通常會導致錯誤。

Image for post
Input fields are the worst for user errors
輸入字段最容易出現用戶錯誤

You can’t physically change your desktop or laptop computer’s keyboard to solve this problem, but with touch screens on mobile devices, you can!

您無法通過物理方式改變臺式機或筆記本電腦的鍵盤來解決此問題,但是通過移動設備上的觸摸屏,您可以!

You can use different system keyboard types restrict the type of data the user can input, or even create your own custom keyboards.

您可以使用不同的系統鍵盤類型來限制用戶可以輸入的數據類型,甚至可以創建自己的自定義鍵盤。

Image for post
System keyboards restrict the type of data a user can input
系統鍵盤限制用戶可以輸入的數據類型

2.僅收集您需要的數據 (2. Collect only the data you need)

Most forms ask for more information than is necessary. Sometimes the data is being collected simply because the database ‘requires’ it.

大多數表格要求提供比必要更多的信息。 有時僅由于數據庫“需要”數據而收集數據。

But what is really required?

但是真正需要什么呢?

Unless you legally need to collect the data or it is business critical, investigate why you need it. Sometimes it can be because the person who created the database built it that way and nobody ever changed it.

除非您合法地需要收集數據或它對業務至關重要 ,否則請調查為什么需要它。 有時可能是因為創建數據庫的人以這種方式構建數據庫,卻從未有人更改過它。

Image for post

Do you really need to know your user’s middle name and last name? Do they even have one? In Indonesia, for example, it’s not common to have a last name. I personally don’t have a middle name, my parents never gave me one.

您是否真的需要知道用戶的中間名和姓氏? 他們甚至有一個嗎? 例如,在印度尼西亞,姓氏并不常見。 我個人沒有中間名,我的父母從來沒有給我一個。

Databases make broad assumptions about the world that are often wrong. Challenge those assumptions and simplify your forms by removing as much as you can.

數據庫對世界做出廣泛的假設,而這些假設通常是錯誤的。 挑戰這些假設,并通過盡可能多地刪除來簡化表格。

Don’t collect data if you don’t need it. The more data you collect the more chance for errors.

如果不需要,請不要收集數據。 您收集的數據越多,出錯的機會就越大。

3.讓系統為用戶做繁重的工作 (3. Make the system do the heavy lifting for the user)

Image for post
The system should do the hard work, not the user
系統應該努力,而不是用戶

Doing the heavy lifting for your users means the system should anticipate and handle potential problems.

為您的用戶完成繁重的工作意味著系統應該預見并處理潛在的問題。

This means knowing what the most common user journeys are and offering helpful suggestions or shortcuts.

這意味著了解最常見的用戶旅程并提供有用的建議或捷徑。

You can do this by using smart defaults, generated names and error correction.

您可以使用智能默認值,生成的名稱和錯誤更正來做到這一點。

智能默認 (Smart defaults)

Smart defaults pre-fill or preselect an option for your user. They are either personalised to the user or the most common use case.

Smart默認為用戶預填充或預選擇一個選項。 它們要么是針對用戶的個性化設置,要么是最常見的用例。

The reason they are so effective at reducing errors is that they prevent forms being submitted with things not filled in. The user doesn’t need to do anything other than review the suggestions and make changes as needed.

它們之所以能夠有效地減少錯誤,是因為它們可以防止提交未填寫內容的表單。用戶除了查看建議并根據需要進行更改外,無需執行其他任何操作。

You could use machine learning here, but optimising your form for the most common use case goes a long way.

您可以在這里使用機器學習,但是針對最常見的用例優化表單要走很長一段路。

For example, when searching for a flight most people choose a return trip you can use geolocation to determine where they are most likely departing from.

例如,大多數人在搜索航班時選擇回程,則可以使用地理位置來確定他們最有可能離開的地方。

Image for post
Smart defaults make choices for the user that they can change
智能默認值會為用戶做出可以更改的選擇

When searching for accommodation, the majority of people travel with another person.

在尋找住宿時,大多數人都會和另一個人一起旅行。

Image for post
Why not make some educated guessed about your users?
為什么不對您的用戶進行一些有根據的猜測?

These ‘smart’ defaults aren’t very smart and won’t always be right, but making a few educated guesses is much more preferable to forcing everyone to fill in the entire form from scratch.

這些“智能”默認值不是很聰明,也不會總是正確的,但是進行一些有根據的猜測比強迫所有人從頭開始填寫整個表格更為可取。

產生的名字 (Generated names)

When creating a file giving it a name is the only way to recognise and retrieve it later. You are probably familiar with this when you use Google Docs or Microsoft Word.

創建文件時,給它一個名稱是稍后識別和檢索它的唯一方法。 使用Google Docs或Microsoft Word時,您可能對此很熟悉。

What you may not have noticed is that many applications suggest or pre-fill a name for you. Google docs do an excellent job of this by generating the document the title or from the first line.

您可能沒有注意到的是,許多應用程序會為您建議或預填一個名稱。 Google文檔通過生成文檔標題或第一行來做得很好。

Image for post

You can actually apply this concept to any situation where a user needs to fill in a name. Suggest one for them based on the data you have available.

您實際上可以將此概念應用于用戶需要填寫姓名的任何情況。 根據可用數據為他們建議一個。

結語 (Wrapping it up)

You can’t completely banish errors from your form designs, but thoughtful design decisions that prevent them is much better than trying to make them more user friendly. Prevention is better than the cure.

您不能完全消除表單設計中的錯誤,但是周到的設計決策可以防止錯誤發生,這比嘗試使它們更易于使用要好得多。 預防勝于治療。

Just remember:

只記得:

  • Collect only the data you need

    僅收集您需要的數據
  • Install guardrails

    安裝護欄
  • Make the system do the heavy lifting for the user

    使系統為用戶做些繁重的工作

翻譯自: https://medium.com/swlh/3-ways-to-prevent-user-errors-22cb1ff7c0c6

檢測輸入路徑是否存在錯誤

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/275540.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/275540.shtml
英文地址,請注明出處:http://en.pswp.cn/news/275540.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

若川邀你進 源碼共讀 群~長期交流學習

大家好,我是若川。這是一個愉快的周六~估計還是有很多讀者不知道我。若川名字由來是取自:上善若水,海納百川。順便放兩篇文章。我讀源碼的經歷,跟各位讀者朋友分享下公眾號運營策略加我微信進 源碼共讀 群最近組織了近200人每周源…

2005 打開 2010 項目經驗總結

下面是網上的直接復制粘貼:網址為 http://hi.baidu.com/zealot886/blog/item/7364d4266a2a1555ac34dea6.html/cmtid/65ff140a660e02246159f3db 這里是我自己的總結 ( 1、用vs2010 將該解決方案的所有 項目都改為 net 2.0(方法,右擊…

讀取linux的運行狀態,Linux下安裝使用sar工具來獲取系統運行狀態

sar 找出系統瓶頸的利器sar是System Activity Reporter(系統活動情況報告)的縮寫。sar工具將對系統當前的狀態進行取樣,然后通過計算數據和比例來表達系統的當前運行狀態。它的 特點是可以連續對系統取樣,獲得大量的取樣數據;取樣數據和分析的…

說說 Spring 的事務同步管理器

Spring 將 JDBC 的 Connection、Hibernate 的 Session 等訪問數據庫的連接或者會話對象統稱為資源,這些資源在同一時刻是不能多線程共享的 。 為了讓 DAO 或 Service 類可以實現單例模式, Spring 的事務同步管理類 org.springframework.transaction.supp…

錯過校招_我們在用戶測試中容易錯過的事情

錯過校招What makes a tool well designed? As a designer, I’ve thought about this question for a long time, and over the past few years I’ve developed a system that I now use with every new project I approach, from small startups to large companies like L…

這些 JS 中強大的操作符,總有幾個你沒聽說過

大家好,我是若川。今天推薦一篇相對簡單些的文章。大家應該都知道了我最近組織了源碼共讀活動, 有小伙伴表示讀源碼上癮,也很有收獲。工作0-5年都可以參與。感興趣可以加我微信 ruochuan12 私信 源碼 進群。1. 數值分割符 _2. 逗號運算符 ,3.…

Class 創建性能大比拼(反射,泛型反射,泛型創建,緩存Emit,非緩存Emit)

一說到反射,很多人都想到了性能,更有甚者直接說“慎用反射,遺患無窮”,“用反射,感覺怎么像是退步啊~”,看到這種言論,直接把反射妖魔化了,如果這種言論長此以往&#xf…

es6沖刺01

1、let/const 1)作用域:es5中有全局作用域、函數作用域。es6中新增了塊級作用域 2)let定義的變量在所在塊級作用域外失效,嚴格模式下失效后直接報錯, 且不允許重復聲明同名變量 3)const用于聲明常量,聲明時必須賦值&am…

linux網卡固件名,修改CentOS7網卡名稱為傳統名稱eth0格式

使用CentOS7以前系統的小伙伴裝完CentOS7以后發現了一個問題,那就是網卡名改變為了“en016777736”,而不是以前的eth0的簡易模式了,如圖:以往的CentOS7以前的系統網卡命名雖然簡單方便,但也會帶來一些問題,…

Baymard Institute:基于UX的最佳實踐的光榮的,循證的工具

重點 (Top highlight)I realized I wanted to write this piece when I mentioned the Baymard Institute to a User Researcher with 10 years of experience and they had no idea what I was talking about. They aren’t alone! I’ve gotten plenty of raised eyebrows on…

Vue 3.2 發布了,那尤雨溪是怎么發布 Vue.js 的?

1. 前言大家好,我是若川。最近組織了源碼共讀活動,感興趣的可以加我微信 ruochuan12,長期交流學習。之前寫的《學習源碼整體架構系列》 包含jQuery、underscore、lodash、vuex、sentry、axios、redux、koa、vue-devtools、vuex4十篇源碼文章。…

wireshark使用教程 linux,Linux入門教程:ubuntu下安裝wireshark(以及配置非root),這個強大的工具可以捕...

Linux入門教程:ubuntu下安裝wireshark(以及配置非root),這個強大的工具可以捕Wireshark是世界上最流行的網絡分析工具。這個強大的工具可以捕捉網絡中的數據,并為用戶提供關于網絡和上層協議的各種信息。與很多其他網絡工具一樣,Wireshark也使用pcap net…

IronPython和C#執行速度對比

其實我自己對執行速度這個問題本來并沒有什么興趣,因為以前的經驗告訴我:除非是運算密集型的程序,否則腳本語言和編譯型語言使用起來速度沒有多大差別。但是我們公司有個人知道我的想法以后,天天在我耳邊嚷嚷腳本運行速度太慢&…

基于超級賬本Fabric的供應鏈跟蹤解決方案【開源】

2019獨角獸企業重金招聘Python工程師標準>>> 本項目為基于Hyperledger Fabric區塊鏈的供應鏈資產跟蹤解決方案,項目主要包括鏈碼和Web應用兩部分。Fabric鏈碼采用GOLANG開發,負責維護資產的狀態,后臺為采用Node.js開發的Web應用&a…

同理心案例及故事分享_神經形態,視覺可及性和同理心

同理心案例及故事分享“A good UX designer has empathy”.“優秀的UX設計人員具有同理心”。 This is something every UX designer has heard at some point in their career. Empathy helps us get into the mindset of the user and build solutions that solve real probl…

純CSS實現beautiful按鈕

大家好,我是若川。邀你進源碼共讀群學習交流。今天分享一篇好文。可收藏~近期工作中遇到一個需求——實現一些酷炫的按鈕,看到效果圖之后,按鈕確實漂亮,有彈跳、顏色漸變、掃光、霓虹燈,瞬間激起了我的好奇…

linux的內核有多小,Linux 內核有小bug?

今天讀著讀著Linux代碼,竟然無意中發現Linux 0.11內核有個小bug,呵呵,人非圣賢孰能無過。// 在目錄項數據塊中搜索匹配指定文件名的目錄項,首先讓de 指向數據塊,并在不超過目錄中目錄項數// 的條件下,循環執…

菜單窗口_菜單

菜單窗口The Hamburger Menu widget is on every other site nowadays. It has become synonymous with the web and, perhaps even more so, with web development. Have, for instance, a look at Dribbble or Codepen. There you’ll find a fair share of examples. They c…

帝國cms 打開打開轉換表文件失敗!

帝國cms 升級到最新版6.6 后 生成列表頁面和 搜索 時出現 “打開打開轉換表文件失敗!” 跟蹤文件找到 include($file); 這行代碼時出錯非常納悶,這個是php的內部命令啊,跟帝國的編碼應該沒有關系一直沒有再往下細找,只好根據錯誤提…

怎么在PDF上修改文字,PDF修改文字的步驟

怎么在PDF文件上修改文字呢?其實現在的很多的PDF文件上會出現文字錯誤的情況,想要修改PDF文件上面的文字卻不知道怎么修改,想要修改PDF文件還是比較簡單的,使用專業的PDF編輯器就可以進行操作了,下面小編就為大家分享一…