Why Python is better than Java: What it comes down to is not just that Java places too high a cognitive load on the programmer... it's that Java's just a pain in the ass.
You try RPG, mate. ;-)
Posted to Funny by Simon Brunning at April 26, 2004 04:23 PMHaha, I *have* used RPG. Briefly. A long time ago :) I'm just going to arbitrarily say that RPG doesn't count ;)
Though, for comparison, I still *would* like to see an example program to, say, print out all the lines in a file.
Posted by: Keith on April 26, 2004 05:09 PMHmmm. This wouldn't really be fair to RPG. Idiomatic RPG doesn't know about stream files, let alone sysout.
Printing all the records from an RDBMS table to a report; that's more RPG's speed. Call it, oh, five lines (including working page breaks) using the cycle, perhaps 10 if you go full-procedural.
Posted by: Simon Brunning on April 26, 2004 05:17 PM> Idiomatic RPG doesn't know about stream files
See, I always wondered whether it *could* read "normal" files. I figured the capability must have been there and I just didn't know about it, but I guess not. I didn't think it had stdout though, the report was implicit.
Posted by: Keith on April 26, 2004 06:07 PMSimon: Three, with the cycle: an F-spec, an I-spec and an O-spec. That's without blank lines, of course.
Keith: Database files _were_ "normal" on S/3x and early AS/400. Stream files have been available to RPG ever since they gave it access to the C runtime library, which was a fair number of years back. But, yes, you still have to call a C library function or an API to do it.
Somebody, please, do a preview if Visual BASIC. I am in love with the language, but all the thought-provoking previews (with liberal, unorthodox wording0 are on sickeningfly boring languages like Python, Java, PERL, blah, blah, blah. Someone be brave and test the waters. :/
Posted by: Revence 27 on May 1, 2004 01:16 PM