news.volyx.in

Show HN: Rust Web Framework (github.com)

488 points by levkk · 654 days ago · 258 comments on HN

Article summary

Rwf is a comprehensive Rust web framework that follows the classic MVC pattern and provides features such as an HTTP server, ORM, dynamic templates, and authentication. The framework is currently in beta and is looking for early adopters. It has a simple and easy-to-use API, with examples available in the repository. The documentation is available, but can be improved.

Main themes

  • Rust web framework
  • MVC pattern
  • Web development
  • Framework design
  • Code organization
  • Business logic

What commenters say

  • The framework should discourage business logic in the model layer to maintain a clean and scalable architecture.
  • Some argue that business logic should be placed in the model layer, while others believe it should be separated into service objects.
  • The use of service objects can lead to scattered and hard-to-discover code, and may not be necessary in all cases.
  • A 'skinny controller, fat model' approach can make code easier to debug, organize, and discover, but may lead to large and complex models.
  • The placement of business logic is a matter of debate, with some arguing for a 'unit test' level approach in the model and 'integration test' level approach in services.
  • The term 'service' can be overloaded and have different meanings, leading to confusion and disagreement.
  • A well-organized framework should have a clear and consistent architecture, with a balance between simplicity and complexity.
  • The choice of framework design and code organization depends on the specific needs and goals of the project.