View mode: basic / threaded / horizontal-split · Log in · Help
January 15, 2012
Re: A tutorial on D templates
On Sun, Jan 15, 2012 at 03:27, Andrei Alexandrescu
<SeeWebsiteForEmail@erdani.org> wrote:
> On 1/14/12 6:54 PM, Georg Wrede wrote:

>> Why don't we just let the guy write his thing in peace, before demanding
>> a complete book with stylistically professional grammar and style?
>>
>> I mean, at this rate we are beating the horse to death before we've even
>> put it in front of the carriage. If I were Philippe, by this time I'd be
>> stressed out, and the project would start to whither.
>>
>> How about folks just helping him write it, like he asked?
>>
>> There's plenty of time to turn it to the Ten Commandments later, but it
>> needs to exist before that.
>
>
> He asked for feedback. People sent feedback.

No problemo, Georg. I'm not stressed at all by the grammar / style remarks :)

I know that my not being a native English speaker will have me write
awkward sentences. I'm glad people are sending me corrections: like
Andrei said, I asked for feedback. In fact, I'm thrilled to receive
remarks, it means people are interested.
January 15, 2012
Re: A tutorial on D templates
On 2012-01-15 14:33, Philippe Sigaud wrote:
> On Sun, Jan 15, 2012 at 12:26, Jacob Carlborg<doob@me.com>  wrote:
>> I see that you have referenced my Orange library, cool.
>
> As for Orange, is it OK with you if I show a small part of it? Is it
> OK for me to link to the github project?
> Mainly, I wanted to show some tricks you used in util/Reflection.d and
> util/Traits.d. I should rummage in your code again.

Sure, go ahead and use whatever you want :)

> Btw, I think that by using the technics shown in Nick's last year
> article (generating switch/cases from CT information), it would be
> possible to make some parameters of Reflection.d be runtime parameters
> instead of compile-time.

Do you have a link?

> That is, from hasField!(T, "field") to hasField!T("field"). I do not
> know if for serializing it's interesting or not.

It might be, depends on how the implementation look like.

>> Looking at the
>> example for emitting events. I'm not completely sure how it works but it
>> looks like that Fields mixin can be replace with the code you have
>> referenced from my Orange library and opDispatch. Then you could write the
>> Point and Size structs just as regular structs without the mixin.
>
> This mixin comes from Andrej Mitrovic. You should see with him the
> difference with Orange, I admit not knowing much about this.
>
> Philippe

Ok, I see.

-- 
/Jacob Carlborg
January 15, 2012
Re: A tutorial on D templates
> Btw, it's cool you could generate the pdf. Did you have minted and
> pygments already installed?
>

No. But I downloaded minted.sty and apt-get pygmentize when pdflatex failed.


> Don't hesitate to tell me where it's unclear. If you have any example
> in mind or some difficulty that constantly trip you and that does not
> appear in the text, send me a mail, put an issue on github or send me
> a pull request.

Thanks. I have just started reading your tutorial. And I am a slow learner.

Regards
January 15, 2012
Re: A tutorial on D templates
On 01/15/2012 05:34 AM, Philippe Sigaud wrote:
> On Sun, Jan 15, 2012 at 12:16, Jacob Carlborg<doob@me.com>  wrote:
>>> Thank you all for the encouragements!
>>
>>
>> Templates is just one part of the language. There are many other parts to
>> write about :)
>
> *snort*
>
> I do think a big range tutorial is overdue. Andrei's article is good,
> but we need something a bit more detailed / for newbies

I am hoping that this is good enough for now:

  http://ddili.org/ders/d.en/ranges.html

> and shown in
> the website. Maybe even a .ddoc file with phobos.
>
> I wonder if we could provide some Ddoc files like this...

Ali
January 15, 2012
Re: A tutorial on D templates
On 1/15/2012 5:50 AM, Philippe Sigaud wrote:
> In fact, I'm thrilled to receive
> remarks, it means people are interested.

Nothing worse than silence!

Also, I would be doing you a disservice if you ask for feedback, and I don't 
because I thought it might hurt your feelings.
January 15, 2012
Re: A tutorial on D templates
On Sunday, 15 January 2012 at 00:54:37 UTC, Georg Wrede wrote:
> Why don't we just let the guy write his thing in peace, before 
> demanding a complete book with stylistically professional 
> grammar and style?
>
> I mean, at this rate we are beating the horse to death before 
> we've even put it in front of the carriage. If I were Philippe, 
> by this time I'd be stressed out, and the project would start 
> to whither.
>
> How about folks just helping him write it, like he asked?
>
> There's plenty of time to turn it to the Ten Commandments 
> later, but it needs to exist before that.

Getting feedback on writing style early is a great plus to the 
author. That way he can incorporate it in future additions and 
practice it, practice catching it.

As for the discussion at hand, I prefer to remove 'you' most of 
the time. It started with just because I was told to in class, 
but continues because I've seen what it does to my writing, and I 
prefer it. But I'm still not perfect with it.

Also, yay articles/books on D!
January 15, 2012
Re: A tutorial on D templates
On 1/15/2012 5:34 AM, Philippe Sigaud wrote:
> I do think a big range tutorial is overdue. Andrei's article is good,
> but we need something a bit more detailed / for newbies and shown in
> the website. Maybe even a .ddoc file with phobos.

Yeah, we badly need a "The Range Manifesto".
January 15, 2012
Re: A tutorial on D templates
On 1/15/2012 8:00 AM, Ali Çehreli wrote:
> I am hoping that this is good enough for now:
>
> http://ddili.org/ders/d.en/ranges.html

Very nice, I'll read it more carefully later.
January 15, 2012
Re: A tutorial on D templates
On 1/15/2012 8:00 AM, Ali Çehreli wrote:
> I am hoping that this is good enough for now:
>
> http://ddili.org/ders/d.en/ranges.html

Please, can you turn this into a Kindle ebook? Both the Turkish and English 
versions?

http://ddili.org/ders/d.en/index.html
January 15, 2012
Re: A tutorial on D templates
On 01/15/2012 12:18 PM, Walter Bright wrote:
> On 1/15/2012 8:00 AM, Ali Çehreli wrote:
>> I am hoping that this is good enough for now:
>>
>> http://ddili.org/ders/d.en/ranges.html
>
> Please, can you turn this into a Kindle ebook? Both the Turkish and
> English versions?
>
> http://ddili.org/ders/d.en/index.html

Thank you. Will do! :)

Ali
2 3 4 5 6 7 8
Top | Discussion index | About this forum | D home