www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Sample source code for D

reply Ishan Thilina <ishanthilina gmail.com> writes:
I am a novice to D. Is there any place that I can get sample source codes for D
?

Thanks...!
Mar 27 2011
next sibling parent reply Kagamin <spam here.lot> writes:
Ishan Thilina Wrote:

 I am a novice to D. Is there any place that I can get sample source codes for
D ?
 
 Thanks...!

There're examples in docs for phobos and other libraries.
Mar 27 2011
parent Ishan Thilina <ishanthilina gmail.com> writes:
Yeah, I saw them. Aren't there any other places? :)
Mar 27 2011
prev sibling next sibling parent reply David Nadlinger <see klickverbot.at> writes:
On 3/27/11 6:59 PM, Ishan Thilina wrote:
 I am a novice to D. Is there any place that I can get sample source codes for
D ?

 Thanks...!

Are you looking for example code explaining specific pieces of functionality (e.g. Phobos), or just for applications/libraries written in D so you can see how the language is typically used? David
Mar 27 2011
next sibling parent reply Ishan Thilina <ishanthilina gmail.com> writes:
  David:

I'm looking for example code that explains specific pieces of functionality :)

 Lutger:

Those two links were really helpful :). Thank you :)
Mar 27 2011
parent Ishan Thilina <ishanthilina gmail.com> writes:
 Denis:

The tutorials in the dsource were very helpful.

I have read most of those articles that are in the prowiki( the ones you have
given links to). As you have stated they are more suited for beginners :-/ .

Thank you for the help :)
Mar 28 2011
prev sibling parent spir <denis.spir gmail.com> writes:
On 03/28/2011 05:43 AM, Ishan Thilina wrote:
   David:

 I'm looking for example code that explains specific pieces of functionality :)

  Lutger:

 Those two links were really helpful :). Thank you :)

There are tutorial examples of D code at DSource; they were initially D1, but many of them are compatible or translated to D2; rather good place to start: http://www.dsource.org/projects/tutorials On the "official" D wiki, you'll find some useful material and links (tutorial, example, howto); unfortunatly, some of those materials are rather light: http://prowiki.org/wiki4d/wiki.cgi?DevelopmentWithD http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial http://prowiki.org/wiki4d/wiki.cgi?HowTo http://prowiki.org/wiki4d/wiki.cgi?ExamplesRoadmap Also useful comparisons: http://prowiki.org/wiki4d/wiki.cgi?LanguagesVersusD http://en.wikibooks.org/wiki/D_Transition_Guide Denis -- _________________ vita es estrany spir.wikidot.com
Mar 28 2011
prev sibling parent Lutger Blijdestijn <lutger.blijdestijn gmail.com> writes:
Ishan Thilina wrote:

 I am a novice to D. Is there any place that I can get sample source codes
 for D ?
 
 Thanks...!

examples from TDPL: http://erdani.com/tdpl/code/ You could browse github and dsource. Some blogposts also contain examples, see http://planet.dsource.org/
Mar 27 2011