newbie; needs direction

A

Albert Schlef

I'm a very experienced programmer, but I'm new to ruby.

I've studied the grammar of the language already, I found it easy, and
I'm now looking for "good source code" that I can just read and learn
from.

I already studied ruby-dbi's source code.

I considered learning AcriveRecord, but maybe I should wait a bit with
this.

My question, sort of, is: "What now?"

I know it's a vague question. I'll ask it differently: "I've studied the
grammar. OK. And I'm a good programmer, probably. What should be my next
steps in Ruby? Should I look for a 'beautiful' package, like Rails, and
study it?"

I'm somewhat at a loss.
 
T

Tim Hunter

Albert said:
I'm a very experienced programmer, but I'm new to ruby.

I've studied the grammar of the language already, I found it easy, and
I'm now looking for "good source code" that I can just read and learn
from.

I already studied ruby-dbi's source code.

I considered learning AcriveRecord, but maybe I should wait a bit with
this.

My question, sort of, is: "What now?"

I know it's a vague question. I'll ask it differently: "I've studied the
grammar. OK. And I'm a good programmer, probably. What should be my next
steps in Ruby? Should I look for a 'beautiful' package, like Rails, and
study it?"

I'm somewhat at a loss.

Welcome to Ruby!

Two things. Well, three. No, four:

1. Check out the Ruby Quiz archives at www.rubyquiz.com. Lots of good
code there.

2. Don't just read Ruby, write Ruby. Studying Ruby is one thing,
experiencing Ruby something entirely different. But you knew that already.

3. Hang around. This is a great community with lots of great ideas,
experienced and talented programmers, and hot debates.

4. Interact. Post your code. Ask questions. Answer questions.

Good luck!
 
P

Pascal Bourguignon

Albert Schlef said:
I'm a very experienced programmer, but I'm new to ruby.

I've studied the grammar of the language already, I found it easy, and
I'm now looking for "good source code" that I can just read and learn
from.

I already studied ruby-dbi's source code.

I considered learning AcriveRecord, but maybe I should wait a bit with
this.

My question, sort of, is: "What now?"

I know it's a vague question. I'll ask it differently: "I've studied the
grammar. OK. And I'm a good programmer, probably. What should be my next
steps in Ruby? Should I look for a 'beautiful' package, like Rails, and
study it?"

I'm somewhat at a loss.

If you're a good programmer, or even a bad one (presumably you'll
become better), why don't you just program? Anything. For example,
you could try to implement an _emacs_ in ruby. Allow to specify some
grammar, and have it behave like a structure editor. Another example,
a favorite of mine: just write an AI shell. Instead of typing unix
commands, you'd tell it what you want and it would generate the unix
commands needed to reach the goals you set.


Or perhaps you want to become a ruby scholar? Then indeed, reading
all these gems would help.

--
__Pascal Bourguignon__ http://www.informatimago.com/

ADVISORY: There is an extremely small but nonzero chance that,
through a process known as "tunneling," this product may
spontaneously disappear from its present location and reappear at
any random place in the universe, including your neighbor's
domicile. The manufacturer will not be responsible for any damages
or inconveniences that may result.
 
R

Robert Dober

Very well put indeed Tim, justed wanted to say welcome too.

I guess the best idea was to ask the right question at the right
place, good luck with this marvelous language.

Robert
 
M

Marc Heiler

My question, sort of, is: "What now?"

I think there are many answers to that question.
One answer I would like to give is to play a bit with ruby,
and then make a project or a release that includes setup.rb and
a gem-way to install that project.
That way you will know/learn how projects are done in the ruby
world, and i think it is always useful to have more people that
know how to release even small projects in ruby.
 
R

Raju Gandhi

[Note: parts of this message were removed to make it a legal post.]

Again, Welcome to Ruby!!! Like you, I too am a Ruby Nuby so I hope my take
here helps.

First, I agree. Write some code to get a feel of the language. As they say,
programming is not a spectator sport. Start something small, anything that
interests you. Browse Ruby Quiz for some interesting problems and try and
work them (Honestly, I need to do that :D)

Having said that, I think you already have a good start by looking at some
of the existing code bases. I think you need to find a balance between
reading and writing. Reading will help you pick up a nuance (or a trick) in
the language that most books will not cover, writing will help you instill
it.

Another approach is pick up a book like Practical Ruby Projects [
http://tinyurl.com/3zrqbr], or something like Project Euler [
http://projecteuler.net/]. I personally find it hard to make up problems
unless they have a personal motive, so such books and sites help. Another
one is 99 Lisp problems (Just google it).

One way to try and understand Ruby well is to write unit tests. Take a
class, say String, and write unit tests for all of its methods! Its
painstaking, but its a lot of fun, and you will get to know Ruby intimately.


Sorry if I confused you even more than you were, but I do a bit of all of
the above. Its just what I am in the mood for. Spend an hour reading Rails
code coz I cant seem to figure out what its doing, then write some Ruby code
for a module. Getting bored, jump on to a problem I am trying to solve on
Eulers, then realize I dont understand how a particular method in
Enumberable works, so write some unit tests.

Hope this helps.

Happy Hacking.

Raju
 
D

David A. Black

Hi --

I'm a very experienced programmer, but I'm new to ruby.

Welcome! First lesson: you're not a newbie; you're a nuby! :)
I've studied the grammar of the language already, I found it easy, and
I'm now looking for "good source code" that I can just read and learn
from.

I already studied ruby-dbi's source code.

I considered learning AcriveRecord, but maybe I should wait a bit with
this.

My question, sort of, is: "What now?"

I know it's a vague question. I'll ask it differently: "I've studied the
grammar. OK. And I'm a good programmer, probably. What should be my next
steps in Ruby? Should I look for a 'beautiful' package, like Rails, and
study it?"

I'm somewhat at a loss.

I want to second Tim's point about not only asking but also answering
questions. I can't tell you how much I've learned about Ruby by
answering questions, specifically questions I don't know the answer to
but feel I should and therefore dig around for. Obviously you need to
bootstrap yourself into the language before you'll be comfortable
doing that, but definitely keep an eye toward it as you go.


David

--
Rails training from David A. Black and Ruby Power and Light:
INTRO TO RAILS June 9-12 Berlin
ADVANCING WITH RAILS June 16-19 Berlin
INTRO TO RAILS June 24-27 London (Skills Matter)
See http://www.rubypal.com for details and updates!
 
A

Albert Schlef

Thanks all!

I appreciate all your replies. (and am surprised at this warm welcome
:)
Don't just read Ruby, write Ruby.
[...]
why don't you just program? Anything.

Yes, that's what I'm going to do. I'll write a small CGI game. I'll
google for "paper and pencil games" and pick something interesting....
implement an _emacs_ in ruby. [...]
write an AI shell [...]

(Ah, that won't work. I want people to use my creation (ego, you know
;-), so an application for the web is preferable.)
Check out the Ruby Quiz archives at [...]
Interesting!


I personally find it hard to make up problems
unless they have a personal motive

That's very correct, Raju. Yes, I do have needs some Ruby scripts can
solve.
Interact. Post your code. Ask questions. Answer questions.
[...]
not only asking but also answering questions.

(I'm already doing that ...a little bit.)
[...] then make a project or a release that [...]

I'd love to use rubyforge.org.
something like Project Euler [http://projecteuler.net/].

That sounded frightening at first, but I see there are certainly things
there I can tackle, and enjoy.

People,
thanks for the motivation injection, I needed it!
 

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,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top