Sharaf:
do you use a special function for displaying messages?
or simple println! will do?
mitchell:
some messages only need to be displayed occasionally
that's why I prefer to look at these as "log" messages
that way, you set the "log level" and you'll only get the messages you want
for example users never want anything more than info and critical errors
and developers want debug info available while debugging
and some messages are good for seeing the program run (trace)
I don't like to just use a print statement
especially seeing developers go back and forth commenting messages between commits, it's so cumbersome
This is part of my plan for self-documenting code, or some better term. Because if you're going to comment something, then make it run and display at a useful time.
This is part of my plan for self-documenting code, or some better term. Because if you're going to comment something, then make it run and display at a useful time.