www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - On the D Blog -- Teaching D from Scratch: Is it a viable first

reply Mike Parker <aldacron gmail.com> writes:
Steven Schveighoffer has been using D to teach a group of 
children to program. He wrote about his experience for the D 
blog. Is D a viable first language? See what Steve has to say 
about it :-)

The blog:
https://dlang.org/blog/2021/12/23/teaching-d-from-scratch-is-it-a-viable-first-language/

Reddit:
https://www.reddit.com/r/programming/comments/rmuufa/teaching_d_from_scratch_is_it_a_viable_first/
Dec 23 2021
next sibling parent Harrison Ford (hatf0) <harrison 0xcc.pw> writes:
On Thursday, 23 December 2021 at 12:44:04 UTC, Mike Parker wrote:
 Steven Schveighoffer has been using D to teach a group of 
 children to program. He wrote about his experience for the D 
 blog. Is D a viable first language? See what Steve has to say 
 about it :-)

 The blog:
 https://dlang.org/blog/2021/12/23/teaching-d-from-scratch-is-it-a-viable-first-language/

 Reddit:
 https://www.reddit.com/r/programming/comments/rmuufa/teaching_d_from_scratch_is_it_a_viable_first/
This is super cool. I absolutely agree with Steven that we have a *lot* to go (in terms of compiler diagnostics, and really, general user experience), but it’s always great to hear about the wisdom of D being spread around. I’ve mentioned it on the discord, but I’d perhaps be open to chipping in some for these improved diagnostics / UX improvements (number one on my wishlist is improved code completion engine using the DMD front-end!). I really think those are the two biggest things that are holding adoption back now, and we still have a lot of work in that regard. This is actually where I think Rust has a leg up on us — the language might not be that great, but you *really* can’t beat those compiler diagnostics.
Dec 23 2021
prev sibling next sibling parent reply zjh <fqbqrr 163.com> writes:
On Thursday, 23 December 2021 at 12:44:04 UTC, Mike Parker wrote:

 https://dlang.org/blog/2021/12/23/teaching-d-from-scratch-is-it-a-viable-first-language/
every time I visit `https://dlang.org`,it crashes.
Dec 23 2021
parent reply zjh <fqbqrr 163.com> writes:
On Thursday, 23 December 2021 at 14:48:43 UTC, zjh wrote:

 every time I visit `https://dlang.org`,it crashes.
`wrong`,`https://dlang.org/blog`.
Dec 23 2021
parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 12/23/21 5:11 PM, zjh wrote:
 On Thursday, 23 December 2021 at 14:48:43 UTC, zjh wrote:
 
 every time I visit `https://dlang.org`,it crashes.
`wrong`,`https://dlang.org/blog`.
Does the site crash e.g. with an error code or does the browser crash? More information may help debug it. Ali
Dec 23 2021
parent reply zjh <fqbqrr 163.com> writes:
On Friday, 24 December 2021 at 03:53:07 UTC, Ali Çehreli wrote:

 Does the site crash e.g. with an error code or does the browser 
 crash? More information may help debug it.

 Ali
Many times, it is estimated that a `JS` is too large to load. Not only did `the browser` crash, but even the `computer` crashed. Mine is `32-bit, 2G` computer.
Dec 23 2021
parent reply matheus <matheus gmail.com> writes:
On Friday, 24 December 2021 at 04:58:20 UTC, zjh wrote:
 On Friday, 24 December 2021 at 03:53:07 UTC, Ali Çehreli wrote:

 Does the site crash e.g. with an error code or does the 
 browser crash? More information may help debug it.

 Ali
Many times, it is estimated that a `JS` is too large to load. Not only did `the browser` crash, but even the `computer` crashed. Mine is `32-bit, 2G` computer.
What OS and Browser? I just tested on an old 32 bit machine with 2GB of RAM and both Chrome and Firefox worked normally. On Chrome I see there are some errors in some scripts though: Uncaught ReferenceError: jQuery is not defined navigation.js:55 Uncaught ReferenceError: jQuery is not defined select2.min.js:21 Uncaught TypeError: Cannot read property 'fn' of undefined mivhak.min.js:1 But even with these errors it load normally. Finally in both browsers I use only one extension: ublock origin, which blocked some trackers from twitter, facebook. And on Firefox it indeed almost freezes for a like 2 seconds, and occurs with the status bar showing: "Read c0.wp.com", after that the page finished loading. Matheus.
Dec 24 2021
parent reply zjh <fqbqrr 163.com> writes:
On Friday, 24 December 2021 at 12:55:40 UTC, matheus wrote:


they have fixed it.
Dec 24 2021
parent reply zjh <fqbqrr 163.com> writes:
On Friday, 24 December 2021 at 13:23:43 UTC, zjh wrote:

 they have fixed it.
I tried it just before, no problem last time. Then, I tried again here. It's circling all the time. You can't see the `source code`, `F12` can't either. `chrome/edge/windows10`. I don't know why.
Dec 24 2021
parent zjh <fqbqrr 163.com> writes:
On Friday, 24 December 2021 at 13:39:06 UTC, zjh wrote:

 `chrome/edge/windows10`. I don't know why.
Use `ie`,I can access it.
Dec 24 2021
prev sibling next sibling parent Dennis <dkorpel gmail.com> writes:
On Thursday, 23 December 2021 at 12:44:04 UTC, Mike Parker wrote:
 The blog:
 https://dlang.org/blog/2021/12/23/teaching-d-from-scratch-is-it-a-viable-first-language/
I agree about the bad error message with missing semicolons. Looks like it inspired improvement! https://github.com/dlang/dmd/pull/13459
Dec 24 2021
prev sibling parent reply rumbu <rumbu rumbu.ro> writes:
On Thursday, 23 December 2021 at 12:44:04 UTC, Mike Parker wrote:
 Steven Schveighoffer has been using D to teach a group of 
 children to program. He wrote about his experience for the D 
 blog. Is D a viable first language? See what Steve has to say 
 about it :-)

 The blog:
 https://dlang.org/blog/2021/12/23/teaching-d-from-scratch-is-it-a-viable-first-language/

 I have read that Visual D has a better debugging experience, 
 but I need dub support for these projects, and Visual D focuses 
 on Visual Studio integration, something I don’t necessarily 
 want to deal with in teaching these kids
This is truly an understatement about Visual D, the debugging experience is at par with the native C++ one in VS. If I was a kid from that group, I would feel tormented by the dub/vscode experience :) Rainer Schuetze deserves a statue.
Dec 24 2021
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 24/12/2021 16:24, rumbu wrote:
 On Thursday, 23 December 2021 at 12:44:04 UTC, Mike Parker wrote:
 Steven Schveighoffer has been using D to teach a group of children to 
 program. He wrote about his experience for the D blog. Is D a viable 
 first language? See what Steve has to say about it :-)

 The blog:
 https://dlang.org/blog/2021/12/23/teaching-d-from-scratch-is-it-a-vi
ble-first-language/ 


 I have read that Visual D has a better debugging experience, but I 
 need dub support for these projects, and Visual D focuses on Visual 
 Studio integration, something I don’t necessarily want to deal with in 
 teaching these kids
This is truly an understatement about Visual D, the debugging experience is at par with the native C++ one in VS. If I was a kid from that group, I would feel tormented by the dub/vscode experience :) Rainer Schuetze deserves a statue.
Thanks, but no statue please ;-) BTW: the mago debug engine was originally written by Aldo Nunez. I adopted it and made it work as an extension to the VS Concord debugger. Please note that the native debug engine for VS Code is the same as for Visual Studio, and it only took some changes to make the former load extensions, too: https://github.com/microsoft/vscode-cpptools/issues/2932#issuecomment-853774543 Integrating it with code-d is just some installation issues away, see https://github.com/WebFreak001/code-debug/issues/271
Dec 24 2021