September 22, 2018
On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote:
> ...
> It's no rocket science, so it really doesn't do much in preventing I think.
>
> Really it can be automated like:
>
> 1. Copy the code
> 2. Go to run.dlang.io
> 3. Paste the code
> 4. Compile it
> 5. Wait for the output
> 6. Copy the output
> 7. Paste the output into the input field
> 8. Submit
>
>...

Or since the snippets are simple and some resembling C, the Bot could run itself or even in JavaScript parsing the body of the function and taking care of the return, with in the most case are int or float:

<script>
  var v = "int v(){ return 26 % 3 ? 13 / 3 : 42 % 5;}"; // Original Snippet
  var types = ["int", "float"]; // Type of return
  var s = v.split(" ");
  var t = s[0].toLowerCase();
  s.splice(0,1);

  if(types.indexOf(t)>-1){
  	t = t[0].charAt(0).toUpperCase() + t.slice(1);
  }
  document.writeln(eval("parse"+t+"((function " + s.join(' ') + ")())" ));
</script>

This an example and will print 4 which is the result expected by the Captcha.

https://js.do/code/241565

S.G
September 22, 2018
On Saturday, 22 September 2018 at 19:41:56 UTC, Vladimir Panteleev wrote:
> On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote:
>> And on top of that maybe a flag system.
>
> This exists, but is only visible to certain users.

Maybe it should be visible to more users?
September 22, 2018
On Saturday, 22 September 2018 at 21:42:11 UTC, bauss wrote:
> Maybe it should be visible to more users?

At present I do not believe this would bring an observable benefit.

September 24, 2018
On Saturday, 22 September 2018 at 16:48:35 UTC, SashaGreat wrote:
> PS: By the way the CAPTCHA is awful, look what they throw to us:
>
> int v()
> {
>   return 26 % 3
>     ? 13 / 3
>     : 42 % 5;
> }
>
> I mean

Awww, that's cute! Finding a remainder from division by 3 (three!) is junior school arithmetic. And in this case you don't even need to properly calculate it, only guess that it's not zero. I don't see a good excuse to fail at it.
September 24, 2018
On Monday, 24 September 2018 at 12:44:09 UTC, Kagamin wrote:
> On Saturday, 22 September 2018 at 16:48:35 UTC, SashaGreat wrote:
>> PS: By the way the CAPTCHA is awful, look what they throw to us:
>>
>> int v()
>> {
>>   return 26 % 3
>>     ? 13 / 3
>>     : 42 % 5;
>> }
>>
>> I mean
>
> Awww, that's cute! Finding a remainder from division by 3 (three!) is junior school arithmetic. And in this case you don't even need to properly calculate it, only guess that it's not zero. I don't see a good excuse to fail at it.

Well, it requires you to know what a ternary operator is and how it works. Also, how ints are implicitly converted to bool. Also would be good to know if 13/3 is 4 or 4.33
September 24, 2018
On Monday, 24 September 2018 at 12:56:43 UTC, JN wrote:
>> Awww, that's cute! Finding a remainder from division by 3 (three!) is junior school arithmetic. And in this case you don't even need to properly calculate it, only guess that it's not zero. I don't see a good excuse to fail at it.
>
> Well, it requires you to know what a ternary operator is and how it works. Also, how ints are implicitly converted to bool. Also would be good to know if 13/3 is 4 or 4.33

Exactly and thank you JN. I help CS students at my uni and things that seems trivial are sometimes hard for newbies.

And like you said, there are 2 things in that snippet besides the math: Ternary and a implicit conversion to from int to bool.

Unfortunately skilled people may overlook this because it's natural to them.

S.G.
September 25, 2018
On Monday, 24 September 2018 at 12:44:09 UTC, Kagamin wrote:
> On Saturday, 22 September 2018 at 16:48:35 UTC, SashaGreat wrote:
>> PS: By the way the CAPTCHA is awful, look what they throw to us:
>>
>> int v()
>> {
>>   return 26 % 3
>>     ? 13 / 3
>>     : 42 % 5;
>> }
>>
>> I mean
>
> Awww, that's cute! Finding a remainder from division by 3 (three!) is junior school arithmetic. And in this case you don't even need to properly calculate it, only guess that it's not zero. I don't see a good excuse to fail at it.

Not for someone who is just introduced to programming and doesn't D want to attract newcomers? If so we cannot have a programmer specific captcha.

I mean if you want to learn about history, what if history forums presented you with something like:

"In which country was the first monarchy?"

You'd never know the answer on top of your head unless yoy,

A: Lives in the country that established the first monarchy
B: You google it (Which is an unnecessary burden, because you don't want to be searching stuff just to post on a forum.)
C: You have studied history
D: You're extremely lucky or have gathered the knowledge in one way or another, but most people will not know such answeres on top of their head.
September 25, 2018
On Tuesday, 25 September 2018 at 05:52:57 UTC, bauss wrote:
> Not for someone who is just introduced to programming and doesn't D want to attract newcomers? If so we cannot have a programmer specific captcha.

https://forum.dlang.org/post/vrehthdqtenpnysruqsz@forum.dlang.org

Please address the counter-arguments directly instead of just reiterating your flawed arguments elsewhere in the thread.

September 25, 2018
On Monday, 24 September 2018 at 12:56:43 UTC, JN wrote:
> Well, it requires you to know what a ternary operator is

It wouldn't be a captcha if the questions were like "what is the most popular social network?". Also int doesn't implicitly convert to bool.

On Tuesday, 25 September 2018 at 05:52:57 UTC, bauss wrote:
> Not for someone who is just introduced to programming and doesn't D want to attract newcomers? If so we cannot have a programmer specific captcha.

I don't think you can go into programming from absolute zero.

> I mean if you want to learn about history, what if history forums presented you with something like:
>
> "In which country was the first monarchy?"

Monarchy is prehistoric (watching the Troy movie should be enough), and yes, history forums do something like that. Also you don't study history out of the blue, you're taught it in school.
September 25, 2018
On Tuesday, 25 September 2018 at 07:43:39 UTC, Kagamin wrote:
> On Monday, 24 September 2018 at 12:56:43 UTC, JN wrote:
>> Well, it requires you to know what a ternary operator is
>
> It wouldn't be a captcha if the questions were like "what is the most popular social network?". Also int doesn't implicitly convert to bool.
>
> On Tuesday, 25 September 2018 at 05:52:57 UTC, bauss wrote:
>> Not for someone who is just introduced to programming and doesn't D want to attract newcomers? If so we cannot have a programmer specific captcha.
>
> I don't think you can go into programming from absolute zero.
>
>> I mean if you want to learn about history, what if history forums presented you with something like:
>>
>> "In which country was the first monarchy?"
>
> Monarchy is prehistoric (watching the Troy movie should be enough), and yes, history forums do something like that. Also you don't study history out of the blue, you're taught it in school.

You can as a student at the university, where you're just introduced to programming.

How is monarchy prehistoric? Monarchies still exist today.

https://en.wikipedia.org/wiki/List_of_current_monarchies

That is beside my point though, my point was not about history and you completely missed it.

Facepalm.