News:

Help! We're trapped in the computer, and the computer is trapped in 2008! Someone call the time police!

Main Menu

Cattle Chat

Started by iago, December 12, 2005, 10:08:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iago

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:
QuoteHey 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)

MyndFyre

Quote from: iago on December 12, 2005, 10:08:24 PM
And by the way, here's a game: find the comment where I say that my own code sucks. 

table.c:

/* 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!
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

iago

#2
Quote from: MyndFyrex86] link=topic=4143.msg44506#msg44506 date=1134443502]
Quote from: iago on December 12, 2005, 10:08:24 PM
And by the way, here's a game: find the comment where I say that my own code sucks. 

table.c:

/* 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. 

Joe

Ctrl+A; enter. They're all opened in ultra-edit.

Ctrl+F; "sucks"; all files.

Found.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


MyndFyre

I think you have to make a "moooooo" sound play when it starts up.
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

iago

That would be a very unlinuxy thing to do :)

Sidoh

Quote from: iago on December 14, 2005, 01:46:43 PM
That would be a very unlinuxy thing to do :)

Haha, I was thinking the same thing! :)

MyndFyre

Quote from: iago on December 14, 2005, 01:46:43 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.
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

iago

Quote from: MyndFyrex86] link=topic=4143.msg44979#msg44979 date=1134600427]
iago, you included straightforward commands.  That's a very unlinuxy thing to do:
Lies!

Quote from: MyndFyrex86] link=topic=4143.msg44979#msg44979 date=1134600427]
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