digitalmars.D.learn - Examples from "Programming in D" book
- Brother Bill (4/4) Jul 25 Has anyone already published the D examples from the "Programming
- novicetoo (2/2) Jul 25 check https://ddili.org/ders/d.en/index.html
- Brother Bill (3/5) Jul 25 Checked that out. These are not in order, nor exhaustive.
- =?UTF-8?Q?Ali_=C3=87ehreli?= (9/14) Jul 25 The code samples are extracted automatically. True, not in the order
- Brother Bill (9/27) Jul 25 Brother Ali, may I have copyright permission for "Programming in
- Monkyyy (4/35) Jul 26 Copying the 1 old book everyone has read may not be effective.
- Brother Bill (9/46) Jul 26 Totally agree, but one must start somewhere. The two books:
- thinkunix (10/15) Jul 26 Turning a code snippet into a working example can be a good exercise.
- Andy Valencia (4/6) Jul 26 It'll be great to see what you come up with. Thanks for taking
Has anyone already published the D examples from the "Programming in D" book? If not, I'll do it, and publish it here first. It would be good to have this on dlang.org for D newbies.
Jul 25
check https://ddili.org/ders/d.en/index.html under "Code samples as a .zip file"
Jul 25
On Friday, 25 July 2025 at 10:56:08 UTC, novicetoo wrote:check https://ddili.org/ders/d.en/index.html under "Code samples as a .zip file"Checked that out. These are not in order, nor exhaustive. I'll create my own code samples, then post them here first.
Jul 25
On 7/25/25 4:10 AM, Brother Bill wrote:On Friday, 25 July 2025 at 10:56:08 UTC, novicetoo wrote:The code samples are extracted automatically. True, not in the order they appear in the book; the file names are based on chapter names. True, not all pieces of code are extracted: Only the ones that define main() and not have any non-standard import (anything other than std and core). And to test, all those code samples (and some others that don't have main()) are automatically compiled and executed before put in that zip file. Alicheck https://ddili.org/ders/d.en/index.html under "Code samples as a .zip file"Checked that out. These are not in order, nor exhaustive. I'll create my own code samples, then post them here first.
Jul 25
On Friday, 25 July 2025 at 18:47:19 UTC, Ali Çehreli wrote:On 7/25/25 4:10 AM, Brother Bill wrote:Brother Ali, may I have copyright permission for "Programming in D" examples for COMMERCIAL use in creating a Udemy D tutorial course? Wy samples will be mostly exhaustive, expanding snippets, and even adding some from scratch. I get frustrated when I see example snippets without context. I always want full working code, so I can play with it. And so that's what I am building.On Friday, 25 July 2025 at 10:56:08 UTC, novicetoo wrote:The code samples are extracted automatically. True, not in the order they appear in the book; the file names are based on chapter names. True, not all pieces of code are extracted: Only the ones that define main() and not have any non-standard import (anything other than std and core). And to test, all those code samples (and some others that don't have main()) are automatically compiled and executed before put in that zip file. Alicheck https://ddili.org/ders/d.en/index.html under "Code samples as a .zip file"Checked that out. These are not in order, nor exhaustive. I'll create my own code samples, then post them here first.
Jul 25
On Friday, 25 July 2025 at 21:27:55 UTC, Brother Bill wrote:On Friday, 25 July 2025 at 18:47:19 UTC, Ali Çehreli wrote:Copying the 1 old book everyone has read may not be effective. I'm pretty sure every piece is common knowledge while there's allot of other stuff 80% of the community hasn't touchedOn 7/25/25 4:10 AM, Brother Bill wrote:Brother Ali, may I have copyright permission for "Programming in D" examples for COMMERCIAL use in creating a Udemy D tutorial course? Wy samples will be mostly exhaustive, expanding snippets, and even adding some from scratch. I get frustrated when I see example snippets without context. I always want full working code, so I can play with it. And so that's what I am building.On Friday, 25 July 2025 at 10:56:08 UTC, novicetoo wrote:The code samples are extracted automatically. True, not in the order they appear in the book; the file names are based on chapter names. True, not all pieces of code are extracted: Only the ones that define main() and not have any non-standard import (anything other than std and core). And to test, all those code samples (and some others that don't have main()) are automatically compiled and executed before put in that zip file. Alicheck https://ddili.org/ders/d.en/index.html under "Code samples as a .zip file"Checked that out. These are not in order, nor exhaustive. I'll create my own code samples, then post them here first.
Jul 26
On Saturday, 26 July 2025 at 17:48:43 UTC, Monkyyy wrote:On Friday, 25 July 2025 at 21:27:55 UTC, Brother Bill wrote:Totally agree, but one must start somewhere. The two books: Programming in D and The D Programming Language (a bit obsolete) are a good start. I think that if someone is starting with "Programming in D", that sample code that is exhaustive would be helpful. I am one of those where code snippets are not an effective way to learn. I need real working code that I can "play" with.On Friday, 25 July 2025 at 18:47:19 UTC, Ali Çehreli wrote:Copying the 1 old book everyone has read may not be effective. I'm pretty sure every piece is common knowledge while there's allot of other stuff 80% of the community hasn't touchedOn 7/25/25 4:10 AM, Brother Bill wrote:Brother Ali, may I have copyright permission for "Programming in D" examples for COMMERCIAL use in creating a Udemy D tutorial course? Wy samples will be mostly exhaustive, expanding snippets, and even adding some from scratch. I get frustrated when I see example snippets without context. I always want full working code, so I can play with it. And so that's what I am building.On Friday, 25 July 2025 at 10:56:08 UTC, novicetoo wrote:The code samples are extracted automatically. True, not in the order they appear in the book; the file names are based on chapter names. True, not all pieces of code are extracted: Only the ones that define main() and not have any non-standard import (anything other than std and core). And to test, all those code samples (and some others that don't have main()) are automatically compiled and executed before put in that zip file. Alicheck https://ddili.org/ders/d.en/index.html under "Code samples as a .zip file"Checked that out. These are not in order, nor exhaustive. I'll create my own code samples, then post them here first.
Jul 26
Brother Bill via Digitalmars-d-learn wrote:I think that if someone is starting with "Programming in D", that sample code that is exhaustive would be helpful. I am one of those where code snippets are not an effective way to learn. I need real working code that I can "play" with.Turning a code snippet into a working example can be a good exercise. Taking a piece of non-running code and making it run, helps you to better learn the language and makes you a better debugger. I also agree having full working examples is useful to fall back to if one gets stuck. The w3schools.com tutorials are a good example. Code snippets are provided when discussing features of a language, and full working examples are available in their playground via a "Run example" button. Everyone learns differently.
Jul 26
On Saturday, 26 July 2025 at 20:35:14 UTC, Brother Bill wrote:I think that if someone is starting with "Programming in D", that sample code that is exhaustive would be helpful.It'll be great to see what you come up with. Thanks for taking such a hands-on approach! Andy
Jul 26