www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Are there more up-to-date D template tutorials?

reply thebluepandabear <therealbluepandabear protonmail.com> writes:
Hello,

The GitHub repo which helps introduce new users about D templates 
(https://github.com/PhilippeSigaud/D-templates-tutorial) seems to 
be quite outdated.

As a beginner to D I have been struggling to learn about D 
templates, I haven't been able to find any up-to-date D template 
resources so I can learn this concept, which sucks.

Is anyone on this forums aware of any up-to-date (preferably 
2019+) D template books/resources? I know C++ has many books on 
this topic, but less so for D.

Help would be appreciated.

Regards,
thebluepandabear
Jan 18 2023
parent reply thebluepandabear <therealbluepandabear protonmail.com> writes:
 Help would be appreciated.

 Regards,
 thebluepandabear
A bit off topic/ranty but I did find the book by Ali on D extremely useful, but it was good as an 'introduction'. I feel like when it comes to more advanced features (such as templates, mixins, ranges, concurrency, etc) there are no resources out there, but I guess that's the 'cost' of picking a lesser-known language. Hopefully in the future there will be more books written on this language, if there was a book on the advanced features of D I'd happily purchase it :)
Jan 18 2023
next sibling parent SealabJaster <sealabjaster gmail.com> writes:
On Thursday, 19 January 2023 at 04:22:21 UTC, thebluepandabear 
wrote:
 ...
I presented a talk[1] at Dconf online 2021, which may or may not be what you're looking for. I know my mic audio is pretty bad, but honestly the slides themselves have all the information you need, so you can just read through if you don't want to watch the video itself. [1] https://www.youtube.com/watch?v=0lo-FOeWecA
Jan 19 2023
prev sibling next sibling parent SealabJaster <sealabjaster gmail.com> writes:
On Thursday, 19 January 2023 at 04:22:21 UTC, thebluepandabear 
wrote:
 ...
I also wrote this article[1] recently exploring how one of my D libraries make use of templates and metaprogramming. Unfortuantely the LinkedIn editor is complete trash and I got to the point any change at all would produce an error; so sadly the article itself is in a very raw and unfinished state. However, there's still plenty of information there to have a look at. [1] https://www.linkedin.com/pulse/d-language-without-compromise-bradley-chatha/?trackingId=ucVY1PBrTNesGvBA6CXp7w%3D%3D
Jan 19 2023
prev sibling parent reply bachmeier <no spam.net> writes:
On Thursday, 19 January 2023 at 04:22:21 UTC, thebluepandabear 
wrote:
 Help would be appreciated.

 Regards,
 thebluepandabear
A bit off topic/ranty but I did find the book by Ali on D extremely useful, but it was good as an 'introduction'. I feel like when it comes to more advanced features (such as templates, mixins, ranges, concurrency, etc) there are no resources out there, but I guess that's the 'cost' of picking a lesser-known language. Hopefully in the future there will be more books written on this language, if there was a book on the advanced features of D I'd happily purchase it :)
Have you checked Mike's book https://www.packtpub.com/product/learning-d/9781783552481?_ga=2.241359490.1811075590.1674153096-1 05518740.1674153096 or Adam's book https://www.packtpub.com/product/d-cookbook/9781783287215?_ga=2.198287279.1811075590.1674153096-1605518740.1674153096 They're older than 2019, but I don't think much of the material they've covered is in any sense obsolete.
Jan 19 2023
parent thebluepandabear <therealbluepandabear protonmail.com> writes:
roduct/learning-d/9781783552481?_ga=2.241359490.1811075590.1674153096-1
05518740.1674153096 or Adam's book
https://www.packtpub.com/product/d-cookbook/9781783287215?_ga=2.198287279.1811075590.1674153096-1605518740.1674153096
 They're older than 2019, but I don't think much of the material 
 they've covered is in any sense obsolete.
Mike's one is more of a learning one. I'll check out Adam's as it seems to be more geared toward learning the advanced stuff of the language, thanks!
Jan 19 2023