Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkstn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
pkstn
7y ago
Cool wow, yeah! I’ve thought about chat feature..
152.
▲
by
pkstn
7y ago
Haha yeah, I was lucky to get that
153.
▲
by
pkstn
7y ago
Others have requested chips too, so will add. But first need to open source
154.
▲
by
pkstn
7y ago
I changed the design of faces, the previous font had too similar 3 and J
155.
▲
by
pkstn
7y ago
I will open source it soon here: https://github.com/pakastin/deck-of-cards
156.
▲
by
pkstn
7y ago
Fisher yates yeah! Server is the single-source-of-truth, so no way to peek cards
157.
▲
by
pkstn
7y ago
Oh, just the deck without picked cards? I could add ”Collect” button next to ”Shuffle”. It’s easy to do, but I’m on mobile now – will do today.
158.
▲
by
pkstn
7y ago
Oh damn, I’ll fix that ASAP
159.
▲
by
pkstn
7y ago
node.js + express + MongoDB + socket.io
160.
▲
by
pkstn
7y ago
I completely redesigned the card faces – 3 and J was hard to distinguish.. https://deck.of.cards
161.
▲
by
pkstn
7y ago
Thanks! Here’s how they’re done: https://medium.com/@pakastin/javascript-playing-cards-part-3...
162.
▲
by
pkstn
7y ago
Maybe, let’s see..
163.
▲
by
pkstn
7y ago
Server is the single-source-of-truth and only share the info about card value/suit when clicking your own card or common cards
164.
▲
by
pkstn
7y ago
Not possible, client-side doesn’t have the information
165.
▲
by
pkstn
7y ago
It is done on server-side
166.
▲
by
pkstn
7y ago
Yeah, that’s how it work! Will need to add help/tutorial there..
167.
▲
by
pkstn
7y ago
I will open source it soon!
168.
▲
Multiplayer Deck of Cards
(deck.of.cards)
190 points
by
pkstn
7y ago
|
73 comments
169.
▲
Article about shuffling playing cards realistically with JavaScript
(medium.com)
1 points
by
pkstn
7y ago
|
0 comments
170.
▲
by
pkstn
7y ago
Probably not for you then :) I was just looking for this kind of service myself, but couldn’t find.. Having solid price no matter the traffic and nice up-to-date vector map tiles.
171.
▲
by
pkstn
7y ago
Good question! Answer is yes, and the difference is solid unmetered pricing! ;) Hosting the whole planet by yourself is not cheap either... Will start by offering nice and easily-stylable tiles, then search etc... And probably will have a f
172.
▲
Would you prefer solid price vs. freemium model for vector maps?
(mapsson.com)
3 points
by
pkstn
7y ago
|
4 comments
173.
▲
by
pkstn
8y ago
Check out my talk if you're interested in internals: https://www.youtube.com/watch?v=0nh2EK1xveg&t=410s ;)
174.
▲
by
pkstn
8y ago
It actually wasn’t, they didn’t use key with ng-repeat in benchmarks. Even Angular 1 was actually faster back then when used correctly: https://500tech.com/blog/all/is-reactjs-fast
175.
▲
by
pkstn
8y ago
Agreed!
176.
▲
by
pkstn
8y ago
But when I wrote that text, React used to be way slower than RE:DOM. It’s gotten faster since that (still slower though). I could probably update that ”marketing” text.
177.
▲
by
pkstn
8y ago
The beauty is that you know exactly what’s happening and when. Debugging is also way easier without long stack traces. There’s pros and cons in everything.
178.
▲
by
pkstn
8y ago
Not much, really..
179.
▲
by
pkstn
8y ago
You can make pure updates in RE:DOM. It’s developed for our digital signage system, and it’s really performant in a real world situations. It’s different than React though, that’s by design, since we needed more precise DOM handling.
180.
▲
by
pkstn
8y ago
Fair enough, of course it’s marketing as well. But it’s so common to say ”blazing fast”. Even FB developers argued React being fast even though it used to be really slow.
More ›