Ask HN: Would it be educational to map error messages to common mistakes?
10 by melvinroest | 7 comments on Hacker News.
This question is just a musing, a "shower thought" if you will. I have a JS/Python/Java background (side projects can be much lower level though such as C++ or x86-64 ;-) ). I'm currently learning Go from Learn Go With Tests [1]. And I sometimes make silly mistakes such as testAdder instead of TestAdder (lowercase t vs capital T). In that example I got back "testing: warning: no tests to run". I had to use a search engine to find out why. I don't find it a big deal, but I am simply wondering if there is a more efficient way to deal with this problem of understanding "cryptic" error messages when you're starting out in a new language. So, might it be useful to have a site for programmers starting out in a new language that could give potential causes when a particular error message is displayed? [1] https://ift.tt/3wkMuer...
Tidak ada komentar:
Posting Komentar