Hi 2014-12-12 8:14 GMT-03:00 Tudor Girba <tudor@tudorgirba.com>:
Hi,
As input for designing new features that better support scripting in Pharo, we would benefit from a bit more input around the role scripts play in your development life.
To this end, I would like to invite you to share your scripting experience. Here are some questions to start from, but feel free to diverge:
- What kind of actions do you put in scripts?
Temporary workflows.
- Do you rely on script files stored on the disk at all?
Sometimes yes.
- Where do you store your scripts (in one folder, in many folders)?
I use the ScriptManager to store my scripts. When using files I store them in many folders (per image/project)
- Do you version your scripts?
Yes
- Do you store them in separate files with dedicated names, or tend to put multiple snippets in one larger file?
- I mostly rely in ScriptManager for this but sometimes I put one script per tab in Notepad++ (Notepad++ doesn't force to write a name and doesn't remove tabs if you don't save). - If multiple snippets are located in one file then I loose syntax highlighting.
- Do you rely on the names of the scripts?
Yes, to identify the script task. But never to import/require by name.
- Why do you use a script file and not a class?
Because conceptually are different. A class represents a conceptual evolution of what could be initially a script. And because we do not have yet a Workflow system like Galaxy or myExperiment :) Cheers, Hernán
Cheers, Doru
-- www.tudorgirba.com
"Every thing has its own flow"