Skip to main content

Good Software Makes the Right Thing Easy—and the Wrong Thing Difficult

November 2, 2026 Highland Software

When I design software, I am usually designing for two very different types of people.

The first is the person who is in a hurry, does not read every instruction, skips a step, or accidentally enters the wrong information in the wrong place. They may type a phone number into a last-name field, enter an email address with an extra space, upload the wrong document, or click Save twice because they are unsure whether the first click worked.

The second is the person who is deliberately trying to make something go wrong.

They may enter unexpected information because they are testing whether your application exposes an error. They may try to bypass a permission check, manipulate a URL, submit a form repeatedly, or provide input intended to reveal information about the database, server, or application behind the page.

From the software’s perspective, both people may appear to be doing the same thing.

They are entering data that does not belong in a field.

But their intentions are completely different.

One needs the system to be patient, clear, and helpful.

The other needs the system to be secure, cautious, and unhelpful.

Good software must accommodate both.

People Make Mistakes. Software Should Expect Them.

It is easy for developers to assume that users will follow the path we had in mind when building the application.

They will read the instructions.

They will enter the correct information.

They will use the right format.

They will understand the difference between “Save,” “Submit,” “Continue,” and “Delete.”

They will never click Back during an important process.

They will never leave a required field blank.

They will never accidentally enter their first name in the last-name field.

Anyone who has worked with real users knows this is not how the world works.

People are busy. They are interrupted. They are tired. They may be unfamiliar with the software. They may be using a phone with a small screen. They may be completing a form while speaking to a customer, caring for a child, or trying to finish a task before a deadline.

They are not trying to make the developer’s job harder.

They are trying to get their work done.

That is why a well-designed form should not simply reject a person’s input and leave them wondering what happened. It should explain the problem in plain language and help them correct it.

If a required field is empty, say what is missing.

If an email address is invalid, explain what format is expected.

If a password does not meet a requirement, make the requirement clear before the user submits the form.

If a date is impossible, such as February 30, identify the specific issue instead of returning a vague message such as, “Invalid input.”

The goal is not to make users feel that they failed the software.

The goal is to make the software help users succeed.

Real Names Are More Complicated Than Many Forms Expect

Name fields are a good example.

A poorly designed form may assume that a name contains only letters. That sounds reasonable until real people begin using it.

What about an apostrophe?

O’Connor is a real name.

What about a hyphen?

Smith-Jones is a real name.

What about a space?

Mary Anne may be a first name. De La Cruz may be a last name.

What about accents or characters from languages other than English?

What about a person who uses one name, multiple family names, or a naming convention that does not fit neatly into “first name” and “last name”?

The moment a system rejects a valid name because it does not match a narrow technical assumption, the software becomes the problem.

Validation should protect the quality of data without forcing people to fit into an oversimplified model of the world.

That means asking what the field actually needs to accomplish.

Does the organization truly need separate first and last names? Or does it simply need a person’s preferred name?

Does a name field need to reject punctuation, or should it allow reasonable characters while still preventing clearly invalid input?

Does a telephone field need one rigid format, or can it accept several common formats and normalize them after submission?

Good validation is not about being strict for the sake of being strict.

It is about preventing problems while respecting the people using the system.

The Wrong Thing Should Be Difficult—Not Impossible to Recover From

A strong user experience creates guardrails.

Guardrails do not prevent people from moving forward. They prevent small mistakes from becoming large problems.

Consider a person deleting an important record.

A button labelled “Delete” should not immediately remove the record with no warning, no confirmation, and no opportunity to recover. That may be fast, but it is not good software.

A better system makes the consequence clear:

“Are you sure you want to delete this contact? This action cannot be undone.”

A better system may go further by using an archive function instead of permanent deletion, providing a short undo period, or limiting destructive actions to people with the correct permissions.

The same principle applies throughout an application.

Do not allow a form to be submitted twice if the result would create duplicate records or charges.

Do not allow users to select options that conflict with each other.

Do not let someone submit incomplete information only to discover the error after several additional steps.

Do not make an advanced setting easy to change accidentally.

Do not hide important consequences behind unclear language.

The right action should feel natural and straightforward.

The wrong action should require enough thought that an accidental click is unlikely to create damage.

Not Every Invalid Entry Is an Honest Mistake

There is another side to validation.

Sometimes a person is not simply rushing through a form.

Sometimes they are probing.

Years ago, I came into work one morning and noticed strange query strings in the server logs. They were generating a large number of errors. At first, they looked like random broken URLs, but there was a pattern.

When I disabled safety checks on my local development environment and tested the requests safely, it became clear that they were attempts to expose database table names and content.

It was an SQL injection attack.

The purpose was not to use the website normally. The purpose was to find a weakness in how the application handled data and then use that weakness to learn more about the system.

This is why security cannot rely on users behaving properly.

A user may enter an apostrophe in a name field because their name contains an apostrophe. That input must be supported.

Another user may enter characters intended to change the meaning of a database query. That input must never be allowed to become executable database logic.

The difference is not determined by trying to guess someone’s intention.

It is determined by building the application properly.

Validation Is Important, but It Is Not Security

One of the most important distinctions in software development is the difference between validation and security.

Validation helps ensure the data is useful.

Security helps ensure the data cannot harm the system.

A last-name field may validate that a person has entered a reasonable name. It may reject a phone number because it is clearly in the wrong field. It may allow apostrophes, hyphens, spaces, accented characters, and other legitimate name formats.

But client-side validation alone is not security.

Anything happening in a browser can be modified, bypassed, or ignored. A person can disable JavaScript, submit a request directly, alter a form value through developer tools, or send data to an endpoint without using the visible form at all.

That means every important check must happen on the server as well.

Never trust browser input simply because the page appeared to validate it.

Never build database queries by combining raw user input with SQL strings.

Use parameterized queries or prepared statements. They keep the data separate from the instructions given to the database.

Sanitize and validate input according to its intended purpose.

Escape output according to where it will appear: HTML, an attribute, a URL, JavaScript, or another context.

Use permission checks before allowing a person to view, edit, delete, or export information.

Return useful error messages to legitimate users, but do not expose internal file paths, database errors, software versions, or technical details that help an attacker understand the system.

A secure application should be helpful without being revealing.

Error Messages Should Help Users, Not Attackers

There is a balance to strike.

A message such as, “Please enter a valid email address,” helps a user correct a mistake.

A message such as, “Database query failed in customer_records on line 182,” helps nobody except the person trying to learn how your system works.

The detailed error belongs in a secure server log where a developer can investigate it.

The public-facing message should be clear, calm, and appropriately limited:

“We could not complete that request. Please check your information and try again.”

Good logs provide the technical detail developers need. Good interfaces provide users with the practical next step they need.

Those are different audiences, and they should not receive the same information.

Security Is Part of Respecting Users

Security is sometimes treated as a separate technical concern—something added after the useful features are complete.

I do not see it that way.

If a system exposes customer information, allows unauthorized access, creates duplicate transactions, or fails when someone enters unexpected data, it has failed the people who trusted it.

A secure system is not merely protecting code.

It is protecting users, customers, staff, business processes, and reputations.

That is why testing should include more than the expected path.

Do not only test whether a form works when every field is completed correctly.

Test missing information.

Test unusually long information.

Test apostrophes, hyphens, spaces, and accented characters.

Test duplicate submissions.

Test invalid dates.

Test restricted accounts attempting restricted actions.

Test what happens when a request fails halfway through.

Test whether errors reveal more than they should.

And test the system after changes are made, because a feature added in one area can create an unexpected weakness in another.

Good Software Anticipates Reality

The best software does not assume everyone will read the instructions perfectly.

It does not punish users for ordinary mistakes.

It does not treat real-world names, data, and workflows as edge cases.

And it does not assume that every visitor has good intentions.

Good software makes the right thing easy.

It guides honest users toward successful outcomes with clear language, sensible defaults, validation, and thoughtful guardrails.

It makes the wrong thing difficult through permissions, server-side validation, secure database handling, rate limits, logging, and careful error management.

The goal is not to make software suspicious of everyone.

The goal is to make it dependable for everyone.

Because users should be able to focus on their work—not worry about whether one missed instruction, accidental click, or unexpected entry will bring the whole system down.

Highland Principle #11: Good software makes the right thing easy—and the wrong thing difficult.

More From Highland Software