Poste some interesting vibe.d webpages

2022-09-09 Thread Alain De Vos via Digitalmars-d-learn
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/



Re: Poste some interesting vibe.d webpages

2022-09-14 Thread Alain De Vos via Digitalmars-d-learn
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.


Re: Poste some interesting vibe.d webpages

2022-09-20 Thread David via Digitalmars-d-learn
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


Re: Poste some interesting vibe.d webpages

2022-09-20 Thread Ben Jones via Digitalmars-d-learn

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


Re: Poste some interesting vibe.d webpages

2022-09-22 Thread Alain De Vos via Digitalmars-d-learn
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);
}

```



Re: Poste some interesting vibe.d webpages

2022-09-23 Thread Alain De Vos via Digitalmars-d-learn

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