I'm a experienced Python developer (also other OO languages, like C++, C#, Java). Until now I had no reason to look at ruby because I love Python, but I'm very interested in Rails.
Could somebody probose a good tutorial for me? I'm not interested in 'how to program' and so one. My target is clearly Rails. Is there something for 'language-switchers' available?
Honestly, the best documentation / tutorial out there is the Agile Web Development book by Dave Thomas and DHH. You can get the PDF or hard-copy from http://www.pragprog.com.
···
On Oct 17, 2005, at 2:16 AM, Achim Domma (SyynX Solutions GmbH) wrote:
Hi,
I'm a experienced Python developer (also other OO languages, like C++, C#, Java). Until now I had no reason to look at ruby because I love Python, but I'm very interested in Rails.
Could somebody probose a good tutorial for me? I'm not interested in 'how to program' and so one. My target is clearly Rails. Is there something for 'language-switchers' available?
I'm a experienced Python developer (also other OO languages, like C++, C#, Java). Until now I had no reason to look at ruby because I love Python, but I'm very interested in Rails.
Could somebody probose a good tutorial for me? I'm not interested in 'how to program' and so one. My target is clearly Rails. Is there something for 'language-switchers' available?
also look in the back of Ruby Way book, there's perl to ruby and python
to ruby transition chapters.
Achim Domma (SyynX Solutions GmbH) wrote:
···
Hi,
I'm a experienced Python developer (also other OO languages, like C++,
C#, Java). Until now I had no reason to look at ruby because I love
Python, but I'm very interested in Rails.
Could somebody probose a good tutorial for me? I'm not interested in
I'm a experienced Python developer (also other OO languages, like C++,
C#, Java). Until now I had no reason to look at ruby because I love
Python, but I'm very interested in Rails.
Just FYI there's also Django:
I haven't used either Rails or Django, but I've read their intro
docs and they seem quite similar, at least on the surface.
Programming Ruby from the pragmatic bookshelf is a great guide to most of
what you will need to get going, and it has a good reference section. I came
from a strong perl/python background and this book has been invaluable.
Honestly, the best documentation / tutorial out there is the Agile Web Development book by Dave Thomas and DHH. You can get the PDF or hard-copy from http://www.pragprog.com.
I had already a look at the website, but the book does not seem to contain a introduction to Ruby. Because I'm new to Ruby, I think I should learn some basics first.
I haven't used either Rails or Django, but I've read their intro
docs and they seem quite similar, at least on the surface.
Yes, I know Django. It looks very promissing and as a python fan I would be happy if I could say: "Forget Rails, I'll use Django!". But from an objective point of view I would say, that Rails is at a point where Django might be in one or two years.
There's a short section / appendix at the back of the Agile Web Dev book that has an introduction to Ruby. It will probably be a good enough introduction for you, although if you plan to get heavily into Rails, you'll probably want the Ruby "Pickaxe" book as well. I refer to my copy of it all the time at work.
On Oct 17, 2005, at 2:46 AM, Achim Domma (SyynX Solutions GmbH) wrote:
Joe Van Dyk wrote:
Honestly, the best documentation / tutorial out there is the Agile Web Development book by Dave Thomas and DHH. You can get the PDF or hard-copy from http://www.pragprog.com.
I had already a look at the website, but the book does not seem to contain a introduction to Ruby. Because I'm new to Ruby, I think I should learn some basics first.
Honestly, the best documentation / tutorial out there is the Agile Web Development book by Dave Thomas and DHH. You can get the PDF or hard-copy from http://www.pragprog.com.
I had already a look at the website, but the book does not seem to contain a introduction to Ruby. Because I'm new to Ruby, I think I should learn some basics first.
Well, nothing like the Pickaxe book. You can start with the first Edition (which is a pleasure to read), I recommend buying the second edition as it is invaluable as a reference, and you can also read the chapters online on www.ruby-doc.org.#
Cheers,
V.-
I was in the same boat as you Achim, experienced Python guy who got
into Ruby because of Rails. Now it's my favorite language. I learned
on Agile Web Development and The Pickaxe, but there's definitely a lot
of the Pickaxe that I skimmed past. The most important section for
you is probably the one on blocks. Beyond that, you might want to run
through the section on Regular Expressions pretty quickly, as the
syntax may be a bit unfamiliar, specifically String.scan. Play around
with rubygems and irb (equivalent to the python interactive shell).
Oh, and a couple things that will be helpful to pick up rails quickly:
Things that begin with a colon, e.g. :action, or :controller, are
symbols, which are similar to Strings, save that they're more
efficient for certain comparison operations. That and method calls
like has_and belongs_to_many in class definitions are actually methods
that tend to modify the class definition that they're in.
···
On 10/17/05, Gene Tani <gene.tani@gmail.com> wrote:
Yes, I know Django. It looks very promissing and as a python
fan I would be happy if I could say: "Forget Rails, I'll use
Django!". But from an objective point of view I would say, that
Rails is at a point where Django might be in one or two years.
Hmm, I'm not too sure about that. For example, Django gives you an
automatic, production-ready admin interface for your model objects.
Rails has nothing of the sort. The admin interface is one of the
reasons Django has become extremely popular even though there's no
"official" version yet.
Rails and Django have different advantages and disadvantages; it's
ludicrous to say that Rails is "one or two years" ahead of Django.
I was in the same boat as you Achim, experienced Python guy who got
into Ruby because of Rails. Now it's my favorite language.
Interesting to here, that there are developers which converted from python to ruby. The syntax looks a little bit scaring to me. In this point I wonder about myself, because I was a hardcore-C++-template-guy for many years before I stared using python more and more.
> I learned
on Agile Web Development and The Pickaxe, but there's definitely a lot
of the Pickaxe that I skimmed past.
They look quite good, but I hesitate to buy two expensive books, just to give Rails a try.
The most important section for
you is probably the one on blocks. Beyond that, you might want to run
through the section on Regular Expressions pretty quickly, as the
syntax may be a bit unfamiliar, specifically String.scan. Play around
with rubygems and irb (equivalent to the python interactive shell). Oh, and a couple things that will be helpful to pick up rails quickly:
Things that begin with a colon, e.g. :action, or :controller, are
symbols, which are similar to Strings, save that they're more
efficient for certain comparison operations. That and method calls
like has_and belongs_to_many in class definitions are actually methods
that tend to modify the class definition that they're in.
That was just the kind of information I was looking. Thanks a lot. I'll have a look at the points you mentioned.
... uh, this is becoming a religious battle, and I don't know about
everybody else, but I'd much rather you two folks take it somewhere private.
j.
···
On 10/17/05, Adrian Holovaty <holovaty@gmail.com> wrote:
> Yes, I know Django. It looks very promissing and as a python
> fan I would be happy if I could say: "Forget Rails, I'll use
> Django!". But from an objective point of view I would say, that
> Rails is at a point where Django might be in one or two years.
Hmm, I'm not too sure about that. For example, Django gives you an
automatic, production-ready admin interface for your model objects.
Rails has nothing of the sort. The admin interface is one of the
reasons Django has become extremely popular even though there's no
"official" version yet.
Rails and Django have different advantages and disadvantages; it's
ludicrous to say that Rails is "one or two years" ahead of Django.
The syntax becomes quite natural, what is difficult is keeping perl,
python, tcl and ruby straight. Also, the language hasn't gone through
substantial overhauls like python 2.2 and perl 5.6, just new libraries
and incremental improvements (ok, a lot of them):
> I was in the same boat as you Achim, experienced Python guy who got
> into Ruby because of Rails. Now it's my favorite language.
Interesting to here, that there are developers which converted from
python to ruby. The syntax looks a little bit scaring to me. In this
point I wonder about myself, because I was a hardcore-C++-template-guy
for many years before I stared using python more and more.
Yeah, I wouldn't have thought that I would prefer ruby for the average
scripting project, but the language has some more kick to it; my
programs are shorter, and I can do more cool metaprogramming. Of
course, part of that is probably the fact that I learned Ruby after I
had a few more years of experience, so I guess I shouldn't be
surprised that my skills with it are more sophisticated.
They look quite good, but I hesitate to buy two expensive books, just to
give Rails a try.
The first edition of the Pickaxe is free, and it's the only version
that I've used. It's all over the net, but why's site is serving it
particularly fast today: http://whytheluckystiff.net/ruby/pickaxe/
If you do pick up the Agile Web Development Book, one thing that I
wished they would have covered was Active Migrations, which let you
define and modify your database tables in pure ruby. (domain specific
languages rock)