Page 1 of 2

Code Snippet Manager

Posted: Mon Jul 29, 2013 12:30 pm
by billv
Here's a simple Code snippet manager.
At the moment its got 2 modules (40 x code each), one set up for ruby, the other dsp.
Easy to expand it....or change it to suit.
This version lives in your toolbox....so the downside is after editing it, you have to
delete the "old" manager in the toolbox before you pack the edited version away.
I did build another that saved/loaded from file, run as exe in the background,
but the toolbox version seemed more practical.

@Support
Any chance you guys can build something like this into FS. :?:

Code Snippett Manager.fsm
(57.45 KiB) Downloaded 1500 times

Re: Code Snippet Manager

Posted: Mon Jul 29, 2013 2:31 pm
by tester
Nice idea.

Re: Code Snippet Manager

Posted: Mon Jul 29, 2013 5:25 pm
by RJHollins
This is a really good idea and nice design Billv. 8-)

Keeping track of, or remembering a piece of code will definitely benefit from this.

Big THANKS for sharing !
8-)

Re: Code Snippet Manager

Posted: Fri Aug 16, 2013 9:53 am
by TrojakEW
Good idea - " brain in the bag". Sometimes I forgot how to do something even if I done it before. This will refresh my memories :idea: . I have added som basic ruby array stuff.

Re: Code Snippet Manager

Posted: Fri Aug 16, 2013 10:21 am
by trogluddite
Missed this first time around - lovely bit of work Billy.
I tend to use an external editor myself (my eyes just don't like the dark text/ light background combo of FS editors!), but this is a great idea for those little bits of code that get used all the time.
If you ever want to add any stuff out of my posts, feel free - it would be great to start collecting things into a little "Ruby toolkit".

Re: Code Snippet Manager

Posted: Fri Aug 16, 2013 10:35 am
by billv
TrojakEW wrote:Good idea -

Yeh...but hopefully DSPR will come to the rescue and do it better.
It needs "syntax"....if we could see the code in all its glory..
would be great...especially for learners like me...
And having to switch from edit to view is really annoying..i hate that part..
but it was the best compromise i saw...cause i failed to modify the edit box + scrollbar
into one unit....
But I love the "speed" of it, so for me I'm finding it better than running a dedicated program
like Notepad++ at the same time, and having to "load" what i want all the time...

I think chances are good on "DSPR re-design and implementation into FS"
How hard could it be.... :?:
And they don't have to go the whole way to start off....
they could always start very simple...then slowly update...

Come on' @support....ruby is a beast...help us manage it properly.... :twisted:
EDIT:
Thanks trog.....great to see your face again... :D

Re: Code Snippet Manager

Posted: Fri Aug 16, 2013 11:54 am
by trogluddite
billv wrote:..great to see your face again...

Dammit - could have sworn I disabled my laptop's web-cam, the CIA might have been watching me all this time! he he! :lol:

Yes, I agree - now that the Ruby/VST problem seems to be fixed, it would be nice to see Ruby get some better editing and de-bugging control. Couple of things I'd like to see in particular...
- Better error messages - Ruby is able to provide a full stack trace with line numbers whenever an error is raised - it would be nice to see this!
- Proper reset for when the "excess processing" fuse kicks in - having to save, reload, and then go around turning all the Ruby editors back on is a real PITA!
- Some way to prioritise parsing order for the Ruby edits. I've been making new classes etc. quite a bit, and it's rather tricky making sure that they load in the right order so that dependencies are honoured.

Still, your good work is appreciated - better to provide a working example to point the direction than just to sit and moan! ;)

Re: Code Snippet Manager

Posted: Sat Aug 17, 2013 9:30 am
by billv
trogluddite wrote: billv wrote:..great to see your face again...

Dammit - could have sworn I disabled my laptop's web-cam, the CIA might have been watching me all this time! he he! :lol:

I thought your avatar was your real face.. : :D ...... :lol: :lol: ..

Re: Code Snippet Manager

Posted: Sat Aug 17, 2013 9:46 am
by trogluddite
billv wrote:I thought your avatar was your real face.. :

He he - massively photoshopped to make me look more beautiful! ;)

Re: Code Snippet Manager

Posted: Sun Aug 18, 2013 1:21 am
by billv
Hey...i find i still sometimes revert to other way of filing things away....
putting lots of ruby coded components in one module, drop in toolbox...
very quick way to work......no syntax issues like the snippet manager...