www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Using C++ everywhere D is makes things worst

reply karabuta <karabutaworld gmail.com> writes:
I understand many D programmers were formally(or still is or 
in-between) C++ but most explanations for certain things tells me 
either D is a C++ clone or I need to learn C++ first before I 
really understand D (kind of like C++ is a subset of D). I must 
say that I never coded C++ beyond "hello, world!" and I don't 
plan to.

This is not about me and what I want, it is about improving the D 
learning resources available. Explaining D code by using C/C++ 
code and or theory confuses me as a learner. D alone is too much 
to learn.
Feb 03 2016
next sibling parent jkpl <jkpl nowhere.fr> writes:
On Wednesday, 3 February 2016 at 13:27:45 UTC, karabuta wrote:
 I understand many D programmers were formally(or still is or 
 in-between) C++ but most explanations for certain things tells 
 me either D is a C++ clone or I need to learn C++ first before 
 I really understand D (kind of like C++ is a subset of D). I 
 must say that I never coded C++ beyond "hello, world!" and I 
 don't plan to.

 This is not about me and what I want, it is about improving the 
 D learning resources available. Explaining D code by using 
 C/C++ code and or theory confuses me as a learner. D alone is 
 too much to learn.
You neither need a C nor a CPP background to learn D. Before starting to learn D I was only (and barely) reading C, just because of the few times I had to deal with C headers file when using bindings in another lang. You can start D from scratch. This is not because there are comparisons (such as the wiki sections: comming from...) that it's mandatory. For example with http://ddili.org/ders/d.en/index.html you can start from scratch, at least the book is advertised so.
Feb 03 2016
prev sibling parent reply Laeeth Isharc <laeethnospam nospam.laeeth.com> writes:
On Wednesday, 3 February 2016 at 13:27:45 UTC, karabuta wrote:
 I understand many D programmers were formally(or still is or 
 in-between) C++ but most explanations for certain things tells 
 me either D is a C++ clone or I need to learn C++ first before 
 I really understand D (kind of like C++ is a subset of D). I 
 must say that I never coded C++ beyond "hello, world!" and I 
 don't plan to.

 This is not about me and what I want, it is about improving the 
 D learning resources available. Explaining D code by using 
 C/C++ code and or theory confuses me as a learner. D alone is 
 too much to learn.
what language are you coming from ?
Feb 03 2016
parent reply karabuta <karabutaworld gmail.com> writes:
On Wednesday, 3 February 2016 at 15:40:08 UTC, Laeeth Isharc 
wrote:
 On Wednesday, 3 February 2016 at 13:27:45 UTC, karabuta wrote:
 I understand many D programmers were formally(or still is or 
 in-between) C++ but most explanations for certain things tells 
 me either D is a C++ clone or I need to learn C++ first before 
 I really understand D (kind of like C++ is a subset of D). I 
 must say that I never coded C++ beyond "hello, world!" and I 
 don't plan to.

 This is not about me and what I want, it is about improving 
 the D learning resources available. Explaining D code by using 
 C/C++ code and or theory confuses me as a learner. D alone is 
 too much to learn.
what language are you coming from ?
HTML -> CSS -> PHP -> JS -> python -> C -> D
Feb 03 2016
parent "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
On Wed, Feb 03, 2016 at 05:47:56PM +0000, karabuta via Digitalmars-d wrote:
 On Wednesday, 3 February 2016 at 15:40:08 UTC, Laeeth Isharc wrote:
On Wednesday, 3 February 2016 at 13:27:45 UTC, karabuta wrote:
I understand many D programmers were formally(or still is or
in-between) C++ but most explanations for certain things tells me
either D is a C++ clone or I need to learn C++ first before I really
understand D (kind of like C++ is a subset of D). I must say that I
never coded C++ beyond "hello, world!" and I don't plan to.

This is not about me and what I want, it is about improving the D
learning resources available. Explaining D code by using C/C++ code
and or theory confuses me as a learner. D alone is too much to
learn.
what language are you coming from ?
HTML -> CSS -> PHP -> JS -> python -> C -> D
I highly recommend reading Andrei's book (The D Programming Language) as well as Ali's book. I had known of D for quite a long time before I actually started seriously coding in D, because the online docs were (and sadly, probably still are) not suitable for learning the language. They're great (or on the way to becoming great) as a reference, but that's a different story from learning the language from scratch. The turning point for me came when one day, by pure chance, I stumbled across Andrei's book in a local bookstore, and decided on the spur of the moment to purchase it. I didn't even start coding in D immediately; I just lazily browsed through the book at my leisure, and with each reading session I became more and more impressed, until at about 60% or so through the book, I decided that I had become interested enough to try writing some actual code. And the rest is history, as they say. :-P T -- It said to install Windows 2000 or better, so I installed Linux instead.
Feb 03 2016