mgastner / cartogram-cpp

Cartogram generator in C++
MIT License
8 stars 4 forks source link

Replace `std::cerr` outputs with functions in `main.cpp` #174

Closed adisidev closed 1 month ago

adisidev commented 1 month ago

Currently main.cpp is very clustered due to the heavy usage of std::cerr for output messages. Often times we log every time we use a function. For example, write functions are almost always preceeded by a print statement with "Writing to ". We should just embed these messages in the functions themselves, as smaller chunks are easier to understand.

adisidev commented 1 month ago

Same with error handling.

adisidev commented 1 month ago

Duplicated #172