www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Learn D in x minutes

reply "Steve D" <whatchcallamit weedline.com> writes:
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 13 2014
next sibling parent reply "w0rp" <devw0rp gmail.com> writes:
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
next sibling parent reply "Joseph Rushton Wakeling" <joseph.wakeling webdrake.net> writes:
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
parent reply "Martin Nowak" <code dawg.eu> writes:
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
next sibling parent reply simendsjo <simendsjo gmail.com> writes:
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
parent "Martin Nowak" <code dawg.eu> writes:
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
prev sibling next sibling parent reply "bearophile" <bearophileHUGS lycos.com> writes:
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
parent "Martin Nowak" <code dawg.eu> writes:
On Wednesday, 14 May 2014 at 08:46:34 UTC, bearophile wrote:
 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
https://github.com/MartinNowak/drepl/issues/8 There are still some limitations, hope to have time for this soon, but shared libraries are more important currently.
May 14 2014
prev sibling next sibling parent "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
On Wednesday, 14 May 2014 at 08:11:37 UTC, Martin Nowak wrote:
 http://drepl.dawg.eu
Thanks, love this!
May 14 2014
prev sibling next sibling parent "w0rp" <devw0rp gmail.com> writes:
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
prev sibling next sibling parent "Mengu" <mengukagan gmail.com> writes:
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
May 14 2014
prev sibling next sibling parent reply Joseph Rushton Wakeling via Digitalmars-d <digitalmars-d puremagic.com> writes:
On 14/05/14 10:11, Martin Nowak via Digitalmars-d wrote:
 http://drepl.dawg.eu
Oh, cool! :-) Is there any prospect of extending that with an interactive tutorial as tryhaskell.org does ... ?
May 14 2014
parent "Martin Nowak" <code dawg.eu> writes:
On Wednesday, 14 May 2014 at 19:23:14 UTC, Joseph Rushton 
Wakeling via Digitalmars-d wrote:
 On 14/05/14 10:11, Martin Nowak via Digitalmars-d wrote:
 http://drepl.dawg.eu
Oh, cool! :-) Is there any prospect of extending that with an interactive tutorial as tryhaskell.org does ... ?
Yes, I have some plans for that, bugs and some basic features are more important though. First step would be a widget https://github.com/MartinNowak/drepl/issues/28, another step would be a site which allows to author and publish tutorials. It won't happen soonish.
May 14 2014
prev sibling parent "FrankLike" <1150015857 qq.com> writes:
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
I not see the 'D>' use the IE9 on Windows7 x64,but use the firefox,it's ok.
May 14 2014
prev sibling parent "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
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/
http://learnxinyminutes.com/docs/neat/
May 14 2014
prev sibling next sibling parent reply FG <home fgda.pl> writes:
On 2014-05-14 05:22, Steve D wrote:
 I came across this site http://learnxinyminutes.com/ which gives a summary of
most of the popular languages.
Yes, it's definitely a good idea from a promotional point of view to put D in all those places where languages are compared. Then -- like on http://rosettacode.org -- one can compare how typical tasks are written and get sold on D's relatively sane approach. OTOH, seeing the title "Learn X in Y minutes" makes me smile. :) http://norvig.com/21-days.html
May 14 2014
next sibling parent "John" <john.joyus gmail.com> writes:
On Wednesday, 14 May 2014 at 12:27:22 UTC, FG wrote:
 On 2014-05-14 05:22, Steve D wrote:
 I came across this site http://learnxinyminutes.com/ which 
 gives a summary of most of the popular languages.
Yes, it's definitely a good idea from a promotional point of view to put D in all those places where languages are compared. Then -- like on http://rosettacode.org -- one can compare how typical tasks are written and get sold on D's relatively sane approach. OTOH, seeing the title "Learn X in Y minutes" makes me smile. :) http://norvig.com/21-days.html
Good article, but we all know those books that promise to teach a language in 24 hours or 21 days do not make us masters. We just want to see how it feels or try to grasp the basics and then practice it with more advanced books. I too believe in that 10,000 hours theory, but we should begin somewhere, right?
May 14 2014
prev sibling parent "bearophile" <bearophileHUGS lycos.com> writes:
FG:

 Then -- like on http://rosettacode.org -- one can compare how 
 typical tasks are written and get sold on D's relatively sane 
 approach.
The same comparisons also show that there are one hundred different cases where D/Phobos are not reasonable enough yet. Bye, bearophile
May 14 2014
prev sibling parent "Martin Nowak" <code dawg.eu> writes:
 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.
https://gist.github.com/anonymous/7527033 That's a real pity, someone should rescue the effort.
May 14 2014