Hawkee commented on a Page, Sort Array of IRC Nicks With Modes  -  Apr 07, 2014

A node.js IRC client. Interesting idea. What sort of UI will you be building?

PennyBreed  -  Apr 07, 2014

It's browser-based (node sends the irc events to the browser via web socket). I'm using Total.js as my framework and Bootstrap for responsive styling.

Hawkee  -  Apr 07, 2014

Very cool, do you have a WIP demo online? I'd love to see it

PennyBreed  -  Apr 07, 2014

Not as of yet, but I'll toss one up once I have something a bit more functional. Until then, screenshots:
https://www.dropbox.com/s/mlyhzgxswh60j6w/nodeirc1.png
https://www.dropbox.com/s/m115361y1yq79k6/nodeirc2.png
https://www.dropbox.com/s/3w68lntv2mid8hp/nodeirc3.png
You can see the messages relayed from node in the first 2 shots. jQuery then emits events from this data. Most of the processing is done on the page.

ProIcons  -  Apr 08, 2014

Seems Interesting. Though there's an error

        if (keyA < keyB) return 1;
        if (keyA > keyB) return -1;

->

        if (keyA > keyB) return 1;
        if (keyA < keyB) return -1;
PennyBreed  -  Apr 08, 2014

Good eye... Fixed the snippet and the fiddle.

ProIcons  -  Apr 08, 2014

In fact, it is not sorting names without prefix, you'll need also to change these lines:

default: mA=0; break;
//->
default: mA=0; var keyA=a; break;

default: mB=0; break;
//->
default: mB=0; var keyB=b; break;
PennyBreed  -  Apr 08, 2014

Can't believe I didn't notice that O.o ... all fixed up now.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.