forum.dlang.org is now using DCaptcha

Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Dec 4 00:46:37 PST 2014


On Wednesday, 3 December 2014 at 19:42:39 UTC, Ary Borenszweig 
wrote:
> On 12/2/14, 6:41 PM, Vladimir Panteleev wrote:
>
>> Enter DCaptcha
>
> I think this could work with just two or three variants of a 
> question. Always ask what's the return value of the function.
>
> 1. int foo() { return 8 % 3; }
>
> I don't think non-programmers know what that '%' symbol is, but 
> programmers of any language would recognize this.
>
> 2. int foo() { int x = 8; x++; x++; return x; }
>
> I don't think non-programmers would guess ++ is increment, but 
> programmers most probably know it.

These are very similar to two of the existing challenges.

> 3. bool foo() { return 42 != 30 };
>
> I don't think non-programmers know what "!=" is.

This one has the issue that it can have only two possible 
answers. Should one spammer learn that "true" is a possible 
answer, they can have 50% success solving this question. 
(Probably not an issue in practice, considering there are other 
challenges, though).


More information about the Digitalmars-d-announce mailing list