forum.dlang.org is now using DCaptcha

Ary Borenszweig via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Dec 3 11:42:38 PST 2014


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.

3. bool foo() { return 42 != 30 };

I don't think non-programmers know what "!=" is.






More information about the Digitalmars-d-announce mailing list