-
Notifications
You must be signed in to change notification settings - Fork 3
Create a Stage class #43
Copy link
Copy link
Open
Labels
Type: RefactorRefactoring existing code to improve long-term sustainability.Refactoring existing code to improve long-term sustainability.
Description
Activity
Metadata
Metadata
Assignees
Labels
Type: RefactorRefactoring existing code to improve long-term sustainability.Refactoring existing code to improve long-term sustainability.
Given the way the conceptual stage is implemented in the code, it'd be real nice to have a
Stageclass, with methods defined for the different phases, that users could inherit from in creating their own stages. We didn't do things this way initially, because we wanted the ease of a user to be able to simply apply the@stage()decorator to a method, and haveStagedScripthandle all the rest of the magic behind the scenes. That said, it might be possible to preserve backward compatibility and have a decorator dynamically create aStagederivative behind the scenes. I don't know. I get the feeling this would clean some things up—especially for power users—but at the expense of a higher barrier to entry for newbies.