Live data from Hacker News

Slack Poker Bot

github.com

81–90 of 100 posts

Re: Slack Poker Bot

#82
post #75
post #4

The attention to detail in spec output is exemplary. Uploading to Imgur for displaying card images to users seems like a strange choice, though. Why not have the bot serve its own images up over HTTP and attach URLs to itself? I could even imagine a badges.io style image preparation microservice that could be shared by several playing-card based bot apps.

Clearly the author is able to watch imgurl access logs... (or does imgurl list number of views for images? With good enough timing, that might be enough...)... ;-)

The [imgur](https://github.com/kaimallea/node-imgur) API lets you upload an image (anonymously) and responds with a URL. I promisify'd that and the result is super straightforward. You don't even need to auth.

Re: Slack Poker Bot

#84
post #56

Earlier quoted context omitted.

Right. Think of Slack as a really well configured IRC server, except you don't have to manage it at all, and it's front-end UI is much more modern (and better); integrated file uploading, inline media, integrations with everything under the sun, etc. None of it is impossible in IRC, it's just _easier_ in Slack because it's out of the box like that. And, most importantly: I don't have to manage the damned server ;)

Are there open source/open protocols for something like Slack? Rich IRC?

matrix.org is pretty good. Theoretically a well configured XMPP server would do.

Re: Slack Poker Bot

#86
post #56

Earlier quoted context omitted.

Right. Think of Slack as a really well configured IRC server, except you don't have to manage it at all, and it's front-end UI is much more modern (and better); integrated file uploading, inline media, integrations with everything under the sun, etc. None of it is impossible in IRC, it's just _easier_ in Slack because it's out of the box like that. And, most importantly: I don't have to manage the damned server ;)

Are there open source/open protocols for something like Slack? Rich IRC?

There are a couple of protocols that do similar things, but nearly all of them have a major fatal flaw, that is unfortunately very difficult to work around through no fault of their own: mobile push notifications, especially on iOS. An open protocol is useful, but not enough, and that's where Slack hosting and developing everything themselves has an advantage, despite open protocols and tools being what I'd normally want to use. But practicality matters, and so when I last looked at alternatives a year ago, I couldn't find anything that would be a drop-in feature-complete replacement. It's a shame, but I expect something to come up in the future, perhaps on Matrix or other protocols.

Re: Slack Poker Bot

#87
post #77

Earlier quoted context omitted.

Just a way better interface on it. Searchable history, multiple rooms inside rooms effectively. File sharing, lots of niceties that are probably possible in IRC but would take a lot of work. It has changed the way our team communicates, for me I am the only remote guy on a team of 6ish devs. I can pick and choose my hours, work when other guys are off, and still see all the comms that happened while I wasn't at my ma…

I love everything about Slack except the damn chat window. Oh, and the pricing. The onboarding process is buttery smooth, and there are tons of integrations. But there's so little in the way of communication density (even in 'compact mode') that I miss IRC. We have a jira integration set up and every ticket consumes five lines plus plenty of whitespace - a few of those and there's no real comms visible on the page. E…

[deleted]

Re: Slack Poker Bot

#89
post #87
post #77

Earlier quoted context omitted.

I love everything about Slack except the damn chat window. Oh, and the pricing. The onboarding process is buttery smooth, and there are tons of integrations. But there's so little in the way of communication density (even in 'compact mode') that I miss IRC. We have a jira integration set up and every ticket consumes five lines plus plenty of whitespace - a few of those and there's no real comms visible on the page. E…

[deleted]

He covered that in his second sentence.

> But there's so little in the way of communication density (even in 'compact mode')

Re: Slack Poker Bot

#90

Am I correct in saying that the shuffle algorithm is flawed? It looks to me like it swaps each card iteratively with a random card in the deck. This means that some cards are likely shuffled more times that others, and some sequences are then more common than others. https://github.com/CharlieHess/slack-poker-bot/blob/master/s...

Does this add a bias though? If I took first card in deck and swap it a hundred times more than others how would that make a difference?
Post reply on HN