Thread overview | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 12, 2014 More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
On Wednesday 19:th of Februari I'm giving my first talk on D for my fellow collegues at my consultant firm office HiQ, Linköping, Sweden. If any of you are in the neighbourhood please let me know and I will invite you. The lecture will most likely be held in Swedish. I'll try to make my best to convince them that D is the way to go for the future of programming. On my strive I have one wish to the maintainers of dlang.org: I believe the first code example a newbie sees when he/she first visits dlang.org should be some variation of Walter's showcase on Component Programming including all the bells and whistles of lazy evaluted ranges. IMHO, this would increase the probability of the newbie staying a bit further on the site trying to figure out the details of what make this intriguing D code example tick. And, as a result, be more convinced about D's unique and powerful features. What do you think, fellow D programmers? |
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On Wednesday, 12 February 2014 at 20:49:54 UTC, Nordlöw wrote:
> I believe the first code example a newbie sees when he/she first visits dlang.org should be some variation of Walter's showcase on Component Programming including all the bells and whistles of lazy evaluted ranges.
>
> IMHO, this would increase the probability of the newbie staying a bit further on the site trying to figure out the details of what make this intriguing D code example tick. And, as a result, be more convinced about D's unique and powerful features.
>
> What do you think, fellow D programmers?
Absolutely and there is a process in place for this already, feel free to suggest something:
"[your code here] Got a brief example illustrating D? Submit your code to the digitalmars.D forum specifying "[your code here]" in the title. Upon approval it will be showcased on a random schedule on D's homepage."
|
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tove | On Wednesday, 12 February 2014 at 20:54:28 UTC, Tove wrote:
> "[your code here] Got a brief example illustrating D? Submit your code to the digitalmars.D forum specifying "[your code here]" in the title. Upon approval it will be showcased on a random schedule on D's homepage."
I'd probably write some examples if this process somehow used Github like everything else.
Maybe a dlang.org/snippets sub-directory that the web server randomly chooses a snippet from now that the web server runs PHP...
|
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tove | On Wednesday, 12 February 2014 at 20:54:28 UTC, Tove wrote:
>
> Absolutely and there is a process in place for this already, feel free to suggest something:
>
> "[your code here] Got a brief example illustrating D? Submit your code to the digitalmars.D forum specifying "[your code here]" in the title. Upon approval it will be showcased on a random schedule on D's homepage."
That's actually never happened even though people have shared stuff they'd like to appear there. The problem, I believe, is that there is no code in place to actually do the rotation of the showcase.
Adding showcase rotation would be a nice little project for someone interested in contributing and who knows javascript (PHP is also an option as the server supports that).
|
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On Wednesday, 12 February 2014 at 21:09:20 UTC, Brad Anderson wrote:
> Adding showcase rotation would be a nice little project for someone interested in contributing and who knows javascript (PHP is also an option as the server supports that).
I think server-side scripting is the preferable solution here.
|
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On 2/12/14, 12:49 PM, "Nordlöw" wrote: > On Wednesday 19:th of Februari I'm giving my first talk on D for my > fellow collegues at my consultant firm office HiQ, Linköping, Sweden. > > If any of you are in the neighbourhood please let me know and I will > invite you. The lecture will most likely be held in Swedish. Congratulations and good luck! > I'll try to make my best to convince them that D is the way to go for > the future of programming. > > On my strive I have one wish to the maintainers of dlang.org: > > I believe the first code example a newbie sees when he/she first visits > dlang.org should be some variation of Walter's showcase on Component > Programming including all the bells and whistles of lazy evaluted ranges. > > IMHO, this would increase the probability of the newbie staying a bit > further on the site trying to figure out the details of what make this > intriguing D code example tick. And, as a result, be more convinced > about D's unique and powerful features. > > What do you think, fellow D programmers? Great idea. I think code samples on the homepage are due for some improvements. Andrei |
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On 2/12/14, 1:09 PM, Brad Anderson wrote:
> On Wednesday, 12 February 2014 at 20:54:28 UTC, Tove wrote:
>>
>> Absolutely and there is a process in place for this already, feel free
>> to suggest something:
>>
>> "[your code here] Got a brief example illustrating D? Submit your code
>> to the digitalmars.D forum specifying "[your code here]" in the title.
>> Upon approval it will be showcased on a random schedule on D's homepage."
>
> That's actually never happened even though people have shared stuff
> they'd like to appear there. The problem, I believe, is that there is no
> code in place to actually do the rotation of the showcase.
>
> Adding showcase rotation would be a nice little project for someone
> interested in contributing and who knows javascript (PHP is also an
> option as the server supports that).
A pull request for code rotation in PHP would be great.
Andrei
|
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Wednesday, 12 February 2014 at 21:19:55 UTC, Andrei Alexandrescu wrote:
> Great idea. I think code samples on the homepage are due for some improvements.
I think visible code samples on the homepage are a good idea, bot please make them links to the wiki. A lot of sample code on the homepage was created a long time ago and not maintained as the language has evolved. Putting it on the wiki would hopefully elicit more community involvement in maintaining it.
Mike
|
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike | On Wednesday, 12 February 2014 at 21:34:08 UTC, Mike wrote:
> On Wednesday, 12 February 2014 at 21:19:55 UTC, Andrei Alexandrescu wrote:
>> Great idea. I think code samples on the homepage are due for some improvements.
>
> I think visible code samples on the homepage are a good idea, bot please make them links to the wiki. A lot of sample code on the homepage was created a long time ago and not maintained as the language has evolved. Putting it on the wiki would hopefully elicit more community involvement in maintaining it.
>
> Mike
If the snippets end up as D source code files in a sub-directory, we have the option of automatically guaranteeing that they are state of the art.
|
February 12, 2014 Re: More Illuminating Introductory Code Example on dlang.org | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jakob Ovrum | On Wednesday, 12 February 2014 at 21:39:45 UTC, Jakob Ovrum wrote:
>> I think visible code samples on the homepage are a good idea, bot please make them links to the wiki. A lot of sample code on the homepage was created a long time ago and not maintained as the language has evolved. Putting it on the wiki would hopefully elicit more community involvement in maintaining it.
>>
>> Mike
>
> If the snippets end up as D source code files in a sub-directory, we have the option of automatically guaranteeing that they are state of the art.
Cool, put pull requests to dlang.org aren't published immediately. They seem to only get published with each DMD release. If you can get around that, that'd be great.
|
Copyright © 1999-2021 by the D Language Foundation