Ensure correctness by changing when the first failure occurs
doliver.org·2d·
Discuss: Hacker News
Data Validation
Preview
Report Post

Failures are expected during development. The key to writing correct code is to detect possible failures before we ship our program. This is the principle underlying the use of static analysis (like compilers), testing, and review; each is a process intended to increase the number and kinds of possible failures we can detect during development. For example, we know that when we see compiler errors, they’ll be found and fixed "at compile time".

So, rather than seeing tests and static analysis as being valuable in and of themselves, what can we glean from seeing them, instead, as useful tools in the task of moving up the first occurrence of each possible failure?

Manual vs automated testing

Once a program has been tested on a particular set of inputs, the failures that will o…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help