What is wrong with this API? Answer

time to read 1 min | 107 words

Originally posted at 11/11/2010

The reason that I don’t like this API is that I think it provides a piss poor usability:


In short, it doesn’t provide me with any reasonable way to tell the user why I rejected a message.

Here is the proper way of doing this:


MessageVeto also contains a reason string, which provide a much better experience all around.