Help | About | Suggestions | Alms | Chat [0] | Users [0] | Log In | Join
 Search:
Poem: Submit | Random | Best | Worst | Recent | Comments   

Hunger 2 (Programming) by Dovina
;LISP (defun hunger ;This time do it, and forget ;your silly “syntax error” ;and “bad data type.” (while hungry (if food ;if it’s offered (smell) (taste) (eat) );end if food );end while hungry ;eventually you will get full (search-desires) (fulfill-desires) (hunger) ;Now go back ;to the start ;and don’t complain. ;Keep looping. ;It’s all you get. );end defun hunger

Up the ladder: Sonnet or Limerick?

You must be logged in to leave comments. Vote:

Votes: (green: user, blue: anonymous)
 GraphVotes
10  .. 21
.. 00
.. 10
.. 00
.. 00
.. 00
.. 00
.. 10
.. 10
.. 10
.. 10

Arithmetic Mean: 5.5
Weighted score: 5.134471
Overall Rank: 5541
Posted: February 27, 2005 6:18 AM PST; Last modified: February 27, 2005 6:18 AM PST
View voting details
Comments:
[n/a] edpeterson @ 68.79.203.220 | 27-Feb-05/9:24 AM | Reply
I would vote, but I have no idea what this is. It might be very good, but it is written in a language I do not speak.
[n/a] Dovina @ 12.72.6.113 > edpeterson | 28-Feb-05/2:33 PM | Reply
LISP, the language of AutoCad and other graphic applications.
[n/a] -=Dark_Angel=-, P.I. @ 81.153.196.50 > Dovina | 1-Mar-05/2:41 AM | Reply
your an autocad
[n/a] Dovina @ 12.72.9.138 > -=Dark_Angel=-, P.I. | 1-Mar-05/11:48 AM | Reply
That’s what we call in the trade a cliché, old hat, trite, obvious when it was first said, boring then, boring now.

Hey mofo, what about the poem?
[n/a] -=Dark_Angel=-, P.I. @ 82.39.21.223 > Dovina | 3-Mar-05/2:05 PM | Reply
What about it? For a start, you plainly don't actually program in Lisp. No actual Lisp programmer puts end brackets on separate lines. And you haven't exploited Lisp's homoiconic (lol) nature at all, which is the only reason to use Lisp. Also, commenting the end of control structures is quaint, but pointless, and only seen in textbooks.

Furthermore, "hunger" is a terrible name for a function. Hunger is a thing. You can't "do" hunger. And Christ alone knows what 'fulfill-desires' does. Whatever it is, it evidently doesn't involve satisfying hunger, as that's taken care of in "hunger". And you don't use any function parameters, or declare any local variables. All your variables are global. They fail. You fail.

Aside from its bulbous demerits as a program, it's an utter swellington as a poeme. And that ain't good. -10-
[n/a] Dovina @ 12.72.12.79 > -=Dark_Angel=-, P.I. | 3-Mar-05/4:23 PM | Reply
Thank you for a remarkable commentary on my poem, my ability as a LISP programmer, and on LISP itself. Particularly interesting is your pointing out that all of my variables are global since they are not defined locally. I suppose you are right since no variables are used in the hunger function - not locally as they would be with (defun hunger eat sleep crap . . .) or somesuch, nor are any global variables assumed by not being so defined. So that tells me about how much you know about LISP.

Also, it is very common for a programmer to comment on a close paren, especially if several lines separate it from its open paren. As you may not know, every open paren in LISP must be followed eventually by a close paren which completes the command. Placing the close paren on a new line with a comment telling which open paren it closes is therefore good practice and makes the code easier to maintain.

I tried to keep the program simple, avoiding parameter passing and uncommon commands that manage linked lists, coordinate searches and the like, but I see it is not simple enough.

Of course nobody can dispute your expertise in swellington poemes and your ability to determine failure in all things poetic and LISP.
[n/a] -=Dark_Angel=-, P.I. @ 82.39.21.223 > Dovina | 3-Mar-05/6:19 PM | Reply
You're a thicky.

1. 'food' is either a global variable or an error. Stop disputing it, and stop randomly discharging Lisp syntax.

2. I'm well aware how expressions are formed. I am commenting on your formatting. Your formatting is unconventional and unhelpful. It may be considered "good practice" to put closing brackets on a separate line in the ladies' world of AUTOCAD. It is not considered good practice anywhere else. Lisp is not C.

Go read some actual, non-AUTOCAD Lisp. You will see how it is done in the real world of enormous beards.

3. I don't fathom how you think it "makes the code easier to maintain". However, what doesn't make the code easier to maintain is your cutesy comments. They make it harder, because if you change the name of the function or variable, you have to go update the comment. It also insults the reader, clutters up the page, and makes you look like the only code you've ever seen was from an AUTOCAD tutorial, which is most likely the case.

4. It is "Lisp". Do not discharge what it stands for.

5. That you think "linked list" and "coordinate searches" are sophisticated, confusing computer phrases is both quaint and crushingly dim.
P.S. Lisp code is itself a series of linked lists. Therefore your code does in fact "manage linked lists." PARP.
[n/a] Dovina @ 12.72.10.32 > -=Dark_Angel=-, P.I. | 3-Mar-05/6:47 PM | Reply
‘food’ could be a reserved word in this version of LISP, a defined function in a higher file such as acad.lsp, a function called by an internal call that yields nil or not-nil, a command in the application, or it could be a global variable.

The code is easier to maintain because it’s easier to follow. It’s easy to change a variable name and all of the comments that address it using a simple text search and replace.

That’s how it’s done in the real world of nil beards.
[n/a] -=Dark_Angel=-, P.I. @ 82.39.21.223 > Dovina | 3-Mar-05/7:07 PM | Reply
1. My dear, if 'food' was a function, it would have brackets around it to evaluate it. We both know it's not a reserved word. Let's face it, it's a global variable.

2. Anyone operating on a cognitive level above that of a pea is perfectly capable of matching up opening and closing parentheses without the aid of indentation. And since it's against convention, which makes it uncomfortable and annoying to read for people accustomed to convention, it's equivalent to wearing a bin on one's head and charging head-first into the sea.

3. I can't expect anyone without a billowing, rockmage-like beard to understand how comments actually tend to make code harder to read. Naive, comforting faith in comments is endemic to the ladies' world of AUTOCAD, and I doubt I will convince you otherwise, so I shan't bother.
[n/a] Dovina @ 12.72.7.33 > -=Dark_Angel=-, P.I. | 4-Mar-05/7:27 AM | Reply
Of course there can be no dialog. We both knew that from the start. Even though the general structure I’ve shown here is accepted as good practice there can be no admission of this. And of course I knew before starting that you’d resort to terms like “ladies world” and “cognitive level above that of a pea” to impress an air of authority. I will not convince you otherwise, so I won’t try.
[2] Stephen Robins @ 213.146.148.199 > Dovina | 4-Mar-05/8:03 AM | Reply
This comment stream is as much fun as downing a pint of cold sick in a oner. You bulbous gonads.
[n/a] -=Dark_Angel=-, P.I. @ 82.39.21.223 > Stephen Robins | 4-Mar-05/10:47 AM | Reply
It is a gravely serious matter when a Lady begins trumpeting her hysterical Programming Notions about. It only ever ends in tears, and it makes the negroes restless.
[n/a] -=Dark_Angel=-, P.I. @ 82.39.21.223 > Dovina | 4-Mar-05/10:42 AM | Reply
Your floppy bosoms are blocking your reason-holes.

www.lisp.org/table/style.htm

Where are your mysterious ideas of "good practice" coming from?
[10] al-naafiysh @ 204.215.34.188 | 28-Feb-05/5:17 AM | Reply
Do you think they will get it this time?
[n/a] Dovina @ 12.72.6.113 > al-naafiysh | 28-Feb-05/2:42 PM | Reply
He who has eyes to see, let him see.
[n/a] zodiac @ 212.118.11.12 > Dovina | 28-Feb-05/10:27 PM | Reply
Jesus Christ you are smug.

PS: If you're reduced to this to keep up your smug act, you are in fact cracked.

PPS: Most of the people you don't like here can read this.

PPPS: al-naafiysh probably can't.
[10] al-naafiysh @ 204.215.33.35 > zodiac | 1-Mar-05/1:21 AM | Reply
Hi Zo! just got back from India, my grandfather passed last week.
Now I know you know that I can read this.
[n/a] edpeterson @ 68.79.203.220 > al-naafiysh | 1-Mar-05/8:19 AM | Reply
did your grandfather die, or simply pass gas?
[n/a] Dovina @ 12.72.9.138 > zodiac | 1-Mar-05/11:50 AM | Reply
Can you read this? Really?
[n/a] zodiac @ 212.118.14.17 > Dovina | 9-Mar-05/5:03 AM | Reply
Yes, and the best part is that if you actually enter it in AUTOCAD, it creates the perfect illusion of enormous saggy milkbags whapping you in the face.
[n/a] Dovina @ 12.72.14.182 > zodiac | 9-Mar-05/7:07 AM | Reply
An example of the objective, serious and helpful criticism you've so often claimed.
[n/a] zodiac @ 212.118.11.13 > Dovina | 11-Mar-05/9:29 PM | Reply
A) Like you'd care whatever I wrote, so why not write something funny?

B) "An example of the objective, serious and helpful criticism you've so often claimed" is not grammatically correct. :-(
[n/a] Dovina @ 12.72.6.107 > Dovina | 5-Mar-05/11:21 AM | Reply
On second thought – no.
[2] Stephen Robins @ 213.146.148.199 | 28-Feb-05/5:25 AM | Reply
You have finally cracked.
[n/a] Dovina @ 12.72.6.113 > Stephen Robins | 28-Feb-05/2:42 PM | Reply
Thank you so much for your confidence in my work evidenced by only now noticing a cracking (of course, no pun intended), but I have not cracked, unless trying new ways of expression is a kind of insanity.
[1] Edna Sweetlove @ 81.179.83.12 | 20-May-06/4:51 PM | Reply
fabulously unfunny.
350 view(s)




Track and Plan your submissions ; Read some Comics ; Get Paid for your Poetry
PoemRanker Copyright © 2001 - 2024 - kaolin fire - All Rights Reserved
All poems Copyright © their respective authors
An internet tradition since June 9, 2001