• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

LISP is evil

SWScorch

Diamond Member
I'm writing some programs in LISP for a class right now. No programming language should use so many parentheses. It's truly evil. Anything that looks like this should be shot:

(defun addlists (L1 L2)
(cond ((equal (length L1) (length L2))
(cond ((equal L1 Nil) NIL)
(T (cons (+ (car L1) (car L2))(addlists (cdr L1) (cdr L2))))))
(T '(LISTS_OF_UNEQUAL_LENGTH))))
 
What really sucks is when you're working in LISP on an old compiler and you get to the end of editing 1,000 lines of code or more and you get an error indicating you have an unbalanced number of parenthesis.... but no indication of where the missing one might be. Have fun!
 
Originally posted by: Tylanner
shoulda been a gym teacher huh

those who can't do, teach, and those who can't teach, teach gym! Sounds perfect for me! 😀 Except my roomie is a PhysEd major and the classes he has tot ake are harder than any CS class offered. I could never pass Anatomy and Physiology or Kinesthiology.
 
you know what's evil?

cons and append

car and cdr and cadr and cdar and cdddr and lists.....

i had a 500 lines of code for my final project and my friend copied pasted it for his own project... except he forgot like 5 lines or so and he got a 0 while i passed .... rofl... anyways i hated that class.... =(
 
(rule (superior-in-the-same-division ?person1 ?person2)
(and (supervisor ?person1 ?boss)
(job ?boss (?person2 . ?x))))

(rule (big-shot ?person ?division)
(and (job ?person (?division . ?blah))
(not (superior-in-the-same-division ?person ?division))))
 
Originally posted by: SWScorch
those who can't do, teach, and those who can't teach, teach gym! Sounds perfect for me! 😀 Except my roomie is a PhysEd major and the classes he has tot ake are harder than any CS class offered. I could never pass Anatomy and Physiology or Kinesthiology.
You kidding me? I would much rather take Anatomy or Physiology than to take a CS class (given the choice). CS classes are ultra competitive and unless PhysEd majors had to take these classes with Pre-Med students, these classes come nowhere close.
 
Originally posted by: Ranger X
Originally posted by: SWScorch
those who can't do, teach, and those who can't teach, teach gym! Sounds perfect for me! 😀 Except my roomie is a PhysEd major and the classes he has tot ake are harder than any CS class offered. I could never pass Anatomy and Physiology or Kinesthiology.
You kidding me? I would much rather take Anatomy or Physiology than to take a CS class (given the choice). CS classes are ultra competitive and unless PhysEd majors had to take these classes with Pre-Med students, these classes come nowhere close.

well, I get this stuff, but I suck at memorizing complicated names for muscles so I'd rather take my CS 🙂 most CS classes are pretty easy for me. Even this stuff isnt too bad, just hard to debug.
 
Originally posted by: DAGTA
What really sucks is when you're working in LISP on an old compiler and you get to the end of editing 1,000 lines of code or more and you get an error indicating you have an unbalanced number of parenthesis.... but no indication of where the missing one might be. Have fun!

Thank you for bringing back the horrors of my sophomore year...

Dave
 
Originally posted by: Apathetic
Originally posted by: DAGTA
What really sucks is when you're working in LISP on an old compiler and you get to the end of editing 1,000 lines of code or more and you get an error indicating you have an unbalanced number of parenthesis.... but no indication of where the missing one might be. Have fun!

Thank you for bringing back the horrors of my sophomore year...

Dave

Yep, except it was junior year for me. I HATED LISP, though part of it may have been my incompetent professor.
 
Originally posted by: SWScorch
Originally posted by: Tylanner
shoulda been a gym teacher huh

those who can't do, teach, and those who can't teach, teach gym! Sounds perfect for me! 😀 Except my roomie is a PhysEd major and the classes he has tot ake are harder than any CS class offered. I could never pass Anatomy and Physiology or Kinesthiology.

You should consider the very fact that there are an equal number of people that can learn Kinesthiology, Anatomy, Physiology and so on but would be totally unable to pass Concurrent Programming or some other course
 
WTF? LISP? People use that?

<== frantically alt-tabs over to Penn State's course catalog.

Heh, anyway, some schools still teach QBASIC. I have a friend who's been out of school for YEARS, is now 25 and going back in as a CS major. First he's taking some classes at his local CC to brush up on some bullsh!t he forgot, and decided to sign up for their intro to programming class. It's in QBASIC. I make fun of him ENDLESSLY for it. I'll intentionally explain the better way to do things to him in either C++ or Java - or, for a serious mindfvck, I combine the two (usually by accident)

cout << statement1 << endl;
System.out.println(statement2);
 
Originally posted by: EyeMWing
WTF? LISP? People use that?

<== frantically alt-tabs over to Penn State's course catalog.

Heh, anyway, some schools still teach QBASIC. I have a friend who's been out of school for YEARS, is now 25 and going back in as a CS major. First he's taking some classes at his local CC to brush up on some bullsh!t he forgot, and decided to sign up for their intro to programming class. It's in QBASIC. I make fun of him ENDLESSLY for it. I'll intentionally explain the better way to do things to him in either C++ or Java - or, for a serious mindfvck, I combine the two (usually by accident)

cout << statement1 << endl;
System.out.println(statement2);
:laugh:
but seriously dude...wait till you code in assembly.

Regards

ng

 
Originally posted by: EyeMWing
WTF? LISP? People use that?

<== frantically alt-tabs over to Penn State's course catalog.

Heh, anyway, some schools still teach QBASIC. I have a friend who's been out of school for YEARS, is now 25 and going back in as a CS major. First he's taking some classes at his local CC to brush up on some bullsh!t he forgot, and decided to sign up for their intro to programming class. It's in QBASIC. I make fun of him ENDLESSLY for it. I'll intentionally explain the better way to do things to him in either C++ or Java - or, for a serious mindfvck, I combine the two (usually by accident)

cout << statement1 << endl;
System.out.println(statement2);


YES they teach LISP at Penn State... take CSE 481 Artificial Intelligence with Anand Sivasubramaniam... and yes It sucks.


 
Originally posted by: sao123
YES they teach LISP at Penn State... take CSE 481 Artificial Intelligence with Anand Sivasubramaniam... and yes It sucks.

No.
I don't know what's more imposing - the class name, or the instructor's name.

 
Functional Programming is quite annoying, but it allows for a broad range of calculation possiblities.

Never really liked it myself, but in statistics and analysis, it is quite useful
 
LISP is great for the applications it's designed for. For most AI routines, I'd prefer to use either lisp or prolog.
 
Then APL is the anti-Christ? (realizing that I cannot even remember a single statement, but then again, there were all those special keys to use).
 
Originally posted by: DAGTA
What really sucks is when you're working in LISP on an old compiler and you get to the end of editing 1,000 lines of code or more and you get an error indicating you have an unbalanced number of parenthesis.... but no indication of where the missing one might be. Have fun!

that's why emacs is nice, for the parenthesis.
 
*sniff* car and cdr... *sniff* I miss those. LISP is really neat, you suck. 😀 And emacs > unbalanced parens.
 
Back
Top