What is the equivalent of <lang>'s <feature> in ruby?

D

Daniel DeLorme

Is there a website that documents which method in ruby is equivalent to
which function in PHP? Or any other programming language? I could swear
something like this has been posted to this list before, but I couldn't
find any trace of it.
 
M

Mark Thomas

Is there a website that documents which method in ruby is equivalent to
which function in PHP? Or any other programming language? I could swear
something like this has been posted to this list before, but I couldn't
find any trace of it.

A simple function translation will result in PHP written in ruby
syntax. It's far better to learn idiomatic ruby. ri and irb are your
friends.
 
J

Javier Alvarez

Give this site a try: http://railsforphp.com/

Daniel said:
Is there a website that documents which method in ruby is equivalent
to which function in PHP? Or any other programming language? I could
swear something like this has been posted to this list before, but I
couldn't find any trace of it.
 
D

Daniel DeLorme

Javier said:

Thank you, that's a nice little website. The function reference is
not exactly extensive, but it's a very good start. One of the nice
things is that it explains the ruby idioms equivalent to a given
PHP function. So there goes your objection, Mr. Thomas :p

Now if only there was a website like that to assist ruby programmers
trying to code in, say, OCaml.

Daniel
 

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

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top