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:

image

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:

image

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