|Posted by zoujiaqing|
in reply to aberba
Posted in reply to aberba
On Tuesday, 18 May 2021 at 20:55:31 UTC, aberba wrote:
On Tuesday, 18 May 2021 at 10:09:43 UTC, zoujiaqing wrote:
Laravel is the most popular web framework in PHP. It is easy to use and easy to maintain.
We currently have hunt framework as a web framework, but in the process of using it, users need to learn more unique usages. We hope to re design a new web framework based on laravel's design method. So that more people can simply and quickly use D programming language to develop web application server and restapi server.
At the same time, it is convenient for more PHP developers to use D programming language for web application development.
I'd like to hear your suggestions and expectations for such a web framework.
I happen to be using Laravel more these days at work and I thought Hunt looks quite similar. What I didn't quite like were:
Passing data to the view in hunt isn't as clean as Laravel's way of passing data to blade
Unlike eloquent (as used in Laravel), the database module of hunt felt too cumbersome to use... too much boilerplate.
setting up routes and config in hunt is done with .ini file. Personally world prefer doing that in D code. In Laravel, its al done in PHP code.
Great web docs. That's one reason why I got up to speed with Laravel quickly. The docs is just soo good.
That's pretty much what comes to mind... simplicity, elegance and consistency. Newest version of Laravel is much more simplified so that should be a goal.
Hunt framework uses the syntax of twig template engine. At present, blade is only used for scripting languages, such as PHP and JSP.
Eloquent is much simpler than entity. In this aspect, we will study the usage of eloquent and see how to implement it in D language.
If the configuration is written in D language, it will not be modified after compilation.
Laravel's documentation is really great, we will be like laravel's documentation!