Re: Pragmatic D Tutorial

2015-02-10 Thread Faux Amis via Digitalmars-d-announce
On Mon 07/10/2013 21:18, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in other languages. This means nothing about loops or structs, because I expect most people to

Re: Pragmatic D Tutorial

2013-10-21 Thread Dejan Lekic
On Thu, 10 Oct 2013 00:24:16 +0200, qznc wrote: On Wednesday, 9 October 2013 at 20:22:39 UTC, Dejan Lekic wrote: It is a very nice web-site, but the main column should be wider. Sometimes the source code floats over to the second column... Hm, not here. I suspect a weird font selection for

Re: Pragmatic D Tutorial

2013-10-16 Thread Tourist
On Sunday, 13 October 2013 at 08:23:16 UTC, Tourist wrote: On Saturday, 12 October 2013 at 23:34:11 UTC, qznc wrote: On Monday, 7 October 2013 at 22:39:26 UTC, qznc wrote: On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu OP: any chance to adjust that page? Then we'll announce to

Pragmatic D Tutorial on reddit and hackernews

2013-10-14 Thread Andrei Alexandrescu
http://www.reddit.com/r/programming/comments/1ofm56/pragmatic_d_tutorial/ https://news.ycombinator.com/item?id=6548111 Discuss! Andrei

Re: Pragmatic D Tutorial

2013-10-14 Thread Kagamin
On Sunday, 13 October 2013 at 13:09:45 UTC, qznc wrote: I would not consider this criticism, since most other languages (Python,Rust,Go) require C wrappers for C++ libraries. I meant a discussion on how to compare D to C++. Can't tell if it's criticism or philosophy. Well... this topic is

Re: Pragmatic D Tutorial on reddit and hackernews

2013-10-14 Thread Andrei Alexandrescu
On 10/14/13 9:23 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/1ofm56/pragmatic_d_tutorial/ https://news.ycombinator.com/item?id=6548111 Discuss! Andrei One interesting request on reddit: Any chance there's a PDF version of this available for reading on the

Re: Pragmatic D Tutorial on reddit and hackernews

2013-10-14 Thread Tourist
On Monday, 14 October 2013 at 20:49:22 UTC, Andrei Alexandrescu wrote: On 10/14/13 9:23 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/1ofm56/pragmatic_d_tutorial/ https://news.ycombinator.com/item?id=6548111 Discuss! Andrei One interesting request on reddit:

Re: Pragmatic D Tutorial

2013-10-13 Thread Tourist
On Saturday, 12 October 2013 at 23:34:11 UTC, qznc wrote: On Monday, 7 October 2013 at 22:39:26 UTC, qznc wrote: On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu OP: any chance to adjust that page? Then we'll announce to reddit. Too early for more publicity, I think. Now

Re: Pragmatic D Tutorial

2013-10-13 Thread Kagamin
http://qznc.github.io/d-tut/basics.html You make it sound like linking with C++ libraries is an easy task. I think, I know how to express difference between C++ and D: newer versions of C++ can compile legacy C++ code, while D drops C++ compatibility for language redesign, which leads to very

Re: Pragmatic D Tutorial

2013-10-13 Thread qznc
On Sunday, 13 October 2013 at 09:42:48 UTC, Kagamin wrote: http://qznc.github.io/d-tut/basics.html You make it sound like linking with C++ libraries is an easy task. I think, I know how to express difference between C++ and D: newer versions of C++ can compile legacy C++ code, while D drops

Re: Pragmatic D Tutorial

2013-10-13 Thread SomeDude
On Tuesday, 8 October 2013 at 00:29:34 UTC, Meta wrote: Sometimes D is criticised, because it is not simple language, in contrast to Go, Rust, Lisp, or Scala. However, a D programmer sees no problem and actually likes his big toolbox. I wouldn't call any of those languages simple, except

Re: Pragmatic D Tutorial

2013-10-12 Thread qznc
On Monday, 7 October 2013 at 22:39:26 UTC, qznc wrote: On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu OP: any chance to adjust that page? Then we'll announce to reddit. Too early for more publicity, I think. Now every chapter has some text. Feel free to publicize it.

Re: Pragmatic D Tutorial

2013-10-12 Thread Andrei Alexandrescu
On 10/12/13 4:34 PM, qznc wrote: On Monday, 7 October 2013 at 22:39:26 UTC, qznc wrote: On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu OP: any chance to adjust that page? Then we'll announce to reddit. Too early for more publicity, I think. Now every chapter has some text.

Re: Pragmatic D Tutorial

2013-10-09 Thread Kagamin
http://beza1e1.tuxen.de/d-tut-0.1/documentation.html Are doxygen comments still endorsed? http://beza1e1.tuxen.de/d-tut-0.1/idiomatic.html Describing a range as a pair of iterators requires a reader with C++ background; the beginning of the tutorial implied wider audience. For other people it

Re: Pragmatic D Tutorial

2013-10-09 Thread Rory McGuire
I used the QT bindings to make a transparent desktop widget once. So they have worked but I'm not sure if they do with the current compiler. I'll see if I can find my old code and see what I have to do to get it to work. On Wed, Oct 9, 2013 at 9:04 AM, Kagamin s...@here.lot wrote:

Re: Pragmatic D Tutorial

2013-10-09 Thread qznc
On Wednesday, 9 October 2013 at 07:04:07 UTC, Kagamin wrote: http://beza1e1.tuxen.de/d-tut-0.1/documentation.html Are doxygen comments still endorsed? I am not aware about any counter arguments. Are there some downsides? I noticed that Returns: is rarely used in Phobos.

Re: Pragmatic D Tutorial

2013-10-09 Thread Jacob Carlborg
On 2013-10-09 10:37, qznc wrote: I am not aware about any counter arguments. Are there some downsides? I noticed that Returns: is rarely used in Phobos. D has built-in support for documentation comments, called ddoc: http://dlang.org/ddoc -- /Jacob Carlborg

Re: Pragmatic D Tutorial

2013-10-09 Thread Kagamin
On Tuesday, 8 October 2013 at 13:59:22 UTC, Meta wrote: I haven't really thought about this before, but it's becoming increasingly difficult for me to come up with a contemporary simple language. It seems most modern languages are creeping towards more complexity. I heard, Lua interpreter

Re: Pragmatic D Tutorial

2013-10-09 Thread Iain Buclaw
On Oct 9, 2013 12:31 PM, Kagamin s...@here.lot wrote: On Tuesday, 8 October 2013 at 13:59:22 UTC, Meta wrote: I haven't really thought about this before, but it's becoming increasingly difficult for me to come up with a contemporary simple language. It seems most modern languages are creeping

Re: Pragmatic D Tutorial

2013-10-09 Thread Dejan Lekic
On Mon, 07 Oct 2013 21:18:38 +0200, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in other languages. This means nothing about loops or structs, because I expect

Re: Pragmatic D Tutorial

2013-10-09 Thread qznc
On Wednesday, 9 October 2013 at 20:22:39 UTC, Dejan Lekic wrote: It is a very nice web-site, but the main column should be wider. Sometimes the source code floats over to the second column... Hm, not here. I suspect a weird font selection for the code. I plan to redesign it at some point

Re: Pragmatic D Tutorial

2013-10-08 Thread Jacob Carlborg
On 2013-10-07 21:18, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. For GUI libraries there's DWT as well. Works on Windows and Linux, uses native drawing and doesn't have any runtime dependencies expect for the

Re: Pragmatic D Tutorial

2013-10-08 Thread Jacob Carlborg
On 2013-10-07 21:18, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. Run-time errors You might want to add that D automatically handles uncaught exceptions and prints a stacktrace when one is thrown. Optimization I

Re: Pragmatic D Tutorial

2013-10-08 Thread Kagamin
http://beza1e1.tuxen.de/d-tut-0.1/philosophy.html Nick's quote with alien woodwork(?) terminology looks not good. An IT professional as a foreign learner may not encounter such words for his entire life (all other text around it looks fine).

Re: Pragmatic D Tutorial

2013-10-08 Thread Kagamin
http://beza1e1.tuxen.de/d-tut-0.1/basics.html One important C#-specific difference is that there's no using statement (which is quite viral in C# as a way of resource management), and scope statement can be used instead of it.

Re: Pragmatic D Tutorial

2013-10-08 Thread Meta
On Tuesday, 8 October 2013 at 01:38:09 UTC, Nick Sabalausky wrote: Lisp is practically the definition of language minimalism, AIUI. But I'd maybe replace Rust/Python with JavaScript. JavaScript is extremely simple. (Which is a large part of what makes using it such a pain, but I digress.)

Re: Pragmatic D Tutorial

2013-10-08 Thread qznc
On Tuesday, 8 October 2013 at 13:59:22 UTC, Meta wrote: I haven't really thought about this before, but it's becoming increasingly difficult for me to come up with a contemporary simple language. It seems most modern languages are creeping towards more complexity. More simple languages are

Pragmatic D Tutorial

2013-10-07 Thread qznc
I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in other languages. This means nothing about loops or structs, because I expect most people to know this stuff. I do not consider D

Re: Pragmatic D Tutorial

2013-10-07 Thread Craig Dillabaugh
On Monday, 7 October 2013 at 19:18:40 UTC, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in other languages. This means nothing about loops or structs, because I

Re: Pragmatic D Tutorial

2013-10-07 Thread Brian Schott
On Monday, 7 October 2013 at 19:18:40 UTC, qznc wrote: Wreck it! :) The only thing that I don't like about it so far is that it's not on wiki.dlang.org. If you put it there it will be easier for learners to discover it, and for the rest of us to help writing it.

Re: Pragmatic D Tutorial

2013-10-07 Thread Tourist
On Monday, 7 October 2013 at 19:18:40 UTC, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in other languages. This means nothing about loops or structs, because I

Re: Pragmatic D Tutorial

2013-10-07 Thread Andrei Alexandrescu
On 10/7/13 12:47 PM, Dicebot wrote: On Monday, 7 October 2013 at 19:34:11 UTC, Craig Dillabaugh wrote: while I got a chuckle out of D is what C++ wanted to be., I might omit this. Insulting C++ isn't likely a great way to attract the C++ crowd, which is one of our major target audiences.

Re: Pragmatic D Tutorial

2013-10-07 Thread Tourist
On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu wrote: OP: any chance to adjust that page? Then we'll announce to reddit. I don't think it's ready. If you want to promote a tutorial, I think that (at least for now) it should be the book of Ali Çehreli. Also I thought that

Re: Pragmatic D Tutorial

2013-10-07 Thread Ali Çehreli
On 10/07/2013 01:42 PM, Tourist wrote: the book of Ali Çehreli. Also I thought that maybe it's worth to turn his book into an interactive tutorial. I thought about the same thing just the other day. :) I want to finish the translation first, which I really am doing. To the OP: I will add

Re: Pragmatic D Tutorial

2013-10-07 Thread Adam D. Ruppe
A note on memory management: you can do your own reference counting with structs, and it works reasonably well.

Re: Pragmatic D Tutorial

2013-10-07 Thread qznc
On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu wrote: On 10/7/13 12:47 PM, Dicebot wrote: On Monday, 7 October 2013 at 19:34:11 UTC, Craig Dillabaugh wrote: while I got a chuckle out of D is what C++ wanted to be., I might omit this. Insulting C++ isn't likely a great way to

Re: Pragmatic D Tutorial

2013-10-07 Thread qznc
On Monday, 7 October 2013 at 20:21:17 UTC, Brian Schott wrote: On Monday, 7 October 2013 at 19:18:40 UTC, qznc wrote: Wreck it! :) The only thing that I don't like about it so far is that it's not on wiki.dlang.org. If you put it there it will be easier for learners to discover it, and for

Re: Pragmatic D Tutorial

2013-10-07 Thread qznc
On Monday, 7 October 2013 at 22:00:53 UTC, Adam D. Ruppe wrote: A note on memory management: you can do your own reference counting with structs, and it works reasonably well. Port shared_ptr (or intrusive_ptr) to D?

Re: Pragmatic D Tutorial

2013-10-07 Thread Meta
On Monday, 7 October 2013 at 19:18:40 UTC, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in other languages. This means nothing about loops or structs, because I

Re: Pragmatic D Tutorial

2013-10-07 Thread Nick Sabalausky
On Mon, 07 Oct 2013 21:47:13 +0200 Dicebot pub...@dicebot.lv wrote: On Monday, 7 October 2013 at 19:34:11 UTC, Craig Dillabaugh wrote: while I got a chuckle out of D is what C++ wanted to be., I might omit this. Insulting C++ isn't likely a great way to attract the C++ crowd, which is

Re: Pragmatic D Tutorial

2013-10-07 Thread Nick Sabalausky
On Tue, 08 Oct 2013 02:29:32 +0200 Meta jared...@gmail.com wrote: On Monday, 7 October 2013 at 19:18:40 UTC, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. It is aimed at people who can already program well in

Re: Pragmatic D Tutorial

2013-10-07 Thread John Joyus
On 10/07/2013 03:18 PM, qznc wrote: I believe one of the things D needs right now is more documentation. Therefore, I started writing a tutorial. http://beza1e1.tuxen.de/d-tut-0.1/index.html Thanks for writing that. I found it useful already. It would be nice if there is a Last Updated