May 06, 2014
On Tuesday, 6 May 2014 at 15:28:01 UTC, Szymon Gatner wrote:
> Everything sounds great, really can't wait. Coming from C++ I am really interested in resource management. I still can't find myself in non-deterministic d-tor / GC world (and recent discussion on removal of d-tors entirely isn't helping ;P).

Actually, my main recommendation is to try not to worry about it and love the GC! When it works, it really is pretty nice, and I find it works well enough in most places to be really useful.

But when it isn't right for you, then the other options come in and I showed some tricks to do it. Move semantics, for example, might not be obvious but is easy once you see the trick: disable the postblit and provide a release method. So that's the kind of stuff the chapter focuses on.
May 06, 2014
On 3/3/14, 8:37 AM, Adam D. Ruppe wrote:
> As some of you might know, I've been working on a D book over the last
> few months. It is now available as "coming soon" on the publisher's
> website:
>
> http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book

I just agreed with Packt to write a foreword for the book. -- Andrei
May 06, 2014
On Monday, 5 May 2014 at 12:34:18 UTC, Adam D. Ruppe wrote:
> We're publishing in about two weeks now so it won't be long until the real thing is out anyway!

Just preordered the ebook, waiting to read that :)

May 06, 2014
On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
> On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
>> Any way to see the TOC?
>
> Hmm, not on the website yet but here it is.
> [snip]

Sounds awesome!

May 27, 2014
On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote:
> On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
>> On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
>>> Any way to see the TOC?
>>
>> Hmm, not on the website yet but here it is.
> > [snip]
>
> Sounds awesome!

Jus got mail from PacktPub: D Cookbook is now released:

http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book

Congratz!
May 27, 2014
On Tuesday, 27 May 2014 at 10:00:01 UTC, Szymon Gatner wrote:
> On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote:
>> On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
>>> On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
>>>> Any way to see the TOC?
>>>
>>> Hmm, not on the website yet but here it is.
>> > [snip]
>>
>> Sounds awesome!
>
> Jus got mail from PacktPub: D Cookbook is now released:
>
> http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
>
> Congratz!

Just downloaded the eBook version. Printed version will soon follow, I suppose. It couldn't have arrived at a better time, because I'm re-organizing and revising my code at the moment.
May 27, 2014
On Tuesday, 27 May 2014 at 10:00:01 UTC, Szymon Gatner wrote:
> On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote:
>> On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
>>> On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
>>>> Any way to see the TOC?
>>>
>>> Hmm, not on the website yet but here it is.
>> > [snip]
>>
>> Sounds awesome!
>
> Jus got mail from PacktPub: D Cookbook is now released:
>
> http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
>
> Congratz!

I am  reading it now, but there is a lot of errata :(.
May 27, 2014
On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote:
> I am  reading it now, but there is a lot of errata :(.

What do you mean?
May 27, 2014
On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote:
> I am  reading it now, but there is a lot of errata :(.

Well that's a good thing about PDF, because you can fix it and update the version online.

Matheus.
May 27, 2014
I mean there is a lot of typo (for e.g. multiple ';' chars at the end of line, import std.stdio : writeln;;;)
on page 2,6,8,10,14 ...

On page 19:
static Vector fromPoint(float[2] point) {
import std.math;
Vector v;
float x = point[0];
float y= point[1];
v.magnitude = sqrt(x ^^ 2 + y ^^ 2);
v.direction = atan2(y, x);
return v;
}}} // this 3 brackets

Vector opBinary(string op : "+")(Vector rhs) const {
auto point = toPoint(), point2 = rhs.toPoint();
point[0] += point2[0];
point[1] += point2[1];];]; // here
return Vector.fromPoint(point);); // and here
}

That is what I  already found







Dne Tue, 27 May 2014 13:45:53 +0200 Adam D. Ruppe via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> napsal(a):

> On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote:
>> I am  reading it now, but there is a lot of errata :(.
>
> What do you mean?


-- 
Vytvořeno poštovní aplikací Opery: http://www.opera.com/mail/