Redesign of dlang.org

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 21 11:43:35 PST 2015


On Monday, 21 December 2015 at 17:37:11 UTC, Andrei Alexandrescu 
wrote:
> On 12/21/2015 10:28 AM, Jacob Carlborg wrote:
>> The original code is written in HTML, JavaScript and Less 
>> (CSS). See
>> repository for build instructions [1]. If I move forward with 
>> this I
>> would go with vibe.d. I would prefer Sass for the CSS and 
>> CoffeeScript
>> for the JavaScript.
>
> That's a large leap. I suggest using Ddoc instead of Sass 
> compact CSS files, see the existing instance at 
> https://github.com/D-Programming-Language/dlang.org/blob/master/css/cssmenu.css.dd.
>
> CoffeeScript sounds like a nice thing to add and is from what 
> I've heard reasonably stable.

IMO we should stay away from trans-plied languages like SCSS, 
Less, and CoffeeScript, for several reasons

1. Everyone who knows the superset already knows the subset

2. Because of 1, going with the superset unnecessarily limits 
your contributor base (I don't know and have no urge to learn 
CoffeeScript for example) for a very small amount of gain

3. The compilers out put ugly, hard to debug code, that also 
tends to be slower

4. We become dependent on their toolchain.

What if CoffeeScript or SCSS ceases to exist, especially since 
Babel is now the fad that has replaced CoffeeScript? E.g. Does 
anyone remember Dart? How many Dart libraries are sitting 
unmaintained now? We have to think 10 years in the future so we 
don't end up rewriting a whole bunch of code and I am willing to 
bet that CoffeeScript will not be maintained in 2020.

>> No. The top menu uses JavaScript and all the collapsible 
>> sections
>> depends on JavaScript. I hope it's possible to change so the 
>> collapsible
>> sections are expanded by default.
>
> My understanding is this is a sticky point with some, so 
> probably needs fixing before the release.

Yes, sites should degrade gracefully. Not everyone has JavaScript 
http://kryogenix.org/code/browser/everyonehasjs.html


More information about the Digitalmars-d mailing list