Java vs Lisp
Aug. 31st, 2006 12:51 pmI'm finally coming around to seeing the virtues of Java. The main one is that it's very easy to read.
In Lisp, the code is very compact, so you need as many comments as code. Programmers are reluctant to write comments in any language, and the result is that much Lisp is write-only code.
In Lisp, the code is very compact, so you need as many comments as code. Programmers are reluctant to write comments in any language, and the result is that much Lisp is write-only code.
(no subject)
Date: 2006-08-31 08:24 pm (UTC)Also, I think Lisp which makes judicious use of progn, especially implicit progn, is probably more readable than Lisp which tries to be as "inside-out" as possible... I think some people feel like use of progn is cheating, somehow.
(no subject)
Date: 2006-09-01 05:21 pm (UTC)Of course, I don't want to give up this advantage of redundancy... but the redundancy could be in the comments, specifications, asserts, pre-post conditions, etc.
(no subject)
Date: 2006-08-31 10:26 pm (UTC)(no subject)
Date: 2006-09-01 01:41 am (UTC)(no subject)
Date: 2006-09-01 06:52 am (UTC)(no subject)
Date: 2006-09-01 12:44 pm (UTC)Java is primarily a systems language, so it's assumed that code should be organized, clean and well-written. Variable typing is strict. In many procedural languages like php or perl this is not the case, so it's understandable that the code will be like spaghetti. I don't know about lisp, but given that it's an old mature language I'm sure it has seen lots of procedural abuse.
The worst thing about java is that you have to write 2x as much code to do the same thing as in perl, for example. Here are some interesting comparison facts:
(no subject)
Date: 2006-09-02 04:43 pm (UTC)But you probably agree that Lisp is still better for teaching programming? And what do you think of all the ML family, especially CAML?
(no subject)
Date: 2006-09-02 04:52 pm (UTC)I am usually only stubborn when most people can't see what I see. But Lisp's power is common knowledge.
Teaching programming: no idea. I think people should learn both functional and imperative paradigms.
I am not very familiar with ML, although this may change soon, given my surroundings.
(no subject)
Date: 2006-09-02 05:35 pm (UTC)I mean as the first language to teach.
P S Btw I am on Okinawa now :)