Thread overview | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 14, 2014 Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
D beginner here. I also like to look into new/different languages and see what they are all about. I was looking at the Julia language when I came across this site http://learnxinyminutes.com/ which gives a summary of most of the popular languages. Each language entry includes basic syntax usage and is a short whirlwind tutorial with simple examples showing data types, operators, control flow, simple statements, functions etc. Now I know you can't really learn any language x in minutes, but I think D might benefit from being represented as it is yet another introduction path to programmers/technicians who visit the site. Someone here in D.learn (anonymous) already did a basic page http://forum.dlang.org/thread/l6baie$vci$1@digitalmars.com last November but it only made the learn forum and doesn't seem to have been progressed. I'm only a D noob and not really qualified to say if the attempt is up to date, or in a complete/acceptable state that you guys would say 'yeah that covers the D basics very well' etc. It needs someone qualified to have a look and decide if it's worthwhile to make a little time to add/update the starting effort to the site. What do you think? It's not a lot of effort or too challenging, wouldn't you say? So, it's only a suggestion, but that site may get visits, possibly from seven billion programmers, thousands of schools, colleges, universities, corporations, institutions, technical managers etc etc... just sayin' ;) Also, if someone adds the D language entry then a reddit/hacker news post saying 'D added to learnxinyminutes' would not only ping everyone about D, but also raise the learnxy site's profile (and it's an interesting site too) to reddit and HN Note. posted to D forum vs D.learn as I think it's more about D's profile and visibility, hope that's ok. |
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve D | I'm unsure about the "learn x in y minutes" tutorials, but I did however think this was very neat. http://tryhaskell.org/ |
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to w0rp | On Wednesday, 14 May 2014 at 07:04:24 UTC, w0rp wrote:
> I'm unsure about the "learn x in y minutes" tutorials, but I did however think this was very neat. http://tryhaskell.org/
A friend and former colleague of mine wrote that. Great guy. :-)
|
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joseph Rushton Wakeling | On Wednesday, 14 May 2014 at 07:36:57 UTC, Joseph Rushton Wakeling wrote: > On Wednesday, 14 May 2014 at 07:04:24 UTC, w0rp wrote: >> I'm unsure about the "learn x in y minutes" tutorials, but I did however think this was very neat. http://tryhaskell.org/ > > A friend and former colleague of mine wrote that. Great guy. :-) http://drepl.dawg.eu |
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On 05/14/2014 10:11 AM, Martin Nowak wrote:
> On Wednesday, 14 May 2014 at 07:36:57 UTC, Joseph Rushton Wakeling wrote:
>> On Wednesday, 14 May 2014 at 07:04:24 UTC, w0rp wrote:
>>> I'm unsure about the "learn x in y minutes" tutorials, but I did however think this was very neat. http://tryhaskell.org/
>>
>> A friend and former colleague of mine wrote that. Great guy. :-)
>
> http://drepl.dawg.eu
Very cool! Maybe it should default to using the most recent variable? _mod2.a in the example below.
D> int a = 10:
=> a
D> int a = 5;
=> a
D> a
=> _mod1.a at /tmp/drepl.13YxH8/_mod1.d(3) conflicts with _mod2.a at
/tmp/drepl.13YxH8/_mod2.d(3)
D> _mod1.a
=> 10
D> _mod2.a
=> 5
|
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to simendsjo | On Wednesday, 14 May 2014 at 08:26:58 UTC, simendsjo wrote: > D> int a = 10: > => a > D> int a = 5; > => a > D> a > => _mod1.a at /tmp/drepl.13YxH8/_mod1.d(3) conflicts with _mod2.a at > /tmp/drepl.13YxH8/_mod2.d(3) > D> _mod1.a > => 10 > D> _mod2.a > => 5 Already filed as bug :). https://github.com/MartinNowak/drepl/issues/9 |
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | Martin Nowak:
> http://drepl.dawg.eu
Looks quite nice, it can become quite useful for D programmers.
If I insert:
int[int] d = [1: 2, 3:4];
It answers me:
=> non-constant expression [1:2, 3:4]
Bye,
bearophile
|
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On Wednesday, 14 May 2014 at 08:11:37 UTC, Martin Nowak wrote:
> http://drepl.dawg.eu
Thanks, love this!
|
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On Wednesday, 14 May 2014 at 08:11:37 UTC, Martin Nowak wrote:
> http://drepl.dawg.eu
That's pretty nice. It did nice enough things when I wrote a template in it. We should link to that or something like it from the dlang.org homepage, maybe along with a syntax summary like a "learn x in y minutes" tutorial.
|
May 14, 2014 Re: Learn D in x minutes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On Wednesday, 14 May 2014 at 08:11:37 UTC, Martin Nowak wrote: > On Wednesday, 14 May 2014 at 07:36:57 UTC, Joseph Rushton Wakeling wrote: >> On Wednesday, 14 May 2014 at 07:04:24 UTC, w0rp wrote: >>> I'm unsure about the "learn x in y minutes" tutorials, but I did however think this was very neat. http://tryhaskell.org/ >> >> A friend and former colleague of mine wrote that. Great guy. :-) > > http://drepl.dawg.eu FYI, it doesn't work with FF 29.0.1 on OS X Mountain Lion. i couldn't see the error. with chrome i got this: WebSocket connection to 'ws://drepl.dawg.eu/ws/dmd' failed: Error during WebSocket handshake: Unexpected response code: 400 |
Copyright © 1999-2021 by the D Language Foundation