Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Small practice programs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dark2  
View profile  
 More options Nov 19 2005, 3:25 pm
Newsgroups: comp.lang.ruby
From: "dark2" <brianmar...@gmail.com>
Date: 19 Nov 2005 12:25:00 -0800
Subject: Small practice programs
For someone with some programming background and an interest in
learning Ruby, what are a few good "practice" programs to write?

Brian


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory Brown  
View profile  
 More options Nov 19 2005, 3:56 pm
Newsgroups: comp.lang.ruby
From: Gregory Brown <gregory.t.br...@gmail.com>
Date: Sun, 20 Nov 2005 05:56:46 +0900
Local: Sat, Nov 19 2005 3:56 pm
Subject: Re: Small practice programs
On 11/19/05, dark2 <brianmar...@gmail.com> wrote:

> For someone with some programming background and an interest in
> learning Ruby, what are a few good "practice" programs to write?

http://www.rubyquiz.com

These are great challenges that help build up your skills and also are
a lot of fun :)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Britt  
View profile  
 More options Nov 19 2005, 4:54 pm
Newsgroups: comp.lang.ruby
From: James Britt <jame...@neurogami.com>
Date: Sun, 20 Nov 2005 06:54:56 +0900
Local: Sat, Nov 19 2005 4:54 pm
Subject: Re: Small practice programs

dark2 wrote:
> For someone with some programming background and an interest in
> learning Ruby, what are a few good "practice" programs to write?

Do you use a computer on a regular basis?  Do you find yourself doing
the same little things over and over, by hand?  Write Ruby code to
automate or simply them.

Start small, pick a problem or task that has personal meaning, and
scratch your own itch.

For example,  got tired of having to leave the command line to run a
Google search, so I wrote  simple script to run my queries from a CMD
prompt.  I then extended it to search the TV schedule, and later to go
find stuff at my local library.

I also got tired of having to open up a calender application  just to
add a reminder or task, so I wrote a small app to script Outlook.

Once one gets started, one sees endless places to add little tweaks and
features, and learns (ideally) to refactor, simply, learn and practice
new ways to do things in Ruby.  I have my own version of 'find', for
example, that gives me a menu of the found files, and will launch files
in various applications (again, to avoid leaving the command line.)

As others have (or will) mention, the weekly ruby quizzes are an
interesting source of challenges, but nothing beats self interest for
motivation.

James

--

http://www.ruby-doc.org       - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com     - Playing with Better Toys
http://www.30secondrule.com   - Building Better Tools


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dark2  
View profile  
 More options Nov 19 2005, 6:30 pm
Newsgroups: comp.lang.ruby
From: "dark2" <brianmar...@gmail.com>
Date: 19 Nov 2005 15:30:17 -0800
Local: Sat, Nov 19 2005 6:30 pm
Subject: Re: Small practice programs
Is there any site similar to Ruby quiz with some slightly easier
challenges?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pat eyler  
View profile  
 More options Nov 19 2005, 6:40 pm
Newsgroups: comp.lang.ruby
From: pat eyler <pat.ey...@gmail.com>
Date: Sun, 20 Nov 2005 08:40:57 +0900
Local: Sat, Nov 19 2005 6:40 pm
Subject: Re: Small practice programs
You could try the Test First Challenge:
http://groups.google.com/group/Ruby-Test-First-Challenge

It's kind of like a ruby quiz in slow motion.

I'd also agree with James suggestion to find an itch of
your own to scratch.

-pate

On 11/19/05, dark2 <brianmar...@gmail.com> wrote:

> Is there any site similar to Ruby quiz with some slightly easier
> challenges?

--
thanks,
-pate
-------------------------

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Edward Gray II  
View profile  
 More options Nov 19 2005, 6:45 pm
Newsgroups: comp.lang.ruby
From: James Edward Gray II <ja...@grayproductions.net>
Date: Sun, 20 Nov 2005 08:45:31 +0900
Local: Sat, Nov 19 2005 6:45 pm
Subject: Re: Small practice programs
On Nov 19, 2005, at 5:32 PM, dark2 wrote:

> Is there any site similar to Ruby quiz with some slightly easier
> challenges?

The Ruby Quizzes come in all sizes and difficultly.  This week's,  
Euchre Hands, is quite easy.  Did you read that one?

James Edward Gray II


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory Brown  
View profile  
 More options Nov 19 2005, 6:45 pm
Newsgroups: comp.lang.ruby
From: Gregory Brown <gregory.t.br...@gmail.com>
Date: Sun, 20 Nov 2005 08:45:59 +0900
Local: Sat, Nov 19 2005 6:45 pm
Subject: Re: Small practice programs
On 11/19/05, dark2 <brianmar...@gmail.com> wrote:

> Is there any site similar to Ruby quiz with some slightly easier
> challenges?

Before University of New Haven Ruby Brigade became New Haven Ruby
Brigade, we had a couple challenges.  Here is one of them.  Don't read
to the end if you don't want to see the solutions, but it's not that
hard...  (Read as far as you need to for hints)

http://stonecode.org/organizations/unh.rb/board/viewtopic.php?t=10

There is also a simple challenge on the new_haven.rb mailing list you might try:
(that no one has solved yet)

http://groups.google.com/group/New-Haven-Ruby-Brigade/browse_thread/t...

Also, look through the Ruby Quizzes a little deeper.  Some are
insanely difficult but others are not quite so tough.

Some of the easier ones are:
-Cows and Bulls
-LCD Numbers
-Whiteout

Of course, reading through the solutions or solving parts of the
quizzes is good for the heart, too.  HTH :)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Pine  
View profile  
 More options Nov 20 2005, 3:34 am
Newsgroups: comp.lang.ruby
From: Chris Pine <ch...@pine.fm>
Date: Sun, 20 Nov 2005 17:34:11 +0900
Local: Sun, Nov 20 2005 3:34 am
Subject: Re: Small practice programs
On 11/20/05, dark2 <brianmar...@gmail.com> wrote:

> Is there any site similar to Ruby quiz with some slightly easier
> challenges?

Well, these might be too easy, but I'll mention them:

There are a number of quizzes in my Ruby tutorial:

  http://pine.fm/LearnToProgram/

Of course, the earlier ones are quite easy (but it wouldn't hurt to
spend 2 or 3 minutes on some of those).  But the later ones are
considerably harder  (sorting, deaf grandma, birthday spankings,
orange tree...).

Just in case you find it useful...  :)

Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Butcher (Steve-O)  
View profile  
 More options Nov 20 2005, 11:59 am
Newsgroups: comp.lang.ruby
From: "Steve Butcher (Steve-O)" <steve.butc...@comcast.net>
Date: Mon, 21 Nov 2005 01:59:34 +0900
Local: Sun, Nov 20 2005 11:59 am
Subject: Re: Small practice programs
Although some of these are quite difficult (involving, say, dynamic  
programming/optimization techniques), here is a huge inventory of  
problems associated with the Programming Challenges:

http://online-judge.uva.es/problemset/

scroll done to the catalogs. There are hundreds of problems. The  
downside is, of course, that there are no canoncial ruby solutions.

There is a book for them which you don't need but does demonstrate  
how some of the different kinds of problems might be solved: http://
www.programming-challenges.com/pg.php?page=index

It would be very interesting to see the solutions to these problems  
expressed in a rubyiomatic idiom. (I wonder if they could be  
convinced to add Ruby as one of the permissible languages? If not  
maybe the ruby community could implement their own?)

Cheers,
Steve

On Nov 20, 2005, at 3:34 AM, Chris Pine wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google