Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by mikeklaas on Friday November 12, 2010 @06:44PM
(#1899732)
I don't think that "englishy" (COBOL, applescript) code is readable, and I bet many programmers agree.
Python is readable because its syntax is very close to many people's version of pseudocode. This is why non-Python programmers find it easy to read.
Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by shadowfox on Friday November 12, 2010 @07:06PM
(#1899791)
> Python is readable because its syntax is very close to many people's version of pseudocode
Or at least that is what Python developers seem to believe
Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by pygy_ on Saturday November 13, 2010 @03:36AM
(#1900578)
I find Applescript quite readable, especially for its purpose, but it's a pain to write, because, unless you use it often, you never know which subset of English is valid.
Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by frozenflame on Friday November 12, 2010 @03:52PM
(#1899237)
I don't know that I agree, I really am not sure what "GIVING COBOL" means.
Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by a-priori on Friday November 12, 2010 @05:05PM
(#1899486)
It's the assignment part; it says where the result should go. In this case, back to the "COBOL" variable. But, it's optional if you're assigning back to the source: ADD 1 TO COBOL means the same thing as ADD 1 TO COBOL GIVING COBOL. But, you can also do ADD 1 TO COBOL GIVING FOOBAR to assign it somewhere else.
(Yes, I just spent the last 10 minutes reading the COBOL pages on Wikipedia and Wikibooks.)
Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by groby_b on Friday November 12, 2010 @05:07PM
(#1899494)
It's a COBOL joke. (And a bad one at that)
ADD 1 TO X GIVING Y is COBOL's way of saying y=x+1 ADD 1 TO COBOL GIVING COBOL is COBOL=COBOL+1. Or COBOL++ :)
Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by hetman on Sunday November 14, 2010 @09:34AM
(#1903273)
Really? I've never coded in COBOL and it was pretty obvious straight away that it was an assignment.
Re:Anic -- Faster than C, Safer than Java, Simpler than *sh
by Tycho on Friday November 12, 2010 @08:13PM
(#1899919)
Allegedly in the 80s software vendors sometimes advertised that their products were programmable/extensible in plain English. By which they meant BASIC.
ADD 1 TO COBOL GIVING COBOL
is also readable, and yet (thankfully!) we've mostly abandoned COBOL.
And no, I'm not saying Python is bad, or like COBOL - just that readability and quality of a language are not necessarily related.