www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Ali's Book - Programming in D

reply Ron Tarrant <rontarrant gmail.com> writes:
I guess this is mainly a question for Ali, but if anyone else 
knows the answer, please jump in...

If I were to buy a paperback copy of "Programming in D: Tutorial 
& Reference" from Amazon (this link: 
https://www.amazon.ca/Programming-Tutorial-Reference-Ali-Cehreli/dp/1515074609/ref=sr_1_1?dchild=1&keywords=programming+in+d%3A+tutorial+and+reference&qi
=1631270580&sr=8-1) would I be getting the 2021 edition or an earlier one?

If I can't get the latest edition from Amazon, is there a place 
where I can get it?

Thanks.
Sep 10 2021
next sibling parent reply bauss <jj_1337 live.dk> writes:
On Friday, 10 September 2021 at 10:46:25 UTC, Ron Tarrant wrote:
 I guess this is mainly a question for Ali, but if anyone else 
 knows the answer, please jump in...

 If I were to buy a paperback copy of "Programming in D: 
 Tutorial & Reference" from Amazon (this link: 
 https://www.amazon.ca/Programming-Tutorial-Reference-Ali-Cehreli/dp/1515074609/ref=sr_1_1?dchild=1&keywords=programming+in+d%3A+tutorial+and+reference&qi
=1631270580&sr=8-1) would I be getting the 2021 edition or an earlier one?

 If I can't get the latest edition from Amazon, is there a place 
 where I can get it?

 Thanks.
I'm going to assume it's not the latest edition considering the specifications says this: Publisher ‏ : ‎ CreateSpace Independent Publishing Platform; 1st edition (Aug. 19 2015) But I could be wrong, perhaps Ali himself can answer it better than anyone else.
Sep 10 2021
parent reply Ron Tarrant <rontarrant gmail.com> writes:
On Friday, 10 September 2021 at 10:59:10 UTC, bauss wrote:

 Publisher ‏ : ‎ CreateSpace Independent Publishing Platform; 
 1st edition (Aug. 19 2015)
Yeah, I saw that, too. And if you do a "Look inside," the copyright date is 2019... thus my question. :)
Sep 10 2021
parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 9/10/21 4:48 AM, Ron Tarrant wrote:
 On Friday, 10 September 2021 at 10:59:10 UTC, bauss wrote:

 Publisher =E2=80=8F : =E2=80=8E CreateSpace Independent Publishing Pl=
atform; 1st
 edition (Aug. 19 2015)
Yeah, I saw that, too. And if you do a "Look inside," the copyright da=
te
 is 2019... thus my question. :)
tldr; Yes, it's print-on-demand and 2019 is correct for the current=20 print edition. I would download the PDF version from ddili.org. The following is a list of different versions of the book. 1) The git clone on my computer is the newest, which I may sit on for=20 weeks for minor corrections. (These corrections are recommended by most=20 of you; thank you!) So, this version would have today's date and the=20 code samples in the book (some of them) would be checked with the dmd=20 version installed on my computer. 2) Although updating the site is pretty much automated and free, I may=20 not bother updating the site for minor corrections. If you are happy with a PDF version, the PDF at ddili.org is almost=20 always newer and formatted in almost exactly the same way. The only=20 format differences are that the online PDF version has colored code=20 samples and it does not have a book cover. Currently, the online PDF version says D version: 2.094.2 Book revision: 2021-02-26 3a) The PDF version given to the printers is older partly because=20 updates have some restrictions (e.g. a number of times per certain=20 number of weeks) and updating them requires some labor. I see from your message that the current print versions are from 2019. 3b) The ebook versions may be even older mostly because they require=20 much more labor. (Passing the HTML through Calibre , clicking the=20 correct boxes, etc.) But I think the ebook versions are the same as the printer versions as=20 of this writing. Although I am very happy with the appreciation it gets, of course there=20 are many parts of the book that I want to improve. Some parts even make=20 me cringe. :) - I am embarrassed that the copy constructors still are not in the book. = (Post-blit is featured.) - I want to rewrite parts of the "Imutability" chapter after emails from = Don Allen. It was written before I understood immutable better. There=20 are many examples in the book that use 'immutable' even though I always=20 use 'const' in my own code: immutable a =3D Foo(); // Should be only when really necessary const b =3D Foo(); // Should be used almost always I see people write 'immutable' on these forums and I feel guilty about=20 it. :/ - I can't understand where I got the initial motivation to finish the=20 book. I don't have it now. :/ - I want to thank Steven Schveighoffer here once more for his help with=20 the book. I later realized that his name should have much more=20 prominence. I can't understand how my older self did not realize this=20 fact when the book was being finalized. Ali
Sep 10 2021
next sibling parent someone <someone somewhere.com> writes:
On Friday, 10 September 2021 at 14:21:12 UTC, Ali Çehreli wrote:

 The following is a list of different versions of the book.

 1) The git clone on my computer is the newest, which I may sit 
 on for weeks for minor corrections. (These corrections are 
 recommended by most of you; thank you!) So, this version would 
 have today's date and the code samples in the book (some of 
 them) would be checked with the dmd version installed on my 
 computer.

 2) Although updating the site is pretty much automated and 
 free, I may not bother updating the site for minor corrections.
The following page provides links to download the whole book in many formats: http://ddili.org/ders/d.en/index.html Can you add a link to download the whole book in HTML/XHTML format please ? (say, a zipped file). PDF is great for portability but nothing comes close to as reading large documents in native HTML format ... and (at least to me) far far better one (and only) huge document saved locally allowing you to instantly search back and forward ... and even far far far better: no CSS at all; just leave the rendering to my own browser preferences, as it was intended to in the beginnings.
Sep 10 2021
prev sibling next sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 9/10/21 10:21 AM, Ali Çehreli wrote:
 I want to thank Steven Schveighoffer here once more for his help with 
 the book. I later realized that his name should have much more 
 prominence. I can't understand how my older self did not realize this 
 fact when the book was being finalized.
Your memory may be quite faulty! I think I did review quite a bit of it, but I think I didn't finish reviewing everything (it is a big book). But thank you! -Steve
Sep 10 2021
prev sibling parent reply Ron Tarrant <rontarrant gmail.com> writes:
On Friday, 10 September 2021 at 14:21:12 UTC, Ali Çehreli wrote:

 tldr; Yes, it's print-on-demand and 2019 is correct for the 
 current print edition. I would download the PDF version from 
 ddili.org.
 D version: 2.094.2
 Book revision: 2021-02-26
Off the top of your head, do you know how much difference there is between the 2019 and 2021 version? I'm asking all this because I thought it would be a good idea to have an analog copy handy for those times when I'm in need of reading material to keep me occupied during... um... those moments when I'm trapped in a small room with nothing to do but stare at the towel rack. I thought of printing out bits of the PDF, but wanted to explore the analog option first.
 Although I am very happy with the appreciation it gets, of 
 course there are many parts of the book that I want to improve. 
 Some parts even make me cringe. :)
Well, that's just typical of any writer, Ali. :) Any artist, really. I know your pain, sir. On another note, I've been thinking about rewriting the GtkD Coding blog as a book sometime down the road, so after your remarks, I'm curious as to what the restriction is on how often the raw material can be updated.
Sep 10 2021
next sibling parent someone <someone somewhere.com> writes:
On Friday, 10 September 2021 at 18:05:30 UTC, Ron Tarrant wrote:

 On another note, I've been thinking about rewriting the GtkD 
 Coding blog as a book ...
interesting :)
Sep 10 2021
prev sibling next sibling parent someone <someone somewhere.com> writes:
On Friday, 10 September 2021 at 18:05:30 UTC, Ron Tarrant wrote:

 I'm asking all this because I thought it would be a good idea 
 to have an analog copy handy
I second this; when Ali thinks the one printed on dead-tree-media is up-to date I'll snap a copy of it too; this is one of those books I definitely want on my bookshelf :)
Sep 10 2021
prev sibling parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 9/10/21 11:05 AM, Ron Tarrant wrote:
 On Friday, 10 September 2021 at 14:21:12 UTC, Ali =C3=87ehreli wrote:
=20
 tldr; Yes, it's print-on-demand and 2019 is correct for the current=20
 print edition. I would download the PDF version from ddili.org.
=20
 D version: 2.094.2
 Book revision: 2021-02-26
=20 Off the top of your head, do you know how much difference there is=20 between the 2019 and 2021 version?
Not off the top of my head but by actual commits. :) https://bitbucket.org/acehreli/ddili/commits/ One major change that I can see is property being discouraged. Ali
Sep 10 2021
next sibling parent Ron Tarrant <rontarrant gmail.com> writes:
On Friday, 10 September 2021 at 22:26:34 UTC, Ali Çehreli wrote:

 Not off the top of my head but by actual commits. :)

   https://bitbucket.org/acehreli/ddili/commits/

 One major change that I can see is  property being discouraged.
Good to know. Thanks, Ali.
Sep 11 2021
prev sibling parent Dukc <ajieskola gmail.com> writes:
On Friday, 10 September 2021 at 22:26:34 UTC, Ali Çehreli wrote:
   https://bitbucket.org/acehreli/ddili/commits/
Ah it's there - gotta remember that place if I want to make corrections. Good book - It's the one that got me up to speed with D before I was commited enough to pay for anything. Now while I'm talking, I'll tell the one error I have already spotted, in the `ranges` chapter. It claims that `std.range.generate` calls the underlying function on `front`, not `popFront`. This used to be true long ago, but nowadays the call is done on `popFront` and the call result is cached for `front`.
Sep 11 2021
prev sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 9/10/21 6:46 AM, Ron Tarrant wrote:
 I guess this is mainly a question for Ali, but if anyone else knows the 
 answer, please jump in...
 
 If I were to buy a paperback copy of "Programming in D: Tutorial & 
 Reference" from Amazon (this link: 
 https://www.amazon.ca/Programming-Tutorial-Reference-Ali-Cehreli/dp/1515074609/ref=sr_1_1?dchild=1&keywords=programming+in+d%3A+tutorial+and+reference&qi
=1631270580&sr=8-1) 
 would I be getting the 2021 edition or an earlier one?
 
 If I can't get the latest edition from Amazon, is there a place where I 
 can get it?
 
 Thanks.
Ali's book is generally "print-on-demand". But I don't know the details of how often it gets re-upped on those sites. I'd suggest you wait for Ali to wake up (he's on west coast of the US), and he likely will respond ;) -Steve
Sep 10 2021