Ruby for [...] programmers

D

Doug Bromley

------=_Part_6352_23092201.1142986952590
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi all

I've come across an online book concerning Ruby for Perl programmers but
I've yet to find any for other languages.

The Pick Axe book is a little to slow and simplistic telling far to many of
the core fundamentals of programming OO in general.

I'd like a book that gives more of a conversion from one language set to
another. Pointing out idioms and syntactic differences.

A programmers Ruby guide/tutorial.

Does anyone know of anything that may help me in this?

All the best

Doug

------=_Part_6352_23092201.1142986952590--
 
J

Jason Perkins

Hi all

I've come across an online book concerning Ruby for Perl
programmers but
I've yet to find any for other languages.

The Pick Axe book is a little to slow and simplistic telling far to
many of
the core fundamentals of programming OO in general.

I'd like a book that gives more of a conversion from one language
set to
another. Pointing out idioms and syntactic differences.

A programmers Ruby guide/tutorial.

Does anyone know of anything that may help me in this?

You may want to give Hal Fulton's, "The Ruby Way," a try. More
advanced material and includes chapters on moving to Ruby from Perl
and Python.

HTH,

--
Jason Perkins
(e-mail address removed)

"The key to performance is elegance, not
battalions of special cases."
- Jon Bentley and Doug McIlroy
 
B

Benjohn Barnes

Hi all

I've come across an online book concerning Ruby for Perl
programmers but
I've yet to find any for other languages.

The Pick Axe book is a little to slow and simplistic telling far to
many of
the core fundamentals of programming OO in general.

I'd like a book that gives more of a conversion from one language
set to
another. Pointing out idioms and syntactic differences.

A programmers Ruby guide/tutorial.

Does anyone know of anything that may help me in this?

:) Well, that was the Pickaxe for me, but you've already said you
differ on that. ... The reason I say that, is I came from a c++
background (I like to think I'm reasonably capable at it too). While
I never felt that c++ gave an especially good way of describing
anything much (and I think OO is pretty limited, on the whole), it
was still very helpful to read the Pickaxe and find out just how much
I'd been missing out on.
 
B

Benjohn Barnes

You may want to give Hal Fulton's, "The Ruby Way," a try. More
advanced material and includes chapters on moving to Ruby from Perl
and Python.

Curious; I found it was a lot less advanced, and gave far more rote
stuff I could find anywhere else (using abstract data types to
describe trees and stacks, etc). For the most part, I skimmed the
chapters and found almost nothing I didn't already know. Ironically,
from my very limited exposure to Ruby, it didn't at all hint at "the
ruby way"; it gave the feel of doing things very conventionally.

But then, the Pickaxe turned up at the same time as Ruby for me, and
together, they re-ignited my love of programming, so I probably have
an overly positive slant on it.

I wonder - perhaps the gaps in my generally c++ background was well
filled by the Pickaxe book, where as yours was well filled with The
Ruby Way?

Cheers,
Benjohn
 
G

Gregory Seidman

]
} :) Well, that was the Pickaxe for me, but you've already said you
} differ on that. ... The reason I say that, is I came from a c++
} background (I like to think I'm reasonably capable at it too). While
} I never felt that c++ gave an especially good way of describing
} anything much (and I think OO is pretty limited, on the whole), it
} was still very helpful to read the Pickaxe and find out just how much
} I'd been missing out on.
[...]

I've said it before and I'll say it again. C++ has duck typing. (It's in
the templates.) It just happens at compile time instead of run time. This
has some significant advantages, not least of which is that the compiler
can do a lot of static analysis of your code, allowing it to catch errors
in code paths that runtime testing may not exercise.

C++ is good for a different class of problems than Ruby but if you don't
think C++ is especially good for any purpose, or you even think that C++ is
exclusively OO, then you didn't really know C++ that well and you didn't
use it to its full potential.

--Greg
 
B

Benjohn Barnes

I've said it before and I'll say it again. C++ has duck typing.
(It's in
the templates.)

It's not Ruby's duck typing that makes me like it (I I agree with
your templating point). It's Ruby's libraries, its clean and simple
syntax, it's pre-installedness on OS X, the standard profiler,
debugger, interactive shell, and documentation system that come out
of the box. It's packaging system. I especially like irb - the shell.
It just happens at compile time instead of run time. This
has some significant advantages, not least of which is that the
compiler
can do a lot of static analysis of your code, allowing it to catch
errors
in code paths that runtime testing may not exercise.

C++ is good for a different class of problems than Ruby but if you
don't
think C++ is especially good for any purpose, or you even think
that C++ is
exclusively OO, then you didn't really know C++ that well and you
didn't
use it to its full potential.

:) I can only say I'm happy to have been spared that which I missed.
 
L

Logan Capaldo

--Apple-Mail-5--585243300
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed


And I know C++ reasonably well and have been trying to exercise C++ to
what *should* work:

struct ToString
{
ToString()
{
}

template <class T>
std::string operator()(const T::values& v)
{
return T::to_str(v);
}
};

So far as I can tell, it doesn't work. Without something like that
(where, ideally, T could *either* be a real class and we're talking
about typedefs and static member functions inside the class or a
namespace), C++ can't claim that it does "duck typing", even at
compile time.

-austin

What compiler are you using? I'm pretty sure I've gotten g++ to do
acrobatics like this in the past.
--Apple-Mail-5--585243300--
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top