Live data from Hacker News

HTML5 Deck of Cards

pakastin.github.io

161–165 of 165 posts

Re: HTML5 Deck of Cards

#161

the animation is lovely and fluid. bit of a shame that the card faces don't have the pictures for the royal cards and the usual layout of multiple suit signs on the number cards, but this is still super.

That's now fixed!

Re: HTML5 Deck of Cards

#162
post #9

Maybe it's a weird takeaway, but this line is really clever: var suit = i / 13 | 0; That's such a clean way to get a 0, 1, 2 or 3 from each card's `i` and I never would have thought of it.

I think "value | 0" is basically same as "Math.floor(value)"

value | 0 will always return a 32 bit integer.

Math.floor(value) can return some weirder values such as: NaN (for anything that isn't a number), and Infinity, -Infinity, -0. And Math.floor(-1e-300); is -1 so care needs to be taken with floating values near zero.

Re: HTML5 Deck of Cards

#163

Earlier quoted context omitted.

Okay, but that doesn't address that it still doesn't have faces on face cards, different numbers of suit icons on each card, etc. There are off-the-shelf stock photo sets that make it easier to tell the difference between the cards.

See the thing you don't get here is that none of what you say justifies posting these comments just to shit on something. It makes a negative contribution to the conversation, which HN explicitly does not want.

I get that you (and a lot of other people) think that, I just don't care. In general, you should disabuse yourself of the notion that a) you speak for HN, and b) that I care what you want.

Other HN users can have their opinions on what they want from HN, and can downvote accordingly. But I'd like HN to be a place where people can learn about reality instead of just go to get some false positive feedback, and I'm going to act accordingly.

If you want a place where you can get unconditional approval, you might want to try your mother. She'll always approve of what you do even if it's terrible.

And in general, you're not going to gain much traction talking to me as long as you think people are obligated to care when someone gets offended.

Re: HTML5 Deck of Cards

#164

Earlier quoted context omitted.

This is the real world: just because you do work doesn't mean you were working on the right thing, the right way, at the right time, for the right people, etc. Maybe pretending everything is awesome feels good now, but it won't feel good when you're in your 40s with nothing lasting to show for 20 years of professional development work. I won't be linking to my work for 2 reasons: 1. I say unpopular things with this a…

It's easy to say unpopular things with an anonymous account, but it kind of takes the weight out of them IMO. Own your opinions, I say.

It's easy to speak with your real name when don't think for yourself and instead only follow popular opinions, but that makes your opinions kind of worthless IMO. The truth is not always what's popular, I say.
Post reply on HN