Reading notes on Code That Fits in Your Head by Mark Seemann

Wait 5 sec.

[This article was first published on Maëlle's R blog on Maëlle Salmon's personal website, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.Last month, Vicki Boykis recommended the book “Code that Fits in Your Head” by Mark Seemann.I was intrigued, especially by her takeaway that “Writing good software should be a slow and deliberate craft”.The book reminded of The Pragmatic Programmer in the breadth of topics it covers.However, I much preferred its tone.SustainabilityThroughout the book, the author makes it clear that he believes one should pay attention to the code one writes, to its internal quality.The following two sentences even got their little frame:“The goal is not to write code fast. The goal is sustainable software.”Arrange Act AssertWhat useful phrase!You know how in a test you can have something like:test_that("Exception Bla handled", { withr::local_option("bla" = 1) test_thing