3 ms·
> The people who would benefit from the warning don't have the necessary background to understand it. In my experience, this is accurate, but underscores a tea
by wyldfire 9y ago
> The people who would benefit from the warning don't have the necessary background to understand it.
In my experience, this is accurate, but underscores a teaching opportunity. If you show Joe Beginner how to get the warnings, explain how they apply to the code and why the warning was good, they may slowly begin to appreciate the warnings. So that even if they don't understand, they won't necessarily dismiss the warning next time -- instead they'll go ask for help.
- nerdponx 9y ago"Did you mean..." or "this is a bad idea because..." type notes in error/warning messages are underrated teaching tools. The R package "data.table" does a good job at this. Just scroll through https://github.com/Rdatatable/data.table/blob/master/R/data.table.R https://github.com/Rdatatable/data.table/blob/master/R/data.... and search for "warning(".