Thread overview
A tutorial teaching the basics about multimedia with the arsd library
Jun 30, 2019
Murilo
Jul 01, 2019
Andre Pany
Jul 02, 2019
Murilo
Jul 01, 2019
Cym13
Jul 02, 2019
Murilo
Aug 01, 2019
Murilo
Jul 01, 2019
angel
Jul 09, 2019
Murilo
June 30, 2019
Hi everyone, I am writing a tutorial teaching the basics about multimedia programming using the arsd library. This is a library all D programmers should have since it is very useful and easy. In this tutorial I will teach in a fun and easy way how to use it for GUIs, image displays, games, etc...

Here is the GitHub link: https://github.com/MuriloMir/arsd_multimedia_tutorial
And please join the official facebook Dlang group: https://www.facebook.com/groups/ProgrammingInD/
July 01, 2019
On Sunday, 30 June 2019 at 23:46:27 UTC, Murilo wrote:
> Hi everyone, I am writing a tutorial teaching the basics about multimedia programming using the arsd library. This is a library all D programmers should have since it is very useful and easy. In this tutorial I will teach in a fun and easy way how to use it for GUIs, image displays, games, etc...
>
> Here is the GitHub link: https://github.com/MuriloMir/arsd_multimedia_tutorial
> And please join the official facebook Dlang group: https://www.facebook.com/groups/ProgrammingInD/

Hi,

please consider using Dub, this will reduce a lot of complexity of the tutorial.
Everything you need to run this arsd based application is just use 1 command: dub app.d

```
/+ dub.sdl:
    name "application"
    dependency "arsd-official:cgi" version="3.0.1"
    subConfiguration "arsd-official:cgi" "embedded_httpd"
+/

import arsd.cgi;

void main()
{
    cgiMainImpl!(handle, Cgi, defaultMaxContentLength)(["--port", "5000"]);
}

void handle(Cgi cgi)
{
    cgi.setResponseStatus("204 No Content");
}
```

Kind regards
André
July 01, 2019
On Sunday, 30 June 2019 at 23:46:27 UTC, Murilo wrote:
> Hi everyone, I am writing a tutorial teaching the basics about multimedia programming using the arsd library. This is a library all D programmers should have since it is very useful and easy. In this tutorial I will teach in a fun and easy way how to use it for GUIs, image displays, games, etc...
>
> Here is the GitHub link: https://github.com/MuriloMir/arsd_multimedia_tutorial
> And please join the official facebook Dlang group: https://www.facebook.com/groups/ProgrammingInD/

I really dislike that you use screenshots of code, it makes copy-pasting impossible. There are ways to produce pdfs with colored, copyable source code (like using RST for redaction then rst2pdf for production, but I'm not sure it'll be the easiest for you).
July 01, 2019
On Sunday, 30 June 2019 at 23:46:27 UTC, Murilo wrote:
> Hi everyone, I am writing a tutorial teaching the basics about multimedia programming using the arsd library. This is a library all D programmers should have since it is very useful and easy. In this tutorial I will teach in a fun and easy way how to use it for GUIs, image displays, games, etc...
>
> Here is the GitHub link: https://github.com/MuriloMir/arsd_multimedia_tutorial
> And please join the official facebook Dlang group: https://www.facebook.com/groups/ProgrammingInD/

Very nice, thank you !
As has been pointed out by others, it would be great if code snippets could've been copyable.
July 02, 2019
> please consider using Dub, this will reduce a lot of complexity of the tutorial.
> Everything you need to run this arsd based application is just use 1 command: dub app.d
>
> ```
> /+ dub.sdl:
>     name "application"
>     dependency "arsd-official:cgi" version="3.0.1"
>     subConfiguration "arsd-official:cgi" "embedded_httpd"
> +/

Thanks for the feedback André(are you Brazilian too?) but the primary reason I chose this library is because it does NOT require a package manager at all and I think that makes it simpler.
July 02, 2019
> I really dislike that you use screenshots of code, it makes copy-pasting impossible. There are ways to produce pdfs with colored, copyable source code (like using RST for redaction then rst2pdf for production, but I'm not sure it'll be the easiest for you).

I will change that now. Thanks for the advice, it did not occur to me that copy-pasting was important because I always prefer typing the whole code in order to practice and learn better.
July 09, 2019
Guys, go check how it is now, I think it is now very good, it has several pages and several code examples(no screenshots).

https://github.com/MuriloMir/arsd_multimedia_tutorial
August 01, 2019
On Monday, 1 July 2019 at 05:34:06 UTC, Cym13 wrote:
> I really dislike that you use screenshots of code, it makes copy-pasting impossible. There are ways to produce pdfs with colored, copyable source code (like using RST for redaction then rst2pdf for production, but I'm not sure it'll be the easiest for you).

Hi Guys. I am nearly done with the tutorial and it is now very complete, it now teaches how to use the arsd library to draw all sorts of stuff and to receive mouse and keyboard input. I think you will like it. If you use it and like it please let me know because I would be very happy to see my work being spread. Cheers.
Here is the GitHub page: https://github.com/MuriloMir/arsd_multimedia_tutorial

And here is the official Dlang facebook page, please join: https://www.facebook.com/groups/ProgrammingInD/