Ideas for simple programming exercises to help a new Ruby user become familiar
with the language?
A progression of exercises may help with the tutorial that’s being discussed.
Christopher J. Meisenzahl CPS, CSTE
Senior Software Testing Consultant
Spherion
christopher.j.meisenzahl@citicorp.com
christopher.j.meisenzahl@citicorp.com wrote in message
news:H00019f009add94b@MHS…
Ideas for simple programming exercises to help a new Ruby user become
familiar
with the language?
Search a directory structure structure for *.doc documents. Create an html
page with titles and locations of the 10 most recently modified documents.
The page need not run on a htpp server. It is just located at the root:
recent-changes.html
It will allow the users to track what documents other users have updated by
opening the html document.
Find a way to automatically run the script ever so often.
Extend the solution by scanning for for files with the extension *.sbs -
these are subscription files with a simple format. Each .sbs document
matches the name of a *.doc document. A user simply subscribes to a document
by adding his or her name to the *.sbs file of the document. Each user has
an html page with the same name as is used in the sbs files. The html file
gets updated with the most recently changed subscribed documents.
Create in interactive solution, for example finding a package on RAA for
sending emails with change notifications to users.
Mikkel
- Christopher J. Meisenzahl [06 Dec 2002 04:52]:
Ideas for simple programming exercises to help a
new Ruby user become familiar with the language?
http://perl.plover.com/qotw/
Look in the ‘Quiz Archive’ section. While these were
written for the “Perl Quiz of the Week”, they should
also be possible to do in Ruby.
They’re generally small programs that perform something
interesting. Which means they’re good for getting
practice in a language.
cheers,
···
–
Iain.