www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Good repos to learn D

reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
What are some good examples of pretty large/medium size, good 
structured repos in D? I'm looking for examples to learn from

Thanks!
Sep 19 2020
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On Saturday, 19 September 2020 at 08:26:36 UTC, Imperatorn wrote:
 What are some good examples of pretty large/medium size, good 
 structured repos in D? I'm looking for examples to learn from

 Thanks!
Here are some examples of large projects: * DWT [1]. This is one of the largest D projects I'm aware of. It's a port from Java so it's structured like a Java project. I think it works pretty well for D projects as well. But it's not common to have the reverse domain name package structure like in Java. It's more common to have the top level package be named after the project. * Mecca [2]. This one is not as large as DWT, but I think it nicely shows how to separate the platform specific code from the platform independent code. Instead of having `version` statements sprinkled all over the code most platform specific code is located in the `platform` packages. Then it provides a common interface that is used by the rest of the project. * Ocean [3]. This one is quite large as well. [1] https://github.com/d-widget-toolkit/dwt [2] https://github.com/weka-io/mecca [3] https://github.com/sociomantic-tsunami/ocean -- /Jacob Carlborg
Sep 19 2020
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 19 September 2020 at 13:13:58 UTC, Jacob Carlborg 
wrote:
 On Saturday, 19 September 2020 at 08:26:36 UTC, Imperatorn 
 wrote:
 [...]
Here are some examples of large projects: [...]
Thanks, I'll check them out! /Forsberg
Sep 19 2020
prev sibling next sibling parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Sat, Sep 19, 2020 at 08:26:36AM +0000, Imperatorn via Digitalmars-d-learn
wrote:
 What are some good examples of pretty large/medium size, good
 structured repos in D? I'm looking for examples to learn from
[...] Phobos itself. I have to say, it's the most readable programming language standard library that I've come across. I've tried to read glibc code before, and I will never ever do that again(!). Phobos, by contrast, is a pleasure to read (except for a small number of dark corners). T -- Unix was not designed to stop people from doing stupid things, because that would also stop them from doing clever things. -- Doug Gwyn
Sep 19 2020
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 20 September 2020 at 04:27:59 UTC, H. S. Teoh wrote:
 On Sat, Sep 19, 2020 at 08:26:36AM +0000, Imperatorn via 
 Digitalmars-d-learn wrote:
 What are some good examples of pretty large/medium size, good 
 structured repos in D? I'm looking for examples to learn from
[...] Phobos itself. I have to say, it's the most readable programming language standard library that I've come across. I've tried to read glibc code before, and I will never ever do that again(!). Phobos, by contrast, is a pleasure to read (except for a small number of dark corners). T
Thanks! I'll take a look 🌈
Sep 20 2020
prev sibling next sibling parent =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KTQsNC0?= =?UTF-8?B?0LXQtdCy?= writes:
On Saturday, 19 September 2020 at 08:26:36 UTC, Imperatorn wrote:
 What are some good examples of pretty large/medium size, good 
 structured repos in D? I'm looking for examples to learn from

 Thanks!
I often looked into the D std source code: C:\D\dmd2\src\phobos\std
Sep 21 2020
prev sibling parent WebFreak001 <d.forum webfreak.org> writes:
On Saturday, 19 September 2020 at 08:26:36 UTC, Imperatorn wrote:
 What are some good examples of pretty large/medium size, good 
 structured repos in D? I'm looking for examples to learn from

 Thanks!
I would include vibe.d in there of course! https://github.com/vibe-d/vibe.d Some legacy cruft regarding the module separation, but otherwise really solid and tons of stuff just working.
Sep 21 2020