Re: forum.dlang.org is now using DCaptcha

2014-12-03 Thread Ary Borenszweig via Digitalmars-d-announce
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 programme

Re: On the meaning of string.length

2014-11-19 Thread Ary Borenszweig via Digitalmars-d-announce
On 11/19/14, 11:33 AM, Adam D. Ruppe wrote: I answered a random C# stackoverflow question about why string.length returns the value it does with some rationale defending code units instead of "characters" - basically, I typed up a defense of D's string-as-array behavior. In Ruby `length` return

Re: Coloring terminal output.

2014-07-27 Thread Ary Borenszweig via Digitalmars-d-announce
On 7/27/14, 11:31 AM, Ary Borenszweig wrote: On 7/27/14, 11:16 AM, Ary Borenszweig wrote: On 7/13/14, 5:11 PM, yamadapc wrote: Hello all :) I've made a simple port of ruby's colorize library for D. I'd greatly appreciate any feedback. Windows isn't supported, yet. Links: http://code.dlang.org

Re: Coloring terminal output.

2014-07-27 Thread Ary Borenszweig via Digitalmars-d-announce
On 7/27/14, 11:16 AM, Ary Borenszweig wrote: On 7/13/14, 5:11 PM, yamadapc wrote: Hello all :) I've made a simple port of ruby's colorize library for D. I'd greatly appreciate any feedback. Windows isn't supported, yet. Links: http://code.dlang.org/packages/colorize https://github.com/yamadapc

Re: Coloring terminal output.

2014-07-27 Thread Ary Borenszweig via Digitalmars-d-announce
On 7/13/14, 5:11 PM, yamadapc wrote: Hello all :) I've made a simple port of ruby's colorize library for D. I'd greatly appreciate any feedback. Windows isn't supported, yet. Links: http://code.dlang.org/packages/colorize https://github.com/yamadapc/d-colorize https://github.com/fazibear/colori

Re: Offtopic: AMA (Was: Interview at Lang.NEXT)

2014-06-06 Thread Ary Borenszweig via Digitalmars-d-announce
On 6/6/14, 5:25 PM, Tourist wrote: On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote: On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/ Andrei This is offtopic, but why are people

Offtopic: AMA (Was: Interview at Lang.NEXT)

2014-06-06 Thread Ary Borenszweig via Digitalmars-d-announce
On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/ Andrei This is offtopic, but why are people obsessed with writing English acronyms? I always have to lookup the meaning and then I'm polluting

Re: Interview at Lang.NEXT

2014-06-04 Thread Ary Borenszweig via Digitalmars-d-announce
On 6/4/14, 6:11 PM, Craig Dillabaugh wrote: On Wednesday, 4 June 2014 at 20:10:51 UTC, Ary Borenszweig wrote: On 6/4/14, 3:33 PM, Craig Dillabaugh wrote: On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote: On 6/4/14, 1:27 PM, Meta wrote: On Wednesday, 4 June 2014 at 06:19:05 UTC

Re: Interview at Lang.NEXT

2014-06-04 Thread Ary Borenszweig via Digitalmars-d-announce
On 6/4/14, 3:33 PM, Craig Dillabaugh wrote: On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote: On 6/4/14, 1:27 PM, Meta wrote: On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexa

Re: Interview at Lang.NEXT

2014-06-04 Thread Ary Borenszweig via Digitalmars-d-announce
On 6/4/14, 2:59 PM, Meta wrote: On Wednesday, 4 June 2014 at 17:57:40 UTC, Ary Borenszweig wrote: Even in function signatures? alias var = std.variant.Variant; auto DoStuff(var x, var y) { //Do stuff with x and y } Cool! It also looks nice too.

Re: Interview at Lang.NEXT

2014-06-04 Thread Ary Borenszweig via Digitalmars-d-announce
On 6/4/14, 2:50 PM, Meta wrote: On Wednesday, 4 June 2014 at 17:31:56 UTC, Ary Borenszweig wrote: You still have to worry about types, though. Yes, but you can often get away without explicitly writing types in D, and there's always std.variant.Variant when you don't want to bother with them.

Re: Interview at Lang.NEXT

2014-06-04 Thread Ary Borenszweig via Digitalmars-d-announce
On 6/4/14, 1:27 PM, Meta wrote: On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/ Andrei When that person made the statement about expressing his mental model in a simple