Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby article

Reply
Thread Tools

Ruby article

 
 
Joe Van Dyk
Guest
Posts: n/a
 
      08-29-2005
Fairly interesting article on Ruby:=20
http://www.tbray.org/ongoing/When/200x/2005/08/27/Ruby

I'm not familiar with COBOL though, can someone explain how the
'retry' example in the Pickaxe is supposedly bad?


 
Reply With Quote
 
 
 
 
ts
Guest
Posts: n/a
 
      08-29-2005
>>>>> "J" == Joe Van Dyk <(E-Mail Removed)> writes:

J> I'm not familiar with COBOL though, can someone explain how the
J> 'retry' example in the Pickaxe is supposedly bad?

Well ALTER in COBOL is something like this (if memory is good)

PERFORM 10-ACTION THRU 99-EXIT.

10-ACTION.
* the first call to PERFORM will go here
ALTER 10-ACTION TO 20-ACTION.
GOTO 99-EXIT.

20-ACTION.
* the next call to PERFORM will go here
GOTO 99-EXIT.

99-EXIT.
EXIT.

When you read the PERFORM statement you can't know where the program will
go because this can changed latter with a ALTER


Guy Decoux







 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Introduction article on Ruby on Rail published editormt Python 0 10-23-2006 05:50 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
(German) Article about Design Patterns in Ruby online Markus Jais Ruby 0 08-12-2003 07:09 AM
Slashdot carrying an article on Ruby 1.8.0 release... Tom Copeland Ruby 0 08-04-2003 05:22 PM
Ruby mention in IBM devworks article Phil Tomson Ruby 0 07-22-2003 10:57 PM



Advertisments