Skip to content

Conversation

@rmarronnier
Copy link

This might overlap with the objectives of #1112 but it was a dream I had for a long time.
I LOVE the Lucky concept of Operation : specific business logic encapsulated in a single file.
It uses typing and validation to make things really robust. So why non-db related logic (think services) coulnd't benefit from these goodies ?
Again, I used Claude to extract a new Lucky::BaseOperation file and new files that can be moved to the lucky shard repo.
Thinking about operation dependent code in the lucky repo, we can really be free of Avram requirement.

@rmarronnier
Copy link
Author

What was not extracted and implemented for the lucky basic operation :

The following Avram features remain in Avram and were not moved to Lucky:

  • Full callback system - The macro-based callback system with conditions (before_run :method, if: :condition)
  • Attribute system - The complete attribute definition and management system
  • Validation system - The validation methods and infrastructure
  • Error handling - The operation errors module
  • Needy initializer - The needs macro and initialization system

These need more work / thought but they would really be valuable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant