Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Code Snippet Manager

Post any examples or modules that you want to share here

Code Snippet Manager

Postby billv » Mon Jul 29, 2013 12:30 pm

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 1398 times
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Code Snippet Manager

Postby tester » Mon Jul 29, 2013 2:31 pm

Nice idea.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Code Snippet Manager

Postby RJHollins » Mon Jul 29, 2013 5:25 pm

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-)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Code Snippet Manager

Postby TrojakEW » Fri Aug 16, 2013 9:53 am

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

Re: Code Snippet Manager

Postby trogluddite » Fri Aug 16, 2013 10:21 am

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

Re: Code Snippet Manager

Postby billv » Fri Aug 16, 2013 10:35 am

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
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Code Snippet Manager

Postby trogluddite » Fri Aug 16, 2013 11:54 am

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

Re: Code Snippet Manager

Postby billv » Sat Aug 17, 2013 9:30 am

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: ..
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Code Snippet Manager

Postby trogluddite » Sat Aug 17, 2013 9:46 am

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

Re: Code Snippet Manager

Postby billv » Sun Aug 18, 2013 1:21 am

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...
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Next

Return to User Examples

Who is online

Users browsing this forum: No registered users and 80 guests