Author Topic: Cattle Chat  (Read 5660 times)

0 Members and 1 Guest are viewing this topic.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Cattle Chat
« on: December 12, 2005, 10:08:24 pm »
Releasing the full unedited sourcecode and documentation:
http://www.javaop.com/~iago/cc.tgz

I've confirmed that it compiles and works on Linux, Solaris, and SunOS.  OpenSSL and Ncurses are required.  I am not running a server, nor do I plan to.  This is for educational purposes only. 

If you just feel like browsing the source, check this out:
http://www.javaop.com/~iago/cc

And by the way, here's a game: find the comment where I say that my own code sucks. 

Here is what the marker said about it:
Quote
Hey Ron:
I add mark for that part. So you mark for project is 95.5/100. Final mark is 48.7/50.  Actually, I do like your code. You did very good job, implement everything by C!!.

Good luck on your exam.
(So my mark in that class is 97.4%, but the final can have a big effect on it, since it's worth 50% :-o)

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Cattle Chat
« Reply #1 on: December 12, 2005, 10:11:42 pm »
And by the way, here's a game: find the comment where I say that my own code sucks. 

table.c:
Code: [Select]
/* Get the number of entries in the table */
/* TODO: this implementation sucks.  Find a better way. */
size_t table_get_count(table_t *table)

Mooooooooooooooooooooooo!
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Cattle Chat
« Reply #2 on: December 12, 2005, 10:12:10 pm »
And by the way, here's a game: find the comment where I say that my own code sucks. 

table.c:
Code: [Select]
/* Get the number of entries in the table */
/* TODO: this implementation sucks.  Find a better way. */
size_t table_get_count(table_t *table)

Mooooooooooooooooooooooo!

Jesus Christ, less than 3 minutes. :P

<edit> by the way, I hope everybody realizes why my table.c file sucks.  I implemented my table in an extremely crappy way, so it'll be slow as hell, but it wasn't really necessary to do anything more, it worked and that was enough for me. 
« Last Edit: December 12, 2005, 10:21:31 pm by iago »

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Cattle Chat
« Reply #3 on: December 12, 2005, 10:31:51 pm »
Ctrl+A; enter. They're all opened in ultra-edit.

Ctrl+F; "sucks"; all files.

Found.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Cattle Chat
« Reply #4 on: December 14, 2005, 11:11:25 am »
I think you have to make a "moooooo" sound play when it starts up.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Cattle Chat
« Reply #5 on: December 14, 2005, 01:46:43 pm »
That would be a very unlinuxy thing to do :)

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Cattle Chat
« Reply #6 on: December 14, 2005, 03:44:03 pm »
That would be a very unlinuxy thing to do :)

Haha, I was thinking the same thing! :)

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Cattle Chat
« Reply #7 on: December 14, 2005, 05:47:07 pm »
That would be a very unlinuxy thing to do :)
iago, you included straightforward commands.  That's a very unlinuxy thing to do:

 help -- Type /help to get a list of commands, or /help <command>
  for help on a specific command. I added some commands that were
  not in the specification, so be sure to look!
 login -- Logging in is done implicitely when connecting.  I hope
  that's not issue,  but I thought it was far more clean doing it
  that way.
 who -- Type /who to get a list of all users or /who <channel> to
  get a list of users in that channel.
 yell -- This is done implicitely when a message is typed.   Just
  type a message and hit enter, no need to hell. 
 tell -- Type  /tell <user> <message>  to send somebody a private
  message.  Note that if the user has a space in his name,  it is
  impossible to send them a message in this way.  Consider that a
  feature, they don't want to be bugged. :)
 bye -- Type /bye.  This is really hacked together,  the best way
  to exit by far is control-c.
 newroom -- Type /newroom <room>; if the room already exists,  it
  joins it instead of creating it.   This command is  implicitely
  an alias for /join.
 member -- Type /member <room>; this command is actually an alias
  for /who.
 join -- Type /join <room>. If the room doesn't exist, it will be
  created (this command is the same as /newroom)
 logout -- Just use /bye for this.

You're supposed to have obscure commands for the simplest tasks.

Also, you pulled a Microsoft:
Consider that a  feature, they don't want to be bugged.
Yeah.  C'mon, just admit it, it should moo.  Make it come out of the PC speaker, that's Linux-y.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Cattle Chat
« Reply #8 on: December 14, 2005, 07:35:11 pm »
iago, you included straightforward commands.  That's a very unlinuxy thing to do:
Lies!

Also, you pulled a Microsoft:
Consider that a  feature, they don't want to be bugged.
That was supposed to be a joke making fun of MS :D