FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » I'm cashing in one of my two free sympathy threads a year cards from Hatrack (Page 1)

  This topic comprises 2 pages: 1  2   
Author Topic: I'm cashing in one of my two free sympathy threads a year cards from Hatrack
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
[Frown] Please, I need a hug.

My parents are in town, and my dad makes me laugh, makes me think, makes me crazy, and always, always makes me cry. [Frown] And thinks it's funny. Stupid bully. Sorry to interrupt the celebrations here, but please, I need a hug. [Frown]

Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
Synesthesia
Member
Member # 4774

 - posted      Profile for Synesthesia   Email Synesthesia         Edit/Delete Post 
ok
*hugs you*

Posts: 9942 | Registered: Mar 2003  |  IP: Logged | Report this post to a Moderator
Olivet
Member
Member # 1104

 - posted      Profile for Olivet   Email Olivet         Edit/Delete Post 
(((((((((((((((katie))))))))))))))))))
Posts: 9293 | Registered: Aug 2000  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
(((kat)))
Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
((katharina))

I understand completely. I love my father, and pretty much came to terms with him several years back... but I still want to strangle him on at least a semi-annual basis. Have strength for the rest of the visit.

Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
Annie
Member
Member # 295

 - posted      Profile for Annie   Email Annie         Edit/Delete Post 
((katie))

Glad to cash it in for you sister [Smile]

Posts: 8504 | Registered: Aug 1999  |  IP: Logged | Report this post to a Moderator
Kama
Member
Member # 3022

 - posted      Profile for Kama   Email Kama         Edit/Delete Post 
((((kat))))

I love you, sweetie.

[Group Hug]

Posts: 5700 | Registered: Feb 2002  |  IP: Logged | Report this post to a Moderator
Zevlag
Member
Member # 1405

 - posted      Profile for Zevlag           Edit/Delete Post 
(((((Katie)))))

Always a shoulder here to cry on when needed.

[ March 27, 2004, 10:46 AM: Message edited by: Zevlag ]

Posts: 2102 | Registered: Dec 2000  |  IP: Logged | Report this post to a Moderator
Elizabeth
Member
Member # 5218

 - posted      Profile for Elizabeth   Email Elizabeth         Edit/Delete Post 
Hugs and warm thoughts to you, Kat.
Posts: 10890 | Registered: May 2003  |  IP: Logged | Report this post to a Moderator
Raia
Member
Member # 4700

 - posted      Profile for Raia   Email Raia         Edit/Delete Post 
((((((Kat)))))) [Frown] I'm sorry, sweetie.
Posts: 7877 | Registered: Feb 2003  |  IP: Logged | Report this post to a Moderator
Papa Moose
Member
Member # 1992

 - posted      Profile for Papa Moose   Email Papa Moose         Edit/Delete Post 
10 Print "(((kat)))"
20 Goto 10
Run

My mother-in-law is visiting this weekend, so I can empathize a little bit. Not fully, but enough to give hugs with reckless abandon.

--Pop

Posts: 6213 | Registered: May 2001  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
In the spirit of Pop's post . . .

kathugs = "(((kat)))" : kathugs

main = map putStrLn kathugs

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
LadyDove
Member
Member # 3000

 - posted      Profile for LadyDove   Email LadyDove         Edit/Delete Post 
::hugs kat::

::goes to kat's dad and attaches a whoopy cushion to his pants that expels to the tune of Jingle Bells::

::winks at kat and hugs her again::

Posts: 2425 | Registered: Jan 2002  |  IP: Logged | Report this post to a Moderator
Shan
Member
Member # 4550

 - posted      Profile for Shan           Edit/Delete Post 
Ouch. I'm sorry, sweetie. (((kat)))
Posts: 5609 | Registered: Jan 2003  |  IP: Logged | Report this post to a Moderator
Storm Saxon
Member
Member # 3101

 - posted      Profile for Storm Saxon           Edit/Delete Post 
(((kat))) [Kiss]
Posts: 13123 | Registered: Feb 2002  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
code:
Person Kat = new Person ("Kat");
for (int i = 0; i < Kat.NumHugsNeeded (); i++) {
Kat.GiveHobbesHug ();
}

Hobbes [Smile]
Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Kama
Member
Member # 3022

 - posted      Profile for Kama   Email Kama         Edit/Delete Post 
Leto can't hug?
Posts: 5700 | Registered: Feb 2002  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
tch, tch, Hobbes, using a method like GiveHobbesHug. How about GiveHugFrom(Hobbes) (with Hobbes created as a person -- Person Hobbes = new Person("Hobbes");
Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
saxon75
Member
Member # 4589

 - posted      Profile for saxon75           Edit/Delete Post 
(((kat)))
Posts: 4534 | Registered: Jan 2003  |  IP: Logged | Report this post to a Moderator
BYuCnslr
Member
Member # 1857

 - posted      Profile for BYuCnslr   Email BYuCnslr         Edit/Delete Post 
:: huggle ::
I understand completely

Posts: 1986 | Registered: Apr 2001  |  IP: Logged | Report this post to a Moderator
Jon Boy
Member
Member # 4284

 - posted      Profile for Jon Boy           Edit/Delete Post 
(((Katie)))

Any time, sis.

Posts: 9945 | Registered: Sep 2002  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
((((Kat))))

(oh, and to save my sanity I'm going to assume those variables are all nicely encased in a block of some kind, Leto, and are thus not contaminating the global namespace -- I'm already traumatized by writing php code because of all sorts of awful practices it makes necessary).

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
Uh, Leto, my program was in Haskell. Namespaces don't work the same way (in fact, the language as a whole doesn't work the same was as most any language you've used, I think). And Hobbes's was preventing contamination (effectively) by using objects.

What I wrote was a complete program, btw [Big Grin]

and many more ((((((((kat)))))))) hugs.

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
code:
#include <string.h>
#include <fstream.h>

class Person {
public:
Person () : Name (NULL), FileName (NULL), HugsNeeded (0), Hugs (0) {}

Person (char *GivenName) : Name (new char [strlen (GivenName) + 1]),
FileName (new char [strlen (Name)+5]) ,Hugs (0) {
strcpy (Name, GivenName);
strcpy (FileName, Name);
strcat (FileName, ".hug");

ifstream in (FileName);
in >> HugsNeeded;
in.close ();

out.open (FileName);
}

~Person () {out.close ();}

void GiveHug (char *Hugger) {
out << Name << " recieved a hug from " << Hugger << ", " << Hugs << " total hugs." << endl;
Hugs++;
}

void GiveHug (Person &Hugger) {
GiveHug (Hugger.Name);
}

int GetHugsNeeded () inline {return HugsNeeded;}

private:
char *Name;
char *FileName;
ofstream out;
int HugsNeeded;
int Hugs;
};

int main (int argc, char **argv) {
Person Kat ("Kat");

for (int i = 0; i < Kat.GetHugsNeeded (); i++) {
Kat.GiveHug ("Hobbes");
}

return 0;
}

Hobbes [Smile]
Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Derrell
Member
Member # 6062

 - posted      Profile for Derrell   Email Derrell         Edit/Delete Post 
(((kat)))
Posts: 4569 | Registered: Dec 2003  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
(((((Kat)))))

By the way, my code compiles and works properly, I ran it. [Cool]

Let's assume a file exists in the director nameed "Kat.hug" and looks something like this:
code:
32

Hobbes [Smile]
Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Ayelar
Member
Member # 183

 - posted      Profile for Ayelar   Email Ayelar         Edit/Delete Post 
You know.... my respect for ((name)) as a form of empathy has been immeasurably lessened by seeing so many different ways of... automating it.

[Razz]

I'm sorry your family sucks, kat. Maybe a good screaming wedgie or two would get them listen.

Posts: 2220 | Registered: Jun 1999  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
I still say you should make the argument of giveHug a Person argument. That would open up a lot of possibilities for extension -- for isntance, you could increment in the function the number of hugs that person had given out, or maybe have an associative array as a member with keys being the names (or better, some form of unique identifier autogenerated through a Person metaclass) of people Hugs are given to so you knew who had been hugged.

I love being a geek.

((((((Kat))))))

[ March 27, 2004, 01:43 PM: Message edited by: fugu13 ]

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
blacwolve
Member
Member # 2972

 - posted      Profile for blacwolve   Email blacwolve         Edit/Delete Post 
((((Kat)))) I'm so sorry. [Frown]
Posts: 4655 | Registered: Jan 2002  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
(btw, Hobbes, you better hope that function actually does inline [Wink] . And I wouldn't count on it, unless you're really turning up the optimization flags. However, I definitely support writing it that way, because the number of hugs needed might change with time (which would of course be accomodated by changing the gethugsneeded method to calculate the ones currently needed at any given time).

Though in that case it would probably be better to move all hug counting logic into the Person class, and use a while loop. Actually, that would be good even now. So whenever a hug was given you internally tally up another hug, and make the loop something like this (also including my shtick about the argument of giveHug:
Person Hobbes = new Person("Hobbes");
while(Kat.needsHugs()){
Kat.giveHug(Hobbes);
}

((((((((Kat))))))))

[ March 27, 2004, 01:51 PM: Message edited by: fugu13 ]

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Zotto!
Member
Member # 4689

 - posted      Profile for Zotto!   Email Zotto!         Edit/Delete Post 
(((Kat))) [Kiss]
Posts: 1595 | Registered: Feb 2003  |  IP: Logged | Report this post to a Moderator
Rakeesh
Member
Member # 2001

 - posted      Profile for Rakeesh   Email Rakeesh         Edit/Delete Post 
I'm sorry the benefits of having your family around come with so much baggage, Katie [Frown] You certainly deserve better, as demonstrated by your putting up with them so long (and let me tell you, that's far better than I would do)

Hope it's over quick, and that it goes with minimum jerkiness by your old man. Drop me an email if you'd like an ear to lease [Wink] (Low, low rates!)

Posts: 17164 | Registered: Jun 2001  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
considering you just wrote a semantically 'while' construct with a for loop, you shouldn't be talkin' on loops, Leto [Wink] .

Also, while his code is more complicated, it is also significantly more reusable, and could be incorporated, with relatively minor changes, into a number of systems. If you just want a once off solution, fine, but its often better to take a little time in the beginning and write something semantically rich, reusable, and extensible. If you tried to write a major program in the style you're writing in, it would be a very hairy undertaking. Hobbes's code would fit in just fine. (Note, this is not intended as a criticism, or even really a response to your previous comment, just an observation of the differences, as I observe the difference with mine below).

Mine was just for the sheer pleasure of mapping a print function onto an infinite list (I love lazy evaluation) [Big Grin] .

((((((((Kat))))))))

[ March 27, 2004, 02:32 PM: Message edited by: fugu13 ]

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
Oh my stars, y'all are adorable.

*hugs everybody*

Thanks.

*crosses fingers, goes back in*

[ March 27, 2004, 02:39 PM: Message edited by: katharina ]

Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
I went to a lot fo steps to do it for two reasons, one is, as Fugu mentions, reuseability. I don't reuse code all that much, but I've gotten in the habit of writting code that at least can be. I feel like it's a good habit. [Smile]

Second, is that I feel that this implementation is relfective of the physcial meaning. Two people, I started off sending the function in the for loop a Person class that had been constructed with "Hobbes" because that would be even more explict representation, however I realizied that would cause file problems so I left it at sending a charecter array (though you'll notice class Person is capable of excepting a Person class when giving a hug).

Also, as a programmer, the infinite loop, while cute, struck me as overkill, and probably would kill Kat from over-hugging. [Wink] [Cool]

((((((Kat)))))) Kat's a groovy girl. [Big Grin]

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
He did have a condition . . .

And I ran in circles, but I ran in circles intentionally [Razz] .

In fact, your for loop is the one that would run forever, you put the conditional in the wrong place. That first bit only evaluates once, and it doesn't do anything at all (its supposed to hold initialization procedures, and by its nature requires side effects for anything to happen. Your operation has no side effects). You have no conditional, and no iteration step.

So all that would happen is your for loop would call hug(Kat) forever (I'm assuming Kat is assigned a value somewhere).

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
Ha! Didn't even notice that overloaded method before. Nice, Hobbes.
Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
((((((((Kat))))))))

Just to comment some more on Haskell, and break down what my program did:
code:
kathugs = "(((kat)))" : kathugs

main = map putStrLn kathugs

The first line assigns kathugs (not really a variable in the sense of a C program) a list which consists of the value "(((kat)))" followed by . . . . itself. This constructs an infinite list. In a non-lazy language, this would be a problem, because in the attempt to evaluate itself the structure would keep cycling forever. However, in a lazy language this is not problem -- I could then say something like takeFirst kathugs and it would return the first element of kathugs -- "(((kat)))", despite that there were infinitely more elements there it wouldn't bother Haskell one bit, because it ignored them, not needing them to find the first element.

The second line assigns to the variable main. Main is a special value for Haskell compilers -- its the entry point of the program, like the function main in c. The value of main must always be a function (of type IO) that takes no arguments. However, Haskell has a really, really good type inference system, so in most programs you never need to write out a type signature.

the value of main is map putStrLn kathugs. This just maps the function putStrLn (which outputs a string with a newline) to the list kathugs. Since Haskell is lazy, it does it to one element after the other, not caring what all the elements afterwards are until it gets to them. As such it keeps going forever down the infinite list.

Its worth pointing out that while my program used recursion, it did not use any loops.

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Corwin
Member
Member # 5705

 - posted      Profile for Corwin           Edit/Delete Post 
((((Katie)))) Don't worry, be happy ! (always works...)
Posts: 4519 | Registered: Sep 2003  |  IP: Logged | Report this post to a Moderator
T_Smith
Member
Member # 3734

 - posted      Profile for T_Smith   Email T_Smith         Edit/Delete Post 
::shakes head solemly at Fugu and Hobbes::

Heya Katie! Sorry thats happening to you, and sorry theres not much I can do about it, otherwise I would. Also, sorry that I have no advice, or silly little code to put here. But hey, you're totally awesome and cool!

(((((katie)))))

Posts: 9754 | Registered: Jul 2002  |  IP: Logged | Report this post to a Moderator
larisse
Member
Member # 2221

 - posted      Profile for larisse   Email larisse         Edit/Delete Post 
{{{{Kat}}}} <-- Those were freely given. [Smile] No cashing of any sympathy thread a year card here.

I know it can be a difficult thing when family can make you feel horrible. It seems to go against all logic. People who are family -- blood -- should know how not to hurt you, but more often than not the opposite is true. Just remember that family is a not only a word defined by genetics but by the spirit, and you definitely have some family here.

Keep your spirit up.

Posts: 822 | Registered: Jul 2001  |  IP: Logged | Report this post to a Moderator
Farmgirl
Member
Member # 5567

 - posted      Profile for Farmgirl   Email Farmgirl         Edit/Delete Post 
((Kat))

But, you know -- if you want, you can send your dad over here. He can pretend to be MY dad for awhile..

..because somedays I would love to just have a dad, for one more day -- my dad, your dad, any dad... just have a dad again....

Farmgirl

Posts: 9538 | Registered: Aug 2003  |  IP: Logged | Report this post to a Moderator
karen.elizabeth
Member
Member # 6345

 - posted      Profile for karen.elizabeth   Email karen.elizabeth         Edit/Delete Post 
((kat))
Posts: 45 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
Ryuko
Member
Member # 5125

 - posted      Profile for Ryuko   Email Ryuko         Edit/Delete Post 
I only laughed when I saw Pop's code. I can actually understand that code!!!

Anyhow, I'm sorry kat. (hugs kat) My dad sometimes comes close to that... he usually steps back before I get REALLY upset.

Posts: 4816 | Registered: Apr 2003  |  IP: Logged | Report this post to a Moderator
ClaudiaTherese
Member
Member # 923

 - posted      Profile for ClaudiaTherese           Edit/Delete Post 
(((katharina)))

If I were there, I'd hide out in the bathroom with you. Or we could sneak out the back door and grouch about life together. *smile

Just remember, it will be over eventually. It may be awful meanwhile, but it will be over, and you will have your own space to yourself. I'd suggest some milk & cookies and a LM Bujold book myself, but you can figure out what's best for you.

I'm sorry you have to go through with this. Don't worry, you get all the sympathy cards you want.

Posts: 14017 | Registered: May 2000  |  IP: Logged | Report this post to a Moderator
amira tharani
Member
Member # 182

 - posted      Profile for amira tharani   Email amira tharani         Edit/Delete Post 
*sends Kat a transatlantic hug*
Posts: 1550 | Registered: Jun 1999  |  IP: Logged | Report this post to a Moderator
tonguetied&twisted
Member
Member # 5159

 - posted      Profile for tonguetied&twisted   Email tonguetied&twisted         Edit/Delete Post 
(((((kat)))))
Posts: 1111 | Registered: May 2003  |  IP: Logged | Report this post to a Moderator
aka
Member
Member # 139

 - posted      Profile for aka   Email aka         Edit/Delete Post 
code:
 
| |
| KatSad HugKat |
+----| |---------------( )---+
| |
| HugKat DadBad KatSad |
+----|\|-----| |-------( )---+
| |
| |

I'm implementing mine in hardware.

Kat, you got you some good geeklovin in this here thread.

Posts: 5509 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
rivka
Member
Member # 4859

 - posted      Profile for rivka   Email rivka         Edit/Delete Post 
(((((kat))))) I'm sorry the much-anticipated visit is causing you pain. [Frown] Family is complicated!!! Good luck, sweetie -- and hugs whenever you need 'em!

(((((((((((((((kat)))))))))))))))

Posts: 32919 | Registered: Mar 2003  |  IP: Logged | Report this post to a Moderator
Trogdor the Burninator
Member
Member # 4894

 - posted      Profile for Trogdor the Burninator   Email Trogdor the Burninator         Edit/Delete Post 
**burninates kat's Dad**

**hugs kat**

Posts: 1481 | Registered: Mar 2003  |  IP: Logged | Report this post to a Moderator
  This topic comprises 2 pages: 1  2   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2