Re: Good repos to learn D

2020-09-21 Thread WebFreak001 via Digitalmars-d-learn

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.


Re: Good repos to learn D

2020-09-21 Thread Виталий Фадеев via Digitalmars-d-learn

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




Re: Good repos to learn D

2020-09-20 Thread Imperatorn via Digitalmars-d-learn

On Sunday, 20 September 2020 at 04:27:59 UTC, H. S. Teoh wrote:
On Sat, Sep 19, 2020 at 08:26:36AM +, 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 


Re: Good repos to learn D

2020-09-19 Thread H. S. Teoh via Digitalmars-d-learn
On Sat, Sep 19, 2020 at 08:26:36AM +, 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


Re: Good repos to learn D

2020-09-19 Thread Imperatorn via Digitalmars-d-learn
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


Re: Good repos to learn D

2020-09-19 Thread Jacob Carlborg via Digitalmars-d-learn

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


Good repos to learn D

2020-09-19 Thread Imperatorn via Digitalmars-d-learn
What are some good examples of pretty large/medium size, good 
structured repos in D? I'm looking for examples to learn from


Thanks!