Open Muddledde opened 1 year ago
Good call.
We also should be highlighting that prinln
will panic on broken pipes
Just came here to chime in and agree with @Muddledde. I love the idea of this shorter intro to cli programs, but it does seem to need a bit of updating. How can I help?
A smaller "jump already happens with 1.4, the error handling code is not really integrated into the earlier grss
example. Rather, the example used in the error chapter is essentially independent from the code developed earlier (admittedly with some similarities).
An implementation of grss
with improved error handling has been added at the end of chapter 1.4 (#233), but still the code is not developed incrementally into the given form.
First, thank you for taking the time to create this guide (and reading this). :-)
It was my understanding from the beginning that the guide would guide one towards creating a simple Command Line App, but after 1.4 there doesn't appear to be much cohesion. I assume I am missing something here, but 1.5 (and further) changes main.rs in a way that it doesn't appear to function around the same logic built/defined before 1.4.
1.3
1.4
1.5 gives an example of a bunch of nice tools to add (such as logging and progress bars), but as mentioned earlier, there is no cohesion with the early development; no addition to the previously constructed chapters.
Printer Performance
Progress Bar
Logging