Vladimir_M comments on Learned Blankness - Less Wrong

130 Post author: AnnaSalamon 18 April 2011 06:55PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (186)

You are viewing a single comment's thread. Show more comments above.

Comment author: JGWeissman 19 April 2011 02:32:54AM 6 points [-]

Sometimes my critical contribution to helping another programmer solve a problem basically consists of reading the fascinating error message. (Well, the fact that I also programmed the library they are using to show the error message is arguably a critical contribution as well.)

Comment author: Vladimir_M 19 April 2011 07:38:33PM 2 points [-]

Sometimes my critical contribution to helping another programmer solve a problem basically consists of reading the fascinating error message.

If you can figure out the problem from a syntax error message with C++ templates, your contribution is certainly far from trivial!

Comment author: JGWeissman 19 April 2011 07:50:06PM 4 points [-]

If you can figure out the problem from a syntax error message with C++ templates, your contribution is certainly far from trivial!

I'm sure that is true, but the error messages I am talking about are ones I designed to contain all the information needed to fix the problem.

Comment author: Luke_A_Somers 31 December 2011 07:34:09AM 0 points [-]

Writing seriously verbose exception text for every single exception thrown may be annoying and space-taking, but after all the crazy things I've seen, I wouldn't do without it. Include what you were expecting, what you encountered, and where you are.

Comment author: loqi 21 April 2011 07:40:25AM *  2 points [-]

It's funny you say that, I once figured out a problem for someone by diagnosing an error message with C++ templates. Wizardry! However, the "base" of the error message looked roughly like

error: unknown type "boost::python::specify_a_return_value_policy_to_wrap_functions_returning<Foo>"

Cryptic, right? It turns out he needed to specify a return value policy in order to wrap a function returning Foo. All I did for him was scan past junk visually looking for anything readable or the word "error".

Comment author: TeMPOraL 22 April 2013 01:27:17PM 1 point [-]

That's the general algorithm of reading STL error messages. I still can't get why people look at you as if you were a wizard, if all that you need to do is to quickly filter out irrelevant 90% of the message. Simple pattern matching exercise.