I love Test Driven Development. You might already know it if you are following my work. Kent Beck wrote the book in 2002. He has chosen to provide examples using Java and Python in an Object Oriented way.
Now, I want to use the Guile programming language to follow the examples in the book and see how things are different !
I started developing a web application in Guile. The goal of this application is to help me choose the content of my meals according to my tastes, my lifestyle and my nutritional balance! If I consume better, my health and the planet can only benefit.
In this article, I share with you my current workflow!
So far, I've shown you how to manage your software packages manually, in profiles, with the guix package command (and its aliases). Each of these transactions creates a new generation of a profile with the changes made.
Now, I'll show you how to generate profiles in a row with what are called manifests!
Before going further in this serie on Guix, I must explain something to you!
When you invoke the command guix package, you perform what is called a transaction. This is an atomic action. Either it succeeds or nothing happens. There's no “the system crashed in the middle so we're in a weird state”. I find that very reassuring!
The Guile Hacker Notebook follows the style of Test Driven Learning to illustrate features of the Guile programming language. Asides on tools and techniques are provided to help the hacker become more productive.
In this chapter, the hacker manipulates booleans. He will take the opportunity to document his source code with what are called docstrings.