dlang.org live examples
Robik
szadows at gmail.com
Mon Jun 25 12:41:16 PDT 2012
On Monday, 25 June 2012 at 14:43:34 UTC, nazriel wrote:
> Hi!
>
> I am polishing up this stuff:
> http://dlang.dzfl.pl/
>
> It would allow to run examples from http://dlang.org directly
> in web-browser.
> Something like http://dpaste.dzfl.pl, but integrated with dlang
> website itself.
>
> I would like to ask you about your opinions and advises.
>
> There are couple things I can't make my mind on.
>
> First, should standard input and command line arguments be
> constant defined in hidden html fields, or should we allow user
> to pick their own?
> It would allow for more freedom and experience but on
> other-hand it would bloat too much website. Whats your opinion?
I think, that we should allow user to specify arguments whenever
it is possible and reasonable.
> Another thing are examples itself. As you may noticed I
> modified some of em too give some experience in browser, for
> example, I've added writeln blocks in Power section.
> What should we do with 'em? Examples to run properly requires
> main functions, and loads of examples doesn't have them. Should
> we adjust those examples or leave them alone? Another thing are
> examples that doesn't return or display anything.
> Like assert(foo !is null); examples. Should we make them throw,
> add some writelns or leave them alone?
>
> I would love to hear your opinion on those.
I would go with adjusting them, to make output cleaner. Idea to
replace assert(...) with writeln() sounds good.
> Best regards,
> Damian 'nazriel' Ziemba
Overall, stuff you made is quite impressive, keep it going!
Regards, Robik.
More information about the Digitalmars-d
mailing list