Want to write something like speech coder using Ruby

J

Jianhong.Wang

Hi, guys!

I am learning Ruby and want to write several speech codec to polish my
Ruby skill. I have several questions

1. I need some numeric lib, I found some like NArray, fftw-Ruby.
Mydevelopement evironment is Window OS and MingW. I wonder if I can use
all these libs under this kind of setup and do I miss something else.
And what is a good visualized tool? ruby-gnuplot?

2. Can anyone suggest a document for coding style of Ruby and a simple
open source project as an example?

Thanks a lot!
 
G

Gregory Brown

Daniel said:
Biggest style thing I've found (and it's started carrying over to my
other coding) is underscored_variables

They seemed a little unnatural at first, but now I think it's easier to read.

It was mentioned at the RubyConf that CamelCase is more difficult to
read than under_scored variables for Japanese rubyists. I only heard
the question and not the answer, so it may be totally untrue.
Regardless, under_scored variables, CamelCased class names, two space
indentation and expand your tabs to spaces.

Try to avoid loops (use iterators wherever possible) and I think you'll
be in business.

The link to RubyGarden is the only style thing I've seen mentioned that
covers style.
I'd also be interested in seeing one crop up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top