I like J's Projects mostly because it enables me to work on smaller files, but 
then distribute them as one bigger file. The main reason I like this is because 
it saves me scrolling up and down one big file while I'm developing. Instead 
I'm able to quickly jump to the bit I'm interested in because I've separated it 
into its own section (source file) with an appropriate name.

The downside to this approach is that when someone is working with the 
distributed script, they don't know about the contributing source scripts and 
will therefore find it harder to communicate about the code or send patches for 
the correct file.

Potentially I could have my cake and eat it too. That is I could get the easy 
navigation provided by small source files, yet retain a single, bigger script 
if the IDE recognized and supported "Sections" (or to extend J's grammatical 
analogy - "Chapters") in a script. For example the start of a section could be 
indicated by:

NB.# Initialize

If it is desirable to explicitly close sections (can't think why though), maybe 
the following syntax would be better:

NB.( Utils

NB.)

For now Sections could be supported by the IDE as a tab in the Sidebar much 
like the current "defs" tab. Or perhaps the idea of Sections could be 
integrated with "defs" so that defs are shown within Sections. 
Eventually/Potentially (when/if the code folding support for gtksourceview gets 
released), the syntax highlighter could also support the sections with code 
folding.

I'd like to hear any opinions on this idea.

Thanks,
Ric

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to