codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Code quality through 7 guarantees

Hajime Yamasaki Vukelic
codeburst
Published in
11 min readOct 26, 2017

--

What are guarantees?

1. Linters

2. Assertions

console.assert(x > y)
function assert(claim, message = 'assertion failed') {
if (!claim) {
throw Error(`Assertion error: ${message}`)
}
}

3. Total functions

4. Tests

4.5 Test-driven development

5. Static typing

6. Immutability

7. Pure functions

Languages with guarantees

Conclusion

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Hajime Yamasaki Vukelic

Helping build an inclusive and accessible web. Web developer and writer. Sometimes annoying, but mostly just looking to share knowledge.

Responses (3)

Write a response