Jump to page: 1 24  
Page
Thread overview
January 25
Hi y'all,

As of January 11, 2019, http://gtkdcoding.com is up. It's a blog, it's a github page, it's simple examples of how to use GtkD for all that GUI stuff.

My approach is to lay out a firm foundation for both imperative and object-oriented paradigms, then build from there, taking things one step at a time.

This being Friday, the 4th post went up this morning. Please do let me know if you find it useful.

And why did I wait until now to announce? Well, on day one, it seemed a bit silly to announce with only one post. After the second and third, well... I still didn't feel there was enough to warrant excitement. But four posts? Now that's something to speak up about, ain't it?

Yup. That's what I thought, too.
January 25
PS: And let me know if you find any inaccuracies or if something isn't clear.
January 25
On Friday, 25 January 2019 at 21:16:59 UTC, Ron Tarrant wrote:
> Hi y'all,
>
> As of January 11, 2019, http://gtkdcoding.com is up. It's a blog, it's a github page, it's simple examples of how to use GtkD for all that GUI stuff.
>
> My approach is to lay out a firm foundation for both imperative and object-oriented paradigms, then build from there, taking things one step at a time.
>
> This being Friday, the 4th post went up this morning. Please do let me know if you find it useful.
>
> And why did I wait until now to announce? Well, on day one, it seemed a bit silly to announce with only one post. After the second and third, well... I still didn't feel there was enough to warrant excitement. But four posts? Now that's something to speak up about, ain't it?
>
> Yup. That's what I thought, too.

nice! I love seeing tutorials for D stuff, and GtkD is something I used to use for GUI applications a lot too. I only skimmed over it a bit, maybe you should also add a post about how to use GtkD with dub instead of manually invoking the compiler. I think dub is a lot more beginner friendly and easier to setup + users will probably want to add some dependencies in the future of their app.

When I tried it with dub it was just adding the dependency and everything worked on Linux, but I couldn't make it run on windows with that. (though I only used the app on Linux so that was not a problem for me)

Anyway, great seeing someone making GtkD tutorials, keep it up +1
January 26
Thank you :)
January 26
On Friday, 25 January 2019 at 21:16:59 UTC, Ron Tarrant wrote:
> Hi y'all,
>
> As of January 11, 2019, http://gtkdcoding.com is up. It's a blog, it's a github page, it's simple examples of how to use GtkD for all that GUI stuff.
>
> My approach is to lay out a firm foundation for both imperative and object-oriented paradigms, then build from there, taking things one step at a time.
>
> This being Friday, the 4th post went up this morning. Please do let me know if you find it useful.
>
> And why did I wait until now to announce? Well, on day one, it seemed a bit silly to announce with only one post. After the second and third, well... I still didn't feel there was enough to warrant excitement. But four posts? Now that's something to speak up about, ain't it?
>
> Yup. That's what I thought, too.

Great posts! Is there a reason you do not use dub? With dub it is even possible to set default architecture to x86_64 in the settings file. And the command line looks a bit less cryptic for new users.

Defintely worths a post on r/programming!

Kind regards
Andre
January 26
On Saturday, 26 January 2019 at 09:32:53 UTC, Andre Pany wrote:
> On Friday, 25 January 2019 at 21:16:59 UTC, Ron Tarrant wrote:
>> Hi y'all,
>>
>> As of January 11, 2019, http://gtkdcoding.com is up. It's a blog, it's a github page, it's simple examples of how to use GtkD for all that GUI stuff.
>>
>> My approach is to lay out a firm foundation for both imperative and object-oriented paradigms, then build from there, taking things one step at a time.
>>
>> This being Friday, the 4th post went up this morning. Please do let me know if you find it useful.
>>
>> And why did I wait until now to announce? Well, on day one, it seemed a bit silly to announce with only one post. After the second and third, well... I still didn't feel there was enough to warrant excitement. But four posts? Now that's something to speak up about, ain't it?
>>
>> Yup. That's what I thought, too.
>
> Great posts! Is there a reason you do not use dub? With dub it is even possible to set default architecture to x86_64 in the settings file. And the command line looks a bit less cryptic for new users.
>
> Defintely worths a post on r/programming!
>
> Kind regards
> Andre

There was even the idea to support custom skeletons for dub init:

dub init sample1 -t gtdk

This would create a dub skeleton folder with a sample gtkd source file.

Martin Nowak had here a great idea how to achieve this

https://github.com/dlang/dub/pull/600

This feature would become quite handy.

Kind regards
Andre
January 26
On Friday, 25 January 2019 at 21:16:59 UTC, Ron Tarrant wrote:
> Hi y'all,
>
> As of January 11, 2019, http://gtkdcoding.com is up. It's a blog, it's a github page, it's simple examples of how to use GtkD for all that GUI stuff.
>
> My approach is to lay out a firm foundation for both imperative and object-oriented paradigms, then build from there, taking things one step at a time.
>
> This being Friday, the 4th post went up this morning. Please do let me know if you find it useful.
>
> And why did I wait until now to announce? Well, on day one, it seemed a bit silly to announce with only one post. After the second and third, well... I still didn't feel there was enough to warrant excitement. But four posts? Now that's something to speak up about, ain't it?
>
> Yup. That's what I thought, too.

Hi Ron,

Glad to see this gtkd-programming blog up.

When I started using Gtkd I gathered several tutorials[1][2] (they are old) and more recently found this project[3] from Carlos Soriano which covers meson + flatpak.
Hope they are good for you.

Antonio

[1] https://sites.google.com/site/gtkdtutorial/
[2] http://britseyeview.com/software/articles/gsgtkd.html
[3] https://gitlab.com/csoriano/GtkDApp

January 27
On Friday, 25 January 2019 at 21:19:45 UTC, Ron Tarrant wrote:
> PS: And let me know if you find any inaccuracies or if something isn't clear.

Great Job! ^_^

and for dub type of project, just add `gtk-d` as a dependency, it works well both on windows and linux right out of box, the only thing is on windows we need to install runtime for gtkd.org first, and ldc or dmd only support MS buildtools to link aginst with gtkd runtime, the default mingw linker will not work.


Thanks for the great work!


January 29
On Friday, 25 January 2019 at 21:16:59 UTC, Ron Tarrant wrote:
> My approach is to lay out a firm foundation for both imperative and object-oriented paradigms, then build from there, taking things one step at a time.

By OOP you mean user controls? Hmm... I'd say, user control is an advanced topic. In most cases each form is written in isolation with little code sharing, and classes provided by gtkd as is (that imperative way) should work fine. If you notice a recurring pattern and want to reuse it among different forms, a user control can be used to abstract it, but it also has a higher design quality requirement, because now it's going to be reused and thus needs to work in different mostly unforeseen contexts. Just writing a one-off user control is an overkill.
January 29
On Friday, 25 January 2019 at 22:17:06 UTC, WebFreak001 wrote:

I think dub is a lot more beginner friendly and
> easier to setup + users will probably want to add some dependencies in the future of their app.

LOL! Not my experience with dub, but I take your point.

I haven't actually gone back to try dub again. I have a mental block when it comes to json files. Don't know why, it's just there.
« First   ‹ Prev
1 2 3 4