www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - The DIID series (Do It In D)

reply Guillaume Piolat <first.last gmail.com> writes:
How bad really is the D ecosystem?

I've started the DIID series, a good old snippet collection for 
you to copy/paste.
A series of article to highlight how shockingly easy some things 
are in D today.

https://p0nce.github.io/d-idioms/#DIID-#1---Parse-XML-file
https://p0nce.github.io/d-idioms/#DIID-#2---Play-music
https://p0nce.github.io/d-idioms/#DIID-#3---Convert-Markdown-to-HTML
https://p0nce.github.io/d-idioms/#DIID-#4---Draw-an-accelerated-triangle
https://p0nce.github.io/d-idioms/#DIID-#5---Draw-a-triangle-in-a-PDF
https://p0nce.github.io/d-idioms/#DIID-#6---Parse-JSON-file

All code in one place at: https://github.com/p0nce/DIID

Preferred topics:
- promote ecosystem-ey ways to do a common (but not completely 
trivial) task,
- with a business-friendly licence
- provide full source code / snippet
- DUB and _maintained_ libraries only
- ideally works with "dub run"
- works at least on Linux and Windows
- no talk

If you have ideas that enter in that mindset, you are welcome to 
contribute articles or article ideas, as I fear the ecosystem has 
lots of undiscovered power for the people to wield.
I'd be curious to hear about how a few lines of package X solves 
problem Y for you.
Jan 23 2022
next sibling parent zjh <fqbqrr 163.com> writes:
On Sunday, 23 January 2022 at 14:23:45 UTC, Guillaume Piolat 
wrote:
 How bad really is the D ecosystem?

 I've started the DIID series, a good old snippet collection for 
 you to copy/paste.
Very Good!
Jan 23 2022
prev sibling next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 23 January 2022 at 14:23:45 UTC, Guillaume Piolat 
wrote:
 How bad really is the D ecosystem?

 I've started the DIID series, a good old snippet collection for 
 you to copy/paste.
 A series of article to highlight how shockingly easy some 
 things are in D today.

 [...]
YESSS!!
Jan 24 2022
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
This is a nice initiative, Thanks!

But may I offer a suggestion:

The phrase "How bad really is the D ecosystem?" only asks a question, but
people 
tend to interpret such sentences as "D's ecosystem is really bad". What works 
better is:

"How good really is the D ecosystem?"
Jan 24 2022
parent reply Elronnd <elronnd elronnd.net> writes:
On Monday, 24 January 2022 at 23:33:29 UTC, Walter Bright wrote:
 The phrase "How bad really is the D ecosystem?" only asks a 
 question, but people tend to interpret such sentences as "D's 
 ecosystem is really bad". What works better is:

 "How good really is the D ecosystem?"
Your suggested phrasing sounds overly trite to me. I would maybe go for 'Is the D ecosystem really that bad?'
Jan 24 2022
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/24/2022 4:34 PM, Elronnd wrote:
 On Monday, 24 January 2022 at 23:33:29 UTC, Walter Bright wrote:
 The phrase "How bad really is the D ecosystem?" only asks a question, but 
 people tend to interpret such sentences as "D's ecosystem is really bad". What 
 works better is:

 "How good really is the D ecosystem?"
Your suggested phrasing sounds overly trite to me.  I would maybe go for 'Is the D ecosystem really that bad?'
Again, never write "Is the D ecosystem really that bad?" unless one wants to give the impression that the D ecosystem is bad. Because all the dear reader actually sees is: D ecosystem bad
Jan 24 2022
next sibling parent Tejas <notrealemail gmail.com> writes:
On Tuesday, 25 January 2022 at 01:15:11 UTC, Walter Bright wrote:
 On 1/24/2022 4:34 PM, Elronnd wrote:
 On Monday, 24 January 2022 at 23:33:29 UTC, Walter Bright 
 wrote:
 The phrase "How bad really is the D ecosystem?" only asks a 
 question, but people tend to interpret such sentences as "D's 
 ecosystem is really bad". What works better is:

 "How good really is the D ecosystem?"
Your suggested phrasing sounds overly trite to me.  I would maybe go for 'Is the D ecosystem really that bad?'
Again, never write "Is the D ecosystem really that bad?" unless one wants to give the impression that the D ecosystem is bad. Because all the dear reader actually sees is: D ecosystem bad
I agree, it's far easier for people to focus on the negatives than the positives, using any word that has a negative connotation will likely deter the average newcomer from continuing their journey. Walter's version can be used, or if one wants to sound neutral:
 Check out what the D ecosystem has to offer
Can be used instead
Jan 24 2022
prev sibling parent reply Guillaume Piolat <first.last gmail.com> writes:
On Tuesday, 25 January 2022 at 01:15:11 UTC, Walter Bright wrote:
 On 1/24/2022 4:34 PM, Elronnd wrote:
 On Monday, 24 January 2022 at 23:33:29 UTC, Walter Bright 
 wrote:
 The phrase "How bad really is the D ecosystem?" only asks a 
 question, but people tend to interpret such sentences as "D's 
 ecosystem is really bad". What works better is:

 "How good really is the D ecosystem?"
Your suggested phrasing sounds overly trite to me.  I would maybe go for 'Is the D ecosystem really that bad?'
Again, never write "Is the D ecosystem really that bad?" unless one wants to give the impression that the D ecosystem is bad. Because all the dear reader actually sees is: D ecosystem bad
I'll consider fixing this. I always read "How good really is X?" as "this is bad" and "How bad really is X?" as "this is good" probably because for the french the best appreciation you can get is "not bad!"
Jan 25 2022
next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 1/25/2022 12:44 AM, Guillaume Piolat wrote:
 I'll consider fixing this.
 I always read "How good really is X?" as "this is bad"
 and "How bad really is X?" as "this is good"
 probably because for the french the best appreciation you can get is "not bad!"
Thanks for considering it.
Jan 25 2022
prev sibling next sibling parent matheus <matheus gmail.com> writes:
On Tuesday, 25 January 2022 at 08:44:34 UTC, Guillaume Piolat 
wrote:
 I'll consider fixing this.
 I always read "How good really is X?" as "this is bad"
 and "How bad really is X?" as "this is good"
 probably because for the french the best appreciation you can 
 get is "not bad!"
Brazilian here and it's the same for me. Like for example, you can browse and see things like: "Is this cheap guitar brand really bad?" And then you watch the review and this good guitar player surprises everyone with a good sound from that cheap guitar. Usually titles like: Is "something" really bad? - Shows just the opposite. Is "something" really good? - Probably will show how bad that thing is. At least for me and for what I've been seeing online. Finally about your OT, this a good initiative and nice to see these implementations in D. Matheus.
Jan 25 2022
prev sibling parent reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Tuesday, 25 January 2022 at 08:44:34 UTC, Guillaume Piolat 
wrote:
 I always read "How good really is X?" as "this is bad"
 and "How bad really is X?" as "this is good"
Yes, I think that is pretty universal. Didn't feel anything was wrong with the title, but the fact that most examples used "arsd" gave me the impression that there was only one good library…
Jan 26 2022
next sibling parent JN <666total wp.pl> writes:
On Wednesday, 26 January 2022 at 08:00:53 UTC, Ola Fosheim 
Grøstad wrote:
 On Tuesday, 25 January 2022 at 08:44:34 UTC, Guillaume Piolat 
 wrote:
 I always read "How good really is X?" as "this is bad"
 and "How bad really is X?" as "this is good"
Yes, I think that is pretty universal. Didn't feel anything was wrong with the title, but the fact that most examples used "arsd" gave me the impression that there was only one good library…
I feel like some examples, for example JSON one could use some explanation, why not just use std.json.
Jan 26 2022
prev sibling parent reply Guillaume Piolat <first.last gmail.com> writes:
On Wednesday, 26 January 2022 at 08:00:53 UTC, Ola Fosheim 
Grøstad wrote:
 Yes, I think that is pretty universal. Didn't feel anything was 
 wrong with the title, but the fact that most examples used 
 "arsd" gave me the impression that there was only one good 
 library…
Precisely I opened this thread because it's hard to know about everything that exist in the D ecosystem. I expected tips for this or that library. Also, arsd has a good history of being maintained, building with D compilers and keep existing, which are not exactly common in DUB packages.
Jan 26 2022
parent reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Wednesday, 26 January 2022 at 13:14:49 UTC, Guillaume Piolat 
wrote:
 Precisely I opened this thread because it's hard to know about 
 everything that exist in the D ecosystem. I expected tips for 
 this or that library.
Is this list out of date? https://github.com/dlang-community/awesome-d Anyway, the short examples you provide is a good format. Full tutorials can often be too time consuming…
Jan 26 2022
next sibling parent Adam D Ruppe <destructionator gmail.com> writes:
On Wednesday, 26 January 2022 at 15:53:44 UTC, Ola Fosheim 
Grøstad wrote:
 Is this list out of date?

 https://github.com/dlang-community/awesome-d
You can tell it is very incomplete since it doesn't list arsd in every category. :P Well, I don't have a dedicated containers module. When I need one, I just make it inline. I'm considering adding one for version 12 though, which would come out in June 2023. We'll see.
Jan 26 2022
prev sibling next sibling parent reply Guillaume Piolat <first.last gmail.com> writes:
On Wednesday, 26 January 2022 at 15:53:44 UTC, Ola Fosheim 
Grøstad wrote:
 Is this list out of date?

 https://github.com/dlang-community/awesome-d
I think it's alright. It's somehow out of date with the game engines I guess.
Jan 26 2022
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Wednesday, 26 January 2022 at 19:25:18 UTC, Guillaume Piolat 
wrote:
 On Wednesday, 26 January 2022 at 15:53:44 UTC, Ola Fosheim 
 Grøstad wrote:
 Is this list out of date?

 https://github.com/dlang-community/awesome-d
I think it's alright. It's somehow out of date with the game engines I guess.
I just clicked through many of the Github repos (not the ones for games). Xomb had not been touched since 2013, Warp not since 2015… A mixed bag. Your list will become more useful, I think.
Jan 26 2022
prev sibling parent reply WebFreak001 <d.forum webfreak.org> writes:
On Wednesday, 26 January 2022 at 15:53:44 UTC, Ola Fosheim 
Grøstad wrote:
 On Wednesday, 26 January 2022 at 13:14:49 UTC, Guillaume Piolat 
 wrote:
 Precisely I opened this thread because it's hard to know about 
 everything that exist in the D ecosystem. I expected tips for 
 this or that library.
Is this list out of date? https://github.com/dlang-community/awesome-d Anyway, the short examples you provide is a good format. Full tutorials can often be too time consuming…
the list is being maintained, feel free to open PRs to update links and remove old stuff.
Jan 27 2022
parent reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Thursday, 27 January 2022 at 08:52:32 UTC, WebFreak001 wrote:
 the list is being maintained, feel free to open PRs to update 
 links and remove old stuff.
It is probably better that the current maintainers remove stuff, I think people would get upset if someone else started to wipe out projects that haven’t recieved updates in a year or that are just not ready for consumption.
Jan 27 2022
parent reply WebFreak001 <d.forum webfreak.org> writes:
On Thursday, 27 January 2022 at 23:56:55 UTC, Ola Fosheim Grøstad 
wrote:
 On Thursday, 27 January 2022 at 08:52:32 UTC, WebFreak001 wrote:
 the list is being maintained, feel free to open PRs to update 
 links and remove old stuff.
It is probably better that the current maintainers remove stuff, I think people would get upset if someone else started to wipe out projects that haven’t recieved updates in a year or that are just not ready for consumption.
I don't think that's the case - just open a PR removing old stuff, the maintainers will check that the links are indeed old and no longer necessary or they will tell you that it's kept because of reason XYZ. If there are people that would get upset from removing it, it's something that shouldn't be removed. (as there are people who are still interested in the project and might still use it)
Jan 28 2022
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Friday, 28 January 2022 at 13:27:33 UTC, WebFreak001 wrote:
 If there are people that would get upset from removing it, it's 
 something that shouldn't be removed. (as there are people who 
 are still interested in the project and might still use it)
I hear what you are saying, but maybe there is value in some of those abandoned projects for people who want to get ideas, so who am I to judge? I can only judge what I would look for… One thing I like about the micro-examples approach that p0nce has taken is that they can be automatically tested against the latest compiler, so that makes the whole "outdated" question objective. :-)
Jan 28 2022