Thread overview
Good repos to learn D
Sep 19, 2020
Imperatorn
Sep 19, 2020
Jacob Carlborg
Sep 19, 2020
Imperatorn
Sep 20, 2020
H. S. Teoh
Sep 20, 2020
Imperatorn
Sep 21, 2020
WebFreak001
September 19, 2020
What are some good examples of pretty large/medium size, good structured repos in D? I'm looking for examples to learn from

Thanks!
September 19, 2020
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
September 19, 2020
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
September 19, 2020
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
September 20, 2020
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 🌈
September 21, 2020
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

September 21, 2020
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.