Thread overview
Poste some interesting vibe.d webpages
Sep 20
David
Sep 20
Ben Jones
6 days ago
Alain De Vos
5 days ago
Alain De Vos
September 09

I find documentation of vibe.d between worse and bad, while the framework is relative OK.
There are a few good links on the internet.
I post two of them.
Feel free to add other web links in order to increase our knowledge.

https://vibed.org/blog/posts/a-scalable-chat-room-service-in-d

https://aberba.com/2016/form-upload-in-vibe-d/

September 14

Although the framework is good. There is no community. Or general acceptance. Which is a pitty.
Currently I ask myself how to do "sessions" with vibe.d.

September 20

On Wednesday, 14 September 2022 at 19:34:01 UTC, Alain De Vos wrote:

>

Although the framework is good. There is no community. Or general acceptance. Which is a pitty.
Currently I ask myself how to do "sessions" with vibe.d.

Hi Alain,

I'm new to D and looking at vibe as well but I'm not as far down the path as settling on it as the final solution.

Have you looked at alternatives to vibe such as the hunt framework ?

https://code.dlang.org/packages/hunt-framework

It does seem better documented and fuller featured than vibe but that could be due to me not having an in-depth knowledge of either of them :-)

Regards,

D

September 20

On Friday, 9 September 2022 at 13:40:45 UTC, Alain De Vos wrote:

>

I find documentation of vibe.d between worse and bad, while the framework is relative OK.
There are a few good links on the internet.
I post two of them.
Feel free to add other web links in order to increase our knowledge.

https://vibed.org/blog/posts/a-scalable-chat-room-service-in-d

https://aberba.com/2016/form-upload-in-vibe-d/

Here's a Vibe.d version of a dice game that I wrote early on in the pandemic. I would have added session support next if I'd continued to work on it: https://github.com/benjones/farkle

6 days ago

It's possible to remove the "@" annotation & use the default names of functions for the vibe framework,
E.g,

final class WebChat
{
    // GET /
    void get()
    {
        render!("index.dt", names);
    }

    void getEdit(string myid)
    {
        int id = myid.to!int;
        string firstname = names[id].firstname;
        string lastname = names[id].lastname;
        render!("edit.dt", id, firstname, lastname);
    }

    void postEdit(string myid, string firstname, string lastname)
    {
        int id = myid.to!int;
        names[id].firstname = firstname;
        names[id].lastname = lastname;
        render!("index.dt", names);
    }

5 days ago

Note.
How to do authentications & sessions ,is important, but badly described.