RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Punch Code Generator. Frame for designing business logic with The Clean Architecture

If you find a solution for how to pack your business logic you can have a look at Punch. Its basic idea is to provide a clean robust frame for domain business logic and bring efficiency to the design process.

Playing last year with The Clean Architecture I found it just a really amazing tool, but it also was a bit tiresome because of the necessity to create and require entities and services sources separately. That’s why I designed Punch, which provides:

  • three basic blocks - entity, service, and plugin
  • source code templates for those blocks
  • command-line interface for punching those blocks
  • simple domain DSL to express and “punch” domains

You can find an example of a “punched” DSL expressed domain in punch_users repository.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in