Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 06, 2019 Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
I am new to this programming language, so I really need learning materials about it, I searched online and they mostly just guided me. |
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to nickjonson | On Tuesday, 6 August 2019 at 07:28:04 UTC, nickjonson wrote:
> I am new to this programming language, so I really need learning materials about it, I searched online and they mostly just guided me.
Ali's book is probably the best from-scratch introduction (linked on the homepage). There is also the tour on the homepage, which you can (and should) play with
|
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to nickjonson | On Tuesday, 6 August 2019 at 07:28:04 UTC, nickjonson wrote: > I am new to this programming language, so I really need learning materials about it, I searched online and they mostly just guided me. http://ddili.org/ders/d.en/index.html |
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Haughton | On Tuesday, 6 August 2019 at 07:34:58 UTC, Max Haughton wrote:
> On Tuesday, 6 August 2019 at 07:28:04 UTC, nickjonson wrote:
>> I am new to this programming language, so I really need learning materials about it, I searched online and they mostly just guided me.
>
> http://ddili.org/ders/d.en/index.html
Thank you very much
|
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to nickjonson | On Tuesday, 6 August 2019 at 07:28:04 UTC, nickjonson wrote: > I am new to this programming language, so I really need learning materials about it, I searched online and they mostly just guided me. You can also use the materials we developed for our D ramp up Summer School [1]. It is not extensive, but it is more condensed. [1] https://ocw.cs.pub.ro/courses/dss |
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to nickjonson | On Tuesday, 6 August 2019 at 07:28:04 UTC, nickjonson wrote: > I am new to this programming language, so I really need learning materials about it, I searched online and they mostly just guided me. https://p0nce.github.io/d-idioms/#Which-book-should-I-read? |
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to RazvanN | On Tuesday, 6 August 2019 at 07:45:01 UTC, RazvanN wrote:
> On Tuesday, 6 August 2019 at 07:28:04 UTC, nickjonson wrote:
>> I am new to this programming language, so I really need learning materials about it, I searched online and they mostly just guided me.
>
> You can also use the materials we developed for our D ramp up Summer School [1]. It is not extensive, but it is more condensed.
>
> [1] https://ocw.cs.pub.ro/courses/dss
Cool! One thing I didn't care for reading this that templates are introduced via the shorthand for function and struct/class templates, rather than introducing the general template mechanism first and then showing the shorthand. Templates are one of D's best features and I don't think they should be cropped to fit the C++ viewpoint.
|
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to bpr | On 08/06/2019 10:52 AM, bpr wrote: > On Tuesday, 6 August 2019 at 07:45:01 UTC, RazvanN wrote: >> On Tuesday, 6 August 2019 at 07:28:04 UTC, nickjonson wrote: >>> I am new to this programming language, so I really need learning >>> materials about it, I searched online and they mostly just guided me. >> >> You can also use the materials we developed for our D ramp up Summer >> School [1]. It is not extensive, but it is more condensed. >> >> [1] https://ocw.cs.pub.ro/courses/dss > > Cool! One thing I didn't care for reading this that templates are > introduced via the shorthand for function and struct/class templates, > rather than introducing the general template mechanism first and then > showing the shorthand. Templates are one of D's best features and I > don't think they should be cropped to fit the C++ viewpoint. I think it comes from my earlier choice of that order. (RazvanN and others relied of my format.) I don't remember now exactly why but it was usually for trying to minimize forward references. The actual syntax appears 14 chapters after the shorthand syntax: http://ddili.org/ders/d.en/templates_more.html Ali |
August 06, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Tuesday, 6 August 2019 at 18:58:20 UTC, Ali Çehreli wrote:
> I think it comes from my earlier choice of that order. (RazvanN and others relied of my format.)
That is partly true. We were more concerned with students understanding the basics of templates in general, so we wanted to avoid anything that might cause confusion. The shorthand syntax is simpler and allowed us to focus on the core concepts of templates and template instantiations. Later on, after they get a bit of experience, understanding the general form and syntax will come naturally.
|
August 07, 2019 Re: Need to find materials for new learners about this programming language | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Tuesday, 6 August 2019 at 18:58:20 UTC, Ali Çehreli wrote:
> On 08/06/2019 10:52 AM, bpr wrote:
> > Cool! One thing I didn't care for reading this that templates
> are
> > introduced via the shorthand for function and struct/class
> templates,
> > rather than introducing the general template mechanism first
> and then
> > showing the shorthand. Templates are one of D's best features
> and I
> > don't think they should be cropped to fit the C++ viewpoint.
>
> I think it comes from my earlier choice of that order. (RazvanN and others relied of my format.) I don't remember now exactly why but it was usually for trying to minimize forward references. The actual syntax appears 14 chapters after the shorthand syntax:
>
> http://ddili.org/ders/d.en/templates_more.html
>
> Ali
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?
The full D template is powerful, and reminds me a bit of the parameterized modules of ML family languages like OCaml and SML.
|
Copyright © 1999-2021 by the D Language Foundation