Re: Learning resources

2017-01-25 Thread Dlearner via Digitalmars-d-learn

On Tuesday, 24 January 2017 at 22:53:14 UTC, bachmeier wrote:

On Tuesday, 24 January 2017 at 20:15:38 UTC, Dlearner wrote:

[...]


This sounds like exactly what you want: 
https://www.packtpub.com/application-development/d-cookbook  
It's not on sale right now, but if you've got the money, it's 
definitely worth it.


While it's not a cookbook, this one is good too: 
https://www.packtpub.com/application-development/learning-d


Some others if you haven't seen them:
http://ddili.org/ders/d.en/index.html
https://wiki.dlang.org/Tutorials
http://rosettacode.org/wiki/Category:D


I now have those books, and the Rosetta Code site seems to be the 
kind of worked exercises I like.  Thank you for this!


Re: Learning resources

2017-01-24 Thread bachmeier via Digitalmars-d-learn

On Tuesday, 24 January 2017 at 20:15:38 UTC, Dlearner wrote:

Hey all!

I'm learning programming through D and having a really good 
time (much better than with C++ or Python).  I'm aiming to make 
little games with it as a hobby so I've learned some OpenGL 
stuff.
But, I feel like I'm learning more library code rather than D 
concepts and idioms, especially where efficiency and 
performance are concerned.  (I also have a light interest in 
functional programming for when it would make sense to employ 
those principles.)


Are there any tutorials that show off the power of D with 
worked examples that explain the importance of certain features?


This sounds like exactly what you want: 
https://www.packtpub.com/application-development/d-cookbook  It's 
not on sale right now, but if you've got the money, it's 
definitely worth it.


While it's not a cookbook, this one is good too: 
https://www.packtpub.com/application-development/learning-d


Some others if you haven't seen them:
http://ddili.org/ders/d.en/index.html
https://wiki.dlang.org/Tutorials
http://rosettacode.org/wiki/Category:D



Re: Learning resources

2017-01-24 Thread Dlearner via Digitalmars-d-learn

On Tuesday, 24 January 2017 at 21:14:08 UTC, pineapple wrote:

On Tuesday, 24 January 2017 at 20:15:38 UTC, Dlearner wrote:

Hey all!

I'm learning programming through D and having a really good 
time (much better than with C++ or Python).  I'm aiming to 
make little games with it as a hobby so I've learned some 
OpenGL stuff.
But, I feel like I'm learning more library code rather than D 
concepts and idioms, especially where efficiency and 
performance are concerned.  (I also have a light interest in 
functional programming for when it would make sense to employ 
those principles.)


Are there any tutorials that show off the power of D with 
worked examples that explain the importance of certain 
features?


I highly recommend going through this to start with:

https://p0nce.github.io/d-idioms/

I've been working on this library (which includes some gamedev 
and functional programming stuff). It's moderately-well 
documented and I am more than happy to help and provide 
examples if it interests you


https://github.com/pineapplemachine/mach.d/tree/master/mach/sdl


Oh yes, I had a perusal of the D-idioms page.  A lot of it was 
too advanced for someone like me, but I learned a few things!
I try to learn a lot about programming in general, so I got into 
Data Oriented Design.  I don't touch OOP stuff, I use POD structs 
and enjoy the benefits of UFCS and CTFE.  They really make life 
much simpler.


Your library looks really convenient, too.  And it's called 
pineapple machine so that's a plus.  I'll try and have a mess 
around with it this week and see how far I can get, then will 
probably ask a bunch of questions.  :D




Re: Learning resources

2017-01-24 Thread pineapple via Digitalmars-d-learn

On Tuesday, 24 January 2017 at 20:15:38 UTC, Dlearner wrote:

Hey all!

I'm learning programming through D and having a really good 
time (much better than with C++ or Python).  I'm aiming to make 
little games with it as a hobby so I've learned some OpenGL 
stuff.
But, I feel like I'm learning more library code rather than D 
concepts and idioms, especially where efficiency and 
performance are concerned.  (I also have a light interest in 
functional programming for when it would make sense to employ 
those principles.)


Are there any tutorials that show off the power of D with 
worked examples that explain the importance of certain features?


I highly recommend going through this to start with:

https://p0nce.github.io/d-idioms/

I've been working on this library (which includes some gamedev 
and functional programming stuff). It's moderately-well 
documented and I am more than happy to help and provide examples 
if it interests you


https://github.com/pineapplemachine/mach.d/tree/master/mach/sdl


Learning resources

2017-01-24 Thread Dlearner via Digitalmars-d-learn

Hey all!

I'm learning programming through D and having a really good time 
(much better than with C++ or Python).  I'm aiming to make little 
games with it as a hobby so I've learned some OpenGL stuff.
But, I feel like I'm learning more library code rather than D 
concepts and idioms, especially where efficiency and performance 
are concerned.  (I also have a light interest in functional 
programming for when it would make sense to employ those 
principles.)


Are there any tutorials that show off the power of D with worked 
examples that explain the importance of certain features?


What learning resources are available?

2014-02-18 Thread Mark Isaacson
Hi everyone - I'm a D newbie with a very strong C++ background 
looking to get started. I've read The D Programming Language a 
couple of times now, but I've heard rumblings at several points 
in time from several people that some if its contents are now out 
of date or no longer reflect best practices.


What would be the best way to bridge the learning gap between 
TDPL's publication and now?


What other resources would be most useful in establishing a 
working knowledge of idiomatic D?


What's the best way to stay informed about such changes in the 
future? (Is there a mailing list, or should I just be reading dmd 
changelogs?)


Thanks in advance!


Re: What learning resources are available?

2014-02-18 Thread simendsjo

On Tuesday, 18 February 2014 at 19:17:55 UTC, Mark Isaacson wrote:
Hi everyone - I'm a D newbie with a very strong C++ background 
looking to get started. I've read The D Programming Language 
a couple of times now, but I've heard rumblings at several 
points in time from several people that some if its contents 
are now out of date or no longer reflect best practices.


What would be the best way to bridge the learning gap between 
TDPL's publication and now?


What other resources would be most useful in establishing a 
working knowledge of idiomatic D?


What's the best way to stay informed about such changes in the 
future? (Is there a mailing list, or should I just be reading 
dmd changelogs?)


Thanks in advance!


I can just speak for myself, but I've been learning D by 
following the newsgroups and reading the phobos and druntime 
code. Not sure if there are quicker ways to get up to date.




Re: What learning resources are available?

2014-02-18 Thread H. S. Teoh
On Tue, Feb 18, 2014 at 07:17:53PM +, Mark Isaacson wrote:
 Hi everyone - I'm a D newbie with a very strong C++ background
 looking to get started. I've read The D Programming Language a
 couple of times now, but I've heard rumblings at several points in
 time from several people that some if its contents are now out of
 date or no longer reflect best practices.

I would say that most of TDPL is still applicable today. The parts that
are out-of-date are mostly confined to the more advanced features. There
has been some new syntax added since, but they have mostly been
syntactic sugar, not fundamental changes, so you should notice very few
discrepancies there.

Another great resource is Ali Cehreli's introductory book to D:

http://ddili.org/ders/d.en/

It takes a different approach from TDPL, and is more recent, so you may
find it helpful.


 What would be the best way to bridge the learning gap between TDPL's
 publication and now?

Honestly, there's not that much of a gap. I'd wager at least 80% (if not
more) of TDPL is still relevant today.


 What other resources would be most useful in establishing a working
 knowledge of idiomatic D?

Read Phobos source code, perhaps? :)  I'm quite serious, actually.
Phobos source code is actually very readable as far as standard
libraries go (compared to, say, glibc, which is not only an eyesore but
will give you a headache for weeks). I've found it a pleasure to read,
for the most part.  (There are some dark corners in Phobos code, but you
don't have to go there to pick up the latest D practices!)


 What's the best way to stay informed about such changes in the
 future? (Is there a mailing list, or should I just be reading dmd
 changelogs?)
[...]

This forum should keep you pretty up-to-date. ;-)


T

-- 
One disk to rule them all, One disk to find them. One disk to bring them
all and in the darkness grind them. In the Land of Redmond where the
shadows lie. -- The Silicon Valley Tarot


Re: What learning resources are available?

2014-02-18 Thread John Colvin

On Tuesday, 18 February 2014 at 19:17:55 UTC, Mark Isaacson wrote:
Hi everyone - I'm a D newbie with a very strong C++ background 
looking to get started. I've read The D Programming Language 
a couple of times now, but I've heard rumblings at several 
points in time from several people that some if its contents 
are now out of date or no longer reflect best practices.


What would be the best way to bridge the learning gap between 
TDPL's publication and now?


What other resources would be most useful in establishing a 
working knowledge of idiomatic D?


What's the best way to stay informed about such changes in the 
future? (Is there a mailing list, or should I just be reading 
dmd changelogs?)


Thanks in advance!


Combining other posts with my opinion of each item:

A combination of:

TDPL: overview of the language with justifications, should be 
very well targeted for an experienced C++ programmer


http://ddili.org/ders/d.en/ for a few more up to date details and 
good basic introductions to anything you get confused by.


Phobos code: Judicious use of the power of D. Not all good, but 
if you look at the more frequently updated modules you should get 
a nice picture.


http://rosettacode.org/wiki/Category:D for lots of D solutions to 
common problems etc. Mostly by bearophile (I think?), stretching 
the limits of terse range-based D code.


Re: What learning resources are available?

2014-02-18 Thread Tobias Pankrath

On Tuesday, 18 February 2014 at 19:17:55 UTC, Mark Isaacson wrote:
Hi everyone - I'm a D newbie with a very strong C++ background 
looking to get started. I've read The D Programming Language 
a couple of times now, but I've heard rumblings at several 
points in time from several people that some if its contents 
are now out of date or no longer reflect best practices.


What would be the best way to bridge the learning gap between 
TDPL's publication and now?


What other resources would be most useful in establishing a 
working knowledge of idiomatic D?


What's the best way to stay informed about such changes in the 
future? (Is there a mailing list, or should I just be reading 
dmd changelogs?)


Thanks in advance!


This one is quite cool: 
https://github.com/PhilippeSigaud/D-templates-tutorial