www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Learning resources

reply Dlearner <daz20 msn.com> writes:
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?
Jan 24 2017
next sibling parent reply pineapple <meapineapple gmail.com> writes:
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
Jan 24 2017
parent Dlearner <daz20 msn.com> writes:
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
Jan 24 2017
prev sibling parent reply bachmeier <no spam.net> writes:
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
Jan 24 2017
parent Dlearner <daz20 msn.com> writes:
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!
Jan 25 2017