December 03, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Wednesday, 3 December 2014 at 21:26:19 UTC, ketmar via Digitalmars-d-announce wrote:
> On Wed, 03 Dec 2014 20:22:31 +0000
> Vladimir Panteleev via Digitalmars-d-announce
> <digitalmars-d-announce@puremagic.com> wrote:
>
>> On Wednesday, 3 December 2014 at 20:19:34 UTC, ketmar via Digitalmars-d-announce wrote:
>> > On Wed, 03 Dec 2014 14:47:09 +0100
>> > Jacob Carlborg via Digitalmars-d-announce
>> > <digitalmars-d-announce@puremagic.com> wrote:
>> >> auto u = new class M {};
>> >>
>> >> Exactly what is referred to here? The type inference or the anonymous class? The answer is "anonymous class".
>> > besides, it's not "anonymous", it has a name!
>>
>> The type is anonymous.
> so what that "M" after `class` means then? anonymous with a name,
> that's cool! ;-)
That's the name of the parent class :)
|
December 03, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Krejcirik | On Wednesday, 3 December 2014 at 13:02:35 UTC, Martin Krejcirik wrote:
> I think all code fragments should have just one exact answer (like number or single word) a any programmer without specific D knowledge should be able to answer them correctly. Asking for D feature names in not good IMHO.
I agree.
Matheus.
|
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | This has to be a joke! I couldn't answer a single question: > What is the name of the D language syntax feature illustrated in the following fragment of D code? > > string a = x"5095 f9 95d723c2"; Seems like hex to me > What is the name of the D language syntax feature illustrated in the following fragment of D code? > > /+ t = w * g; /+ t = 47; +/ +/ Those look like comments to me > What is the name of the D language syntax feature illustrated in the following fragment of D code? > > auto h = new class C {}; Ah, finally one I understand. Wait, you want the name? No clue, have to look it up. > What will be the return value of the following function? > > int b() > { > return iota(29).reduce!max; > } iota.. yeah I have heard of it, never used it though. CAPTCHAs: Simple for humans, difficult for computer; Or the other way around apparently. On Tue 02/12/2014 22:41, Vladimir Panteleev wrote: > I'm sure you all are as tired of the occasional spam that hits these > lists as I was deleting it. (Mailing list users in particular, I guess, > since we can't delete an email once it was sent out.) Most of the spam > was coming in through the forum, so I suppose I was responsible for > [not] keeping it out. > > Although forum.dlang.org has had a spam check and used reCAPTCHA since > it was announced, it is only somewhat effective against fully-automated > bots - it is powerless against humans paid to post spamverts on forums > web-wide, which is what the current spam economy seems to be gravitating > towards. > > Enter DCaptcha, a question-answer challenge tailored for D programmers. > Its goals are to challenge posters of suspicious-looking content with > questions that should be easy to answer to D programmers, and impossible > for non-technical people with no incentive to learn or research stuff > (i.e. spammers). DCaptcha is already in use on the D wiki > (wiki.dlang.org), with great success - DCaptcha's debut cut the > short-lived explosion in wiki spam to zero. > > For an idea of what sort of questions DCaptcha asks, you can demo it on > the following page, so you don't have to clutter the forum with test posts: > > http://wiki.dlang.org/extensions/DCaptcha/demo.php > > Source code: > > https://github.com/CyberShadow/dcaptcha > > Pull requests for more challenges are welcome. You can find some goals > for new challenges at the top of dcaptcha.d. > > Previous discussion (w.r.t. the D wiki): > > http://forum.dlang.org/post/tpflbvlfutjwyvqmowdx@forum.dlang.org |
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | On Tuesday, 2 December 2014 at 21:41:28 UTC, Vladimir Panteleev wrote: > Although forum.dlang.org has had a spam check and used reCAPTCHA since it was announced, it is only somewhat effective against fully-automated bots - it is powerless against humans paid to post spamverts on forums web-wide, which is what the current spam economy seems to be gravitating towards. Coincidence? :) http://googleonlinesecurity.blogspot.com.br/2014/12/are-you-robot-introducing-no-captcha.html Matheus. |
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Borenszweig | 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.
>
> 3. bool foo() { return 42 != 30 };
>
> I don't think non-programmers know what "!=" is.
I had to maintain a technical forum last year that was getting spammed like crazy. I added the question "how many bits are in a byte?", and the spam vanished. Based on that experience, I think the bar can be set very low.
I prefer something like the examples above. Honestly, I don't know what the names of many syntax features are, but I usually know how to use and interpret them. But, one positive side effect of this is that if I ever do get challenged with a "what is the name of this feature?" question, I will finally be motivated to go look it up.
Mike
|
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike | On Thursday, 4 December 2014 at 04:02:49 UTC, Mike wrote: > On Wednesday, 3 December 2014 at 19:42:39 UTC, Ary Borenszweig wrote: >> On 12/2/14, 6:41 PM, Vladimir Panteleev wrote: > >... > I had to maintain a technical forum last year that was getting spammed like crazy. I added the question "how many bits are in a byte?", and the spam vanished. Based on that experience, I think the bar can be set very low. > Surely you mean "how many bits in an octet" ;-) > I prefer something like the examples above. Honestly, I don't know what the names of many syntax features are, but I usually know how to use and interpret them. But, one positive side effect of this is that if I ever do get challenged with a "what is the name of this feature?" question, I will finally be motivated to go look it up. > > Mike |
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Attachments: | On Thu, 04 Dec 2014 04:02:46 +0000 Mike via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> wrote: > I had to maintain a technical forum last year that was getting spammed like crazy. I added the question "how many bits are in a byte?" six. am i failed? |
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On 4/12/2014 8:13 p.m., ketmar via Digitalmars-d-announce wrote: > On Thu, 04 Dec 2014 04:02:46 +0000 > Mike via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> > wrote: > >> I had to maintain a technical forum last year that was getting >> spammed like crazy. I added the question "how many bits are in a >> byte?" > six. am i failed? Google is your friend. https://www.google.co.nz/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=1+byte+to+bits |
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | On 2014-12-03 23:39, Vladimir Panteleev wrote: > That's the name of the parent class :) Or interface, if I recall correctly. -- /Jacob Carlborg |
December 04, 2014 Re: forum.dlang.org is now using DCaptcha | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rikki Cattermole Attachments: | On Thu, 04 Dec 2014 20:31:47 +1300 Rikki Cattermole via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> wrote: > On 4/12/2014 8:13 p.m., ketmar via Digitalmars-d-announce wrote: > > On Thu, 04 Dec 2014 04:02:46 +0000 > > Mike via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> > > wrote: > > > >> I had to maintain a technical forum last year that was getting spammed like crazy. I added the question "how many bits are in a byte?" > > six. am i failed? > > Google is your friend. why not Knuth? Knuth is my friend, and MIX byte is of 6 bits. |
Copyright © 1999-2021 by the D Language Foundation