K
Keith Thompson
Mike Schilling said:AKA MOVE COBOL + 1 TO COBOL.
I thought it was
ADD 1 TO COBOL.
or possibly
ADD 1 TO COBOL GIVING COBOL.
Mike Schilling said:AKA MOVE COBOL + 1 TO COBOL.
I thought it was
ADD 1 TO COBOL.
or possibly
ADD 1 TO COBOL GIVING COBOL.
[...]ClassCastException said:I don't know if anyone can ever get used to Perl.
I have
I've seen some very readable perl. It had subroutines and comments and
so on. I've also seen some horrid perl.
ClassCastException said:[...]ClassCastException said:I don't know if anyone can ever get used to Perl.
I have
This is, quite possibly, the most frightening thing I have ever read.
ClassCastException said:I don't know if anyone can ever get used to Perl.
[...]
I have
This is, quite possibly, the most frightening thing I have ever read.
If you want to have a language war, please take it elsewhere.
You're kidding, right? Haskell has a steeper learning curve, so may be
considered difficult in that sense, but once you've gotten good at it
(which doesn't take all that long) its ability to write clean, concise,
correct programs dwarfs that of most languages. It certainly wasn't
*designed* to be difficult.
AKA MOVE COBOL + 1 TO COBOL.
And yet, having written far more COBOL than was ever good for me, I can
confirm that it does a good, if verbose, job in the types of tasks it was
designed for, which are mainly manipulating large amounts of structured
data.
None of the examples posted so far in this branch of the thread wouldI'd been told it was ADD ONE TO COBOL GIVING COBOL, but perhaps i was
misled.
I meant verboseness in the sense that almost any COBOL statement isVerboseness can still depend on the programmer. The only Cobol I ever
did was at college, on punched cards. Everyone was walking around with
huge stacks of cards up to 6-8" high, while my pile was only about an
inch high, for exactly the same assignment.
And guess which of the two he saw while on mescaline and which while
sober?![]()
ADD 1 TO COBOL-COUNT.
COMPUTE COBOL-COUNT = COBOL-COUNT + 1.
ADD 1 TO COBOL-COUNT GIVING COBOL-COUNT.
Tom said:It was designed to be used by highly intelligent people. In the hands
of intelligent people who have learned it, it is usable and powerful,
and indeed, not difficult.
But most people, even most programmers, are not highly intelligent.
For them, i suspect it would always be difficult.
Does that make it a difficult language?
I am also dubious about the idea that it's good for writing clean
code. I see a lot of Haskell that tends towards wrapping a problem in
the smallest possible ball of the strongest possible abstractions.
That makes for concise, and perhaps elegant, code, but i'm not sure
i'd call that clean. Clean to me implies a sort of self-opening
limpidness, a quality which is at odds with cleverness.
tom
Sadly, there's still useful stuff that COBOL can do more concisely thanJust reading this @#$% makes me wanna cry.
Robert Klemme said:On 06.11.2010 10:30, Nick Keighley wrote:
Well, you basically only need to know that ARGF iterates over all files in
ARGV or reads from stdin if ARGV is empty. I think the rest is pretty
self explanatory, isn't it?![]()
Robert Klemme said:On 06.11.2010 16:28, Lew wrote:
![]()
Even a Lisp with a suitable DSL?
(def total-array (vec (take n (repeat 0))))
(def array-total (vec (take n (iterate inc 1))))
(def tl-value array-total)
(println 1)
(println total-line)
is more readable than either.
On the latter point, and I don't disagree about the nature of much of
the Haskell code we see, I think what you're describing there is
intermediate/beginner-expert code. In other words, stuff written by
Haskell coders who have just recently reached the point where they _can_
write like that, and therefore delight in demonstrating it. I follow the
main Haskell NG, and also the odd mailing list, and have my share of
good Haskell books, and based on the material I see there, the true
experts have generally gotten away from that and are writing for clarity
again.
The same phenomenon happens in other languages too, to the extent that a
given language makes terseness and extreme abstraction possible. It's
absolutely possible in Java.
The degree to which people do this is, I believe, also related to the
amount of exposure they've had to the real world, i.e. business
experience, and the degree to which their code is going to be seen and
used by other people. You know, and I know, that you can't perpetrate
your super-concise, super-elegant, but impenetrable-to-the-unwashed code
onto the shoulders of follow-on average maintainers, and get away with
it for long. Not if you're a professional.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.