Jump to page: 1 2
Thread overview
D Programming Language book - outdated, list of changes since?
Oct 23, 2013
Guido Kollerie
Oct 23, 2013
simendsjo
Oct 23, 2013
Guido Kollerie
Oct 23, 2013
simendsjo
Oct 23, 2013
Meta
Oct 23, 2013
simendsjo
Oct 23, 2013
Dicebot
Oct 23, 2013
Brad Anderson
Oct 23, 2013
Kapps
Oct 24, 2013
Russel Winder
Oct 24, 2013
Jonathan M Davis
Oct 23, 2013
Suliman
Oct 23, 2013
Dicebot
Oct 24, 2013
Jonathan M Davis
Oct 25, 2013
Daniel Davidson
Oct 26, 2013
Jonathan M Davis
Oct 24, 2013
Guido Kollerie
Oct 24, 2013
Ali Çehreli
Oct 24, 2013
Jonathan M Davis
Oct 25, 2013
Guido Kollerie
October 23, 2013
Hi,

Wanting to learn another modern statically typed language I decided upon learning D and have ordered Andrei Alexandrescu's book 'The D Programming Language'. Watching Walter Bright's DConf 2013's keynote last night, someone mentioned it was already out of date.

I was wondering is there is a list of things that have changed since the book was printed? Something along the lines of "The book says x, nowadays its better to do y" type of document?

-- 
Guido Kollerie



October 23, 2013
On Wednesday, 23 October 2013 at 07:41:54 UTC, Guido Kollerie wrote:
> Hi,
>
> Wanting to learn another modern statically typed language I decided upon
> learning D and have ordered Andrei Alexandrescu's book 'The D
> Programming Language'. Watching Walter Bright's DConf 2013's keynote
> last night, someone mentioned it was already out of date.
>
> I was wondering is there is a list of things that have changed since the
> book was printed? Something along the lines of "The book says x,
> nowadays its better to do y" type of document?

http://erdani.com/tdpl/errata/
October 23, 2013
On 23/10/13 09:43 , simendsjo wrote:
> On Wednesday, 23 October 2013 at 07:41:54 UTC, Guido Kollerie wrote:

>> I was wondering is there is a list of things that have changed since the book was printed? Something along the lines of "The book says x, nowadays its better to do y" type of document?
>
> http://erdani.com/tdpl/errata/

Thanks for the link to the errata. Very welcome.

Though what I was looking for specifically is a document that lists syntax, techniques, best practices that the books describes but that have been superseded but newer syntax, techniques and/or best practices.

-- 
Guido Kollerie




October 23, 2013
On Wednesday, 23 October 2013 at 11:17:08 UTC, Guido Kollerie wrote:
> On 23/10/13 09:43 , simendsjo wrote:
>> On Wednesday, 23 October 2013 at 07:41:54 UTC, Guido Kollerie wrote:
>
>>> I was wondering is there is a list of things that have changed since the
>>> book was printed? Something along the lines of "The book says x,
>>> nowadays its better to do y" type of document?
>>
>> http://erdani.com/tdpl/errata/
>
> Thanks for the link to the errata. Very welcome.
>
> Though what I was looking for specifically is a document that lists
> syntax, techniques, best practices that the books describes but that
> have been superseded but newer syntax, techniques and/or best practices.

Ah, my bad. I don't know of any unfortunately.

Perhaps Alis book (although it's meant for beginning programmers)
http://ddili.org/ders/d.en/index.html

Rosettacode might have some examples. Bearophile has been trying to code them using idiomatic D I think.
http://rosettacode.org/wiki/Category:D

And the wiki might have some info.
http://wiki.dlang.org/The_D_Programming_Language
October 23, 2013
On Wednesday, 23 October 2013 at 07:41:54 UTC, Guido Kollerie wrote:
> Hi,
>
> Wanting to learn another modern statically typed language I decided upon
> learning D and have ordered Andrei Alexandrescu's book 'The D
> Programming Language'. Watching Walter Bright's DConf 2013's keynote
> last night, someone mentioned it was already out of date.
>
> I was wondering is there is a list of things that have changed since the
> book was printed? Something along the lines of "The book says x,
> nowadays its better to do y" type of document?

I don't believe there's any official list. A few things I can think of off the top of my head are: shared isn't implemented, scope is only partially implemented for delegates, multiple alias this is not implemented.
October 23, 2013
On Wednesday, 23 October 2013 at 11:47:47 UTC, Meta wrote:
> On Wednesday, 23 October 2013 at 07:41:54 UTC, Guido Kollerie wrote:
>> Hi,
>>
>> Wanting to learn another modern statically typed language I decided upon
>> learning D and have ordered Andrei Alexandrescu's book 'The D
>> Programming Language'. Watching Walter Bright's DConf 2013's keynote
>> last night, someone mentioned it was already out of date.
>>
>> I was wondering is there is a list of things that have changed since the
>> book was printed? Something along the lines of "The book says x,
>> nowadays its better to do y" type of document?
>
> I don't believe there's any official list. A few things I can think of off the top of my head are: shared isn't implemented, scope is only partially implemented for delegates, multiple alias this is not implemented.

The book was written before UDAs, so that's new.
And before UFCS..?
October 23, 2013
On Wednesday, 23 October 2013 at 11:51:22 UTC, simendsjo wrote:
> And before UFCS..?

AFAIR it mentions only partial UFCS, for built-in stuff
October 23, 2013
It would be great to have updated TDPL book...
October 23, 2013
On Wednesday, 23 October 2013 at 12:39:22 UTC, Suliman wrote:
> It would be great to have updated TDPL book...

I think it is tiny bit too early. Probably a good time can be somewhere after next DConf, after fate of some controversial features/issues is determined and set in stone.
October 23, 2013
On Wednesday, 23 October 2013 at 11:59:19 UTC, Dicebot wrote:
> On Wednesday, 23 October 2013 at 11:51:22 UTC, simendsjo wrote:
>> And before UFCS..?
>
> AFAIR it mentions only partial UFCS, for built-in stuff

It calls them "pseudo members"* and only spends a couple paragraphs on them.  It talks about them in the context of needing to add members to built-in types (an array example is given) but doesn't say they only work for built-in types.  It's surprisingly little coverage for a feature that has become highly used since it was finally fully implemented not long ago.

* I actually like the name "pseudo members" much better than UFCS.  (Uniform/Unified/Universal) Function Call Syntax doesn't really tell you anything about what is going on and the fact that it's almost always referred to by initialism just obfuscates what it is further and lead to the state we are in where people keep using different words for the 'U'.
« First   ‹ Prev
1 2