Code Snippet Manager

Post any examples or modules that you want to share here
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Code Snippet Manager

Post 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
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Code Snippet Manager

Post by tester »

Nice idea.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Code Snippet Manager

Post 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-)
User avatar
TrojakEW
Posts: 111
Joined: Sat Dec 25, 2010 10:12 am
Location: Slovakia

Re: Code Snippet Manager

Post 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.
Attachments
Code Snippett Manager.fsm
(59.28 KiB) Downloaded 1424 times
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Code Snippet Manager

Post 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".
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Code Snippet Manager

Post 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
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Code Snippet Manager

Post 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! ;)
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Code Snippet Manager

Post 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: ..
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Code Snippet Manager

Post by trogluddite »

billv wrote:I thought your avatar was your real face.. :

He he - massively photoshopped to make me look more beautiful! ;)
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Code Snippet Manager

Post 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...
Post Reply