www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Poste some interesting vibe.d webpages

reply Alain De Vos <devosalain ymail.com> writes:
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/
Sep 09 2022
next sibling parent reply Alain De Vos <devosalain ymail.com> writes:
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.
Sep 14 2022
parent David <dave restall.net> writes:
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
Sep 20 2022
prev sibling parent reply Ben Jones <fake fake.fake> writes:
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
Sep 20 2022
parent reply Alain De Vos <devosalain ymail.com> writes:
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);
     }

```
Sep 22 2022
parent Alain De Vos <devosalain ymail.com> writes:
Note.
How to do authentications & sessions ,is important, but badly 
described.
Sep 23 2022