From 3122f4e66f54d4f77e36f9905095ea697441ff0a Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Thu, 20 Jun 2019 12:18:29 -0300 Subject: [PATCH] New chapter: Languages with tests --- content/books/things-i-learnt/_index.md | 1 + .../things-i-learnt/languages-tests/index.md | 25 +++++++++++++++++++ .../books/things-i-learnt/throw-away/index.md | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 content/books/things-i-learnt/languages-tests/index.md diff --git a/content/books/things-i-learnt/_index.md b/content/books/things-i-learnt/_index.md index bac5513..b73f417 100644 --- a/content/books/things-i-learnt/_index.md +++ b/content/books/things-i-learnt/_index.md @@ -15,3 +15,4 @@ template = "section-contentless.html" * [Tests Make Better APIs](tests-apis) * [Make Tests That You Know How To Run on the Command line](tests-in-the-command-line) * [Be Ready To Throw Your Code Away](throw-away) + * [Good Languages Come With Tests](languages-tests) diff --git a/content/books/things-i-learnt/languages-tests/index.md b/content/books/things-i-learnt/languages-tests/index.md new file mode 100644 index 0000000..e75dc71 --- /dev/null +++ b/content/books/things-i-learnt/languages-tests/index.md @@ -0,0 +1,25 @@ ++++ +title = "Things I Learnt The Hard Way - Good Languages Come With Tests" +date = 2019-06-20 + +[taxonomies] +tags = ["en-au", "books", "things i learnt", "programming languages", "tests"] ++++ + +You can be sure that if a language brings a testing framework -- even minimal +-- in its standard library, the ecosystem around it will have better tests +than a language that doesn't carry a testing framework, no matter how good the +external testing frameworks for the language are. + + + +The reason is kinda obvious on this one: When the language itself brings a +testing framework, it reduces the friction for people to start writing tests, +and that includes the authors of the language itself and the community. + +Sure, better frameworks may come along, and languages that don't have a +testing framework in their standard library may have options with better +support and easier access but, again, when they are there from the start, the +start is better and the final result is better. + +{{ chapters(prev_chapter_link="/books/things-i-learnt/throw-away", prev_chapter_title="Be Ready To Throw Your Code Away") }} diff --git a/content/books/things-i-learnt/throw-away/index.md b/content/books/things-i-learnt/throw-away/index.md index 2635f8c..3f3a84b 100644 --- a/content/books/things-i-learnt/throw-away/index.md +++ b/content/books/things-i-learnt/throw-away/index.md @@ -35,4 +35,4 @@ solves the problem, but also the tests for that code. ... unless you focus mostly on [integration tests](/books/things-i-learnt/integration-tests). -{{ chapters(prev_chapter_link="/books/things-i-learnt/tests-in-the-command-line", prev_chapter_title="Make Tests That You Know How To Run on the Command line") }} +{{ chapters(prev_chapter_link="/books/things-i-learnt/tests-in-the-command-line", prev_chapter_title="Make Tests That You Know How To Run on the Command line", next_chapter_link="/books/things-i-learnt/language-tests", next_chapter_title="Good Languages Come With Tests") }}