dlang website design

Ecstatic Coder via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 22 12:19:20 PDT 2017


Following my previous post about showing to first-time visitors 
of dlang.org some code example that shows how simpler the D code 
looks like compared to mainstream scripting and programming 
languages, is there any plan to change the design of the landing 
page any time soon ?

The current design may be fine to convincing C++ experts to 
switch to D, but I don't think it's that effective for less 
experienced programmers, looking for an alternative to 
JavaScript, Python or Ruby.

I'm a big fan of the python.org website, which is obviously 
targeted at inexperienced programmers.

I've personally taught imperative and object-oriented programming 
to my two teenager kids just with D and Coedit, and it really was 
the perfect beginner language.

D is powerful, indeed, but it's greatest quality is that it's 
easy to learn.

Sorry to come back with this sample, but the following code 
snippet is actually even simpler than what they were able to 
program after one week at one hour of training per day.

class TOTO
{
     bool IsCool;
     int Age;
     TUTU[] Tutus;
     TOTO[string] Totos;

     void Foo( TUTU tutu )
     {
         Tutus ~= tutu;
         Totos[ tutu.Name ] = tutu.Toto;
     }
}

class TUTU
{
     string Name;
     TOTO Toto;

     this( string name )
     {
         Name = name;
         Toto = new TOTO;
     }
}

void Bar(
     TOTO toto
     )
{
     toto.IsCool = !toto.IsCool;
}

void main()
{
     TUTU tutu;
     TOTO toto;

     tutu = new TUTU( "tutu" );

     toto = new TOTO;
     toto.Foo( tutu );
     toto.Bar();
}

I'm sure it's mainly because of D's elegant simplicity, even 
compared to JavaScript, Python, etc.

Selling D as a solid programming language for high performance 
development is obvious and natural, but I think that trying to 
make the website very appealing to inexperienced programmers as 
well could significantly broaden its user base.


More information about the Digitalmars-d mailing list