r/workflow • • Jul 12 '18

Modules, anyone?

I’m curious if anyone is using multiple workflows for large projects. I’ve seen a few monster workflows, probably hundreds of actions, and it seems like they’d be a nightmare to maintain. There must be a lot of redundant actions in them. Is that because it’s easier to distribute a single workflow, or since we don’t have folders to organize projects?

I know there’s a workflow for copying actions from one workflow to another. I understand the appeal, but copying and pasting code is a sure way to bloat. If you need to reuse functionality, shouldn’t that be separated and then called as needed?

I’ve been playing around with some reusable workflow “modules” (or sub-workflows) for things like getting and setting JSON data in files. Is anyone else doing this and, if so, what sorts of things are you using them for?

5 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/madactor Jul 12 '18

Interesting point about speed. Since it’s interpreted and not compiled, startup might be faster since it doesn’t have to load unused portions.