Ruby question - Filtering array duplications

For general discussion related FlowStone
User avatar
DaveyBoy
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Ruby question - Filtering array duplications

Post by DaveyBoy »

Nice to know you got it sorted :)
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: Ruby question - Filtering array duplications

Post by kortezzzz »

Thanks Dave :)

I'm not a talented coder, so nothing comes easily with Ruby here :oops:
Anyway, there are hundreds like me out there, those who called the "silent majority" who barely post or comment, and that's why it's so critical to demonstrate every single piece of code (even what seems stupidly obvious for those who can code) with a bright schematic. When people been told "Oh, just use ".uniq". That's the method", they have no idea what to do with it, since this method needs the correct syntax in FS Ruby or it's nothing but useless :?
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Ruby question - Filtering array duplications

Post by RJHollins »

That's why I tried to use more RUBY in my last project.

If I don't, I'll forget much of what I almost started learning. Let alone, getting the proper Syntax.

Heck ... I'm still trying to remember WHEN to use an & in front of a variable. Sure, its' simple if we do this often ... but I often work in sprints when putting together a little utility tool I'd like to have.

So fortunate for the generous help offered here on the Forum ... but I still go to a lot of those RUBY sites, tracking down 'Methods' .... and many times, searching out questions that others have posted. But still I see a lot of 'Rail' formats, and others posting special 'Classes'. That's beyond what I can do.

Gotta say, though, when I do get a Ruby routine module working ... Man can it simplify the design and logic layout of my schematic.

Also wish I could organize the RUBY stuff [not my strong suite]. Like a sort of Ruby Database that could be search and ordered into categories. Even be able to then drop them into a schematic ... a dream :)
User avatar
wlangfor@uoguelph.ca
Posts: 912
Joined: Tue Apr 03, 2018 5:50 pm
Location: North Bay, Ontario, Canada
Contact:

Re: Ruby question - Filtering array duplications

Post by wlangfor@uoguelph.ca »

So, from missing links by MvdLee, here's a CParser collection.

And what's weird is that I can't find these anywhere. Anyone have more of them? They look useful.
Attachments
missing links 014 - cparser.fsm
cparser - mvdlee
(4.33 KiB) Downloaded 838 times
My youtube channel: DSPplug
My Websites: www.dspplug.com KVRaudio flowstone products
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: Ruby question - Filtering array duplications

Post by kortezzzz »

Rjhollins,

I agree with you. Generally, I try to avoid of using Ruby and use it only where there is no other reasonable solution (greenies get very messy or, heavy or have no answer to a given chellenge).
I collect ruby patches as well and add them into my toolbox and try to keep them organized as possible, but never seriously divided them into categories and etc. However, I'll upload my collection later. Maybe we can try creating a mini database here :)
User avatar
wlangfor@uoguelph.ca
Posts: 912
Joined: Tue Apr 03, 2018 5:50 pm
Location: North Bay, Ontario, Canada
Contact:

Re: Ruby question - Filtering array duplications

Post by wlangfor@uoguelph.ca »

kortezzzz wrote:Rjhollins,

I agree with you. Generally, I try to avoid of using Ruby and use it only where there is no other reasonable solution (greenies get very messy or, heavy or have no answer to a given chellenge).
I collect ruby patches as well and add them into my toolbox and try to keep them organized as possible, but never seriously divided them into categories and etc. However, I'll upload my collection later. Maybe we can try creating a mini database here :)


That's great, should be useful thanks.
My youtube channel: DSPplug
My Websites: www.dspplug.com KVRaudio flowstone products
Post Reply