www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Back to SDL question

reply Suliman <evermind live.ru> writes:
First of all I would like to say sorry for Ludwig, that 2 years 
ago I was initiator to making JSON back by default for dub 
config. It was really my mistake.
Only some time later I understand that it was big error.

So I would like to ask community about if all agree to make .sdl 
format to dub by default?

The second problem. It's naming. It's really hard to google SDL. 
Is there any other ways? Maybe renaming or so?
Oct 19
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 19/10/2017 2:34 PM, Suliman wrote:
 First of all I would like to say sorry for Ludwig, that 2 years ago I 
 was initiator to making JSON back by default for dub config. It was 
 really my mistake.
 Only some time later I understand that it was big error.
 
 So I would like to ask community about if all agree to make .sdl format 
 to dub by default?
My mind hasn't wavered. I am still against SDL.
Oct 19
parent reply =?UTF-8?Q?S=c3=b6nke_Ludwig?= <sludwig+d outerproduct.org> writes:
Am 19.10.2017 um 15:40 schrieb rikki cattermole:
 On 19/10/2017 2:34 PM, Suliman wrote:
 First of all I would like to say sorry for Ludwig, that 2 years ago I 
 was initiator to making JSON back by default for dub config. It was 
 really my mistake.
 Only some time later I understand that it was big error.

 So I would like to ask community about if all agree to make .sdl 
 format to dub by default?
My mind hasn't wavered. I am still against SDL.
I really don't want to invest more energy for this topic at this point, but the gist of my view is covered in this earlier comment on reddit: https://www.reddit.com/r/programming/comments/6qwl5n/using_dub_the_d_build_tool_package_manager_to/dl2wzqs/ Of course, taste and habit plays a role in this, so it's hard to find a definitive conclusion. I would have definitely preferred to support only SDLang (as was planned before making DUB official), but at this point it's pretty clear that we'll simply have to keep supporting both options. I wouldn't want to change the default back at this point, as the landscape of opinions on this matter is far too heterogeneous. But if at some point it should turn out that there is a clear majority for SDLang, then it could make sense to re-open the discussion.
Oct 19
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 19 October 2017 at 18:16:12 UTC, Sönke Ludwig wrote:
 I wouldn't want to change the default back at this point, as 
 the landscape of opinions on this matter is far too 
 heterogeneous. But if at some point it should turn out that 
 there is a clear majority for SDLang, then it could make sense 
 to re-open the discussion.
By clear majority, it probably makes more sense to consider the revealed preferences from the most popular 10%-20% packages on code.dlang.org, rather than a majority on the forum...
Oct 19
parent =?UTF-8?Q?S=c3=b6nke_Ludwig?= <sludwig+d outerproduct.org> writes:
Am 19.10.2017 um 20:39 schrieb jmh530:
 On Thursday, 19 October 2017 at 18:16:12 UTC, Sönke Ludwig wrote:
 I wouldn't want to change the default back at this point, as the 
 landscape of opinions on this matter is far too heterogeneous. But if 
 at some point it should turn out that there is a clear majority for 
 SDLang, then it could make sense to re-open the discussion.
By clear majority, it probably makes more sense to consider the revealed preferences from the most popular 10%-20% packages on code.dlang.org, rather than a majority on the forum...
Agreed
Oct 19
prev sibling next sibling parent jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 19 October 2017 at 13:34:31 UTC, Suliman wrote:
 First of all I would like to say sorry for Ludwig, that 2 years 
 ago I was initiator to making JSON back by default for dub 
 config. It was really my mistake.
 Only some time later I understand that it was big error.

 So I would like to ask community about if all agree to make 
 .sdl format to dub by default?

 The second problem. It's naming. It's really hard to google 
 SDL. Is there any other ways? Maybe renaming or so?
What's the case against JSON?
Oct 19
prev sibling next sibling parent Dmitry <dmitry indiedev.ru> writes:
On Thursday, 19 October 2017 at 13:34:31 UTC, Suliman wrote:
 Only some time later I understand that it was big error.
Why do you think so?
 So I would like to ask community about if all agree to make 
 .sdl format to dub by default?
Personally, I prefer JSON.
Oct 19
prev sibling next sibling parent Steven Schveighoffer <schveiguy yahoo.com> writes:
On 10/19/17 9:34 AM, Suliman wrote:
 First of all I would like to say sorry for Ludwig, that 2 years ago I 
 was initiator to making JSON back by default for dub config. It was 
 really my mistake.
 Only some time later I understand that it was big error.
 
 So I would like to ask community about if all agree to make .sdl format 
 to dub by default?
I prefer SDL, due to the more readable/less verbose format, and the ability to add comments. But I'm not for continually switching the default. And if I recall correctly, Andrei specifically dictated this change needed to happen. I don't see him changing his mind again. As many people who were *against* changing the default back to JSON were saying: it's just a default, you can select SDL when you create your project. I do.
 
 The second problem. It's naming. It's really hard to google SDL. Is 
 there any other ways? Maybe renaming or so?
SDLang (http://sdlang.org) -Steve
Oct 19
prev sibling next sibling parent Antonio Corbi <acorbi ggmail.xml> writes:
On Thursday, 19 October 2017 at 13:34:31 UTC, Suliman wrote:
 First of all I would like to say sorry for Ludwig, that 2 years 
 ago I was initiator to making JSON back by default for dub 
 config. It was really my mistake.
 Only some time later I understand that it was big error.

 So I would like to ask community about if all agree to make 
 .sdl format to dub by default?

 The second problem. It's naming. It's really hard to google 
 SDL. Is there any other ways? Maybe renaming or so?
And since a few versions dub is able to 'convert' between these two formats: ``` dub --help ... Package management ------------------ .... convert Converts the file format of the package recipe. ``` Antonio
Oct 19
prev sibling parent Jonathan M Davis <newsgroup.d jmdavisprog.com> writes:
On Thursday, October 19, 2017 13:34:31 Suliman via Digitalmars-d wrote:
 First of all I would like to say sorry for Ludwig, that 2 years
 ago I was initiator to making JSON back by default for dub
 config. It was really my mistake.
 Only some time later I understand that it was big error.

 So I would like to ask community about if all agree to make .sdl
 format to dub by default?

 The second problem. It's naming. It's really hard to google SDL.
 Is there any other ways? Maybe renaming or so?
LOL. There were plenty of folks besides you who didn't like SDL, and I doubt that all that many of them have changed their minds. Personally, I don't like either, but I prefer JSON to SDL. However, if you prefer SDL, then use SDL. Both are options, and that means that for better or worse, if you're dealing with a lot of dub projects, you're probably going to have to deal with both. The only real benefit I see to having your preferred format be the default is that it increases the chances that any given project will use that format and decreases the chances that you'll have to deal with the other format when working on projects done by other people (since plenty of folks will just use the default and not care). You're still going to have to deal with both either way unless you only work on your own projects, and if you only work on your own projects, then the only real downside to the default not being what you want is that you have to tell dub to use your format when it asks instead of just hitting enter. IMHO, if there was ever a mistake here it was in introducing a second format (which I think was SDL) - not because one is better than the other but simply because then we have to deal with two formats. I think that it was Sonke's attempt to switch to a better format - which was well-intentioned - but since dub was already being used quite a bit by that point, switching was too big a change for it to really work out (especially since there were plenty of folks who preferred the older format). So, in spite of Sonke's good intentions, we then ended up with two formats, which sucks, but that's the way that life goes with software development sometimes - and other things too (e.g. it would be great if the entire world used the exact same voltages for their power grids and the same wall sockets so that everything was compatible, but that's _way_ too big a change for that to be happening at this point). I certainly don't want to deal with yet more arguing over what the default should be, and I'm pretty sure that Steven's right about Andrei insisting that dub be switched back to JSON, because JSON is a standard, and SDL is not. And if that was his stance, you're not going to get him to change over something that ultimately doesn't matter that much. We're talking about one configuration file that isn't even all that big and which you usually edit only rarely. LOL. If anything, I hate the fact that everything that dub generates uses tabs instead of spaces, since I don't think that tabs should be used for much of anything ever, but Sonke clearly prefers tabs based on what he's done with dub and what the dub and vibe.d codebases looks like. It's one of those cases where code style differences causes me grief. However, as annoying as that is, I can just fix the generated files and move on with life - just like I can just fix the fact that the generated JSON files put braces on the same line or any number of other things that aren't set in stone when using dub. - Jonathan M Davis
Oct 19