Hacker News new | ask | show | jobs
by breck 1263 days ago
Interesting! This is how I design all of my software.

Do you know the term for this pattern? Is it simply the "Command pattern"? I called it "User Methods" once (https://breckyunits.com/user-methods.html), but was never crazy about that term.

1 comments

It is the command pattern with the added stipulation that there must be some way to represent every command as a simple command line like expression. MelScript commands look a lot like shell commands.

Maybe that's not a requirement. Adobe products will export commands as JavaScript and you can (could?) script most of their tools.

https://helpx.adobe.com/photoshop/using/scripting.html

The difference there is it's an afterthought vs Maya where the UI you interact with is literally implemented in this scripting language, all of which is editable if you want to customize it.