August 06, 2019
On 08/06/2019 05:40 PM, bpr wrote:

>>   http://ddili.org/ders/d.en/templates_more.html

> didn't mean to disparage your book

No worries; I did not read it that way. :)

> have you ever considered introducing it
> the other way?

[Introducing the full template syntax after the shorthand syntax.]

I'm with Razvan on this one: The simple syntax is very approachable and makes it very easy to introduce the topic.

Elsewhere, I chose the reverse order when introducing loops:

- First the while loop
- Then the for loop
- Then the foreach loop
(- And finally iterating over user defined types and ranges)

Some people argue that the order should be reversed because foreach is what we should mostly be using but I think looping is a relatively simple concept that going from bottom up was the right decision there.

With the lambda syntax, I chose the full syntax first and then the => syntax:

  http://ddili.org/ders/d.en/lambda.html#ix_lambda.=%3E

Ali

August 08, 2019
On Wednesday, 7 August 2019 at 00:40:09 UTC, bpr wrote:
> On Tuesday, 6 August 2019 at 18:58:20 UTC, Ali Çehreli wrote:
>> On 08/06/2019 10:52 AM, bpr wrote:

> Oh I didn't realize that, and didn't mean to disparage your book, which is an outstanding introduction to D aimed at beginning programmers. I assumed that the page I cited was intended for people who knew a bit about programming. That said, have you ever considered introducing it the other way?

https://github.com/aberba/learn-coding


1 2
Next ›   Last »