Better HN
topnewbestaskshowjobs
Log inSign up

enoex1

191 karma · joined Aug 7, 2012 (14y ago) · 31 submissions

Personal site: http://erikhazzard.com
Submissions

comment 7y ago · link · parent

Redis pub / sub has worked fantastically for me - reached 100k+ concurrent users with ~80 msg / sec, but benchmarked much higher. It was the easiest, fastest, and most reliable solution I found (about ~4 years ago)

2.

The Hitchhiker's Guide to D3.js(medium.com ↗)

5 points · by enoex1 · 9y ago · discuss

comment 9y ago · link · parent

It's a voronoi + boids visualization that flocks around the mouse (and each other).

In honesty though, it's literally eye cancer ;P

comment 9y ago · link · parent

In this app I did not have to worry about that, but I can recommend https://github.com/sunnylqm/react-native-storage for dealing with storing on the device if you want to manually do things. I haven't built an app with React Native yet that does rely on local storage; however, with Redux and the redux-storage library it should be no problem

I do very much like Redux, but definitely that whole data flow layer can be intimidating. Wes Bos has a great free course on react / redux ( https://learnredux.com/ ) that can help that learning process, and there is the excellent courses on https://reacttraining.com/ if you are willing to invest a little bit of money on learning.

With all that said, you don't _need_ to use Redux or anything else to work with storing data. It might be a good idea to try manually storing with the aforementioned storage library just so you can get something working and feel like you're making progress; and then spending some time with Redux and (https://github.com/michaelcontento/redux-storage provides support for storing data with react native). Good luck!

comment 9y ago · link · parent

Yes, quite easy! I have very little android dev experience. Android integration was excellent, I had zero issues. It was easy to ship to the play store (faster and less painful than iOS. And if you need to modify something, you don't need to wait days to get it re-approved).

If you're playing "within the bounds" of what React Native provides, it's wonderful. If you're doing some fairly custom things you may need to drop down and write Native Modules ( https://facebook.github.io/react-native/docs/native-modules-... ), but the ecosystem is growing so fast that there are so many third party libraries that cover many of the custom things you'd want to do ( https://github.com/jondot/awesome-react-native )

6.

How I learned React Native in a weekend and shipped an app(vasir.net ↗)

159 points · by enoex1 · 9y ago · 32 comments

7.

The Psychological State of “Flow” and Game Design(atahigherlevel.com ↗)

2 points · by enoex1 · 10y ago · discuss

8.

Using data visualization to craft experiences: from loading bars to games(vasir.net ↗)

8 points · by enoex1 · 11y ago · discuss

9.

Presentation on Crafting Experiences with Data Visualization(youtube.com ↗)

3 points · by enoex1 · 11y ago · discuss

10.

Show HN: Rect Rangle – simple multi-player browser-based game(rectrangle.com ↗)

11 points · by enoex1 · 12y ago · discuss

11.

Designing a Browser Based Game with D3.js, Part I(vasir.net ↗)

6 points · by enoex1 · 12y ago · discuss

12.

Using D3 and SVG Filters to Create a Fog of War Effect(vasir.net ↗)

9 points · by enoex1 · 12y ago · discuss

13.

Enhancing Data Visualization with SVG Filters(vasir.net ↗)

14 points · by enoex1 · 12y ago · 1 comment

14.

How games use data viz(vasir.net ↗)

5 points · by enoex1 · 12y ago · discuss

15.

Colorful, group-based JavaScript logging for the web(vasir.net ↗)

7 points · by enoex1 · 12y ago · discuss

16.

Show HN: Bragi – A discrete, colorful logging library for JavaScript(vasir.net ↗)

10 points · by enoex1 · 12y ago · discuss

17.

Visualizing Dijkstra's Algorithm(vasir.net ↗)

4 points · by enoex1 · 12y ago · discuss

comment 12y ago · link · parent

For errors I'll always log the full stack trace (in JS, at least). This helps a ton for when errors occur, but I find that often times it's not explicit errors that are a problem (e.g., making sure the right message is sent and received from a queue system). Of course, setting breakpoints can give more information, but it's not always obvious where a breakpoint needs to be set (e.g., when a new person comes on the team) - for me, logging points me to where I need to set breakpoints, speeding up my development time.

19.

How logging made me a better developer(vasir.net ↗)

10 points · by enoex1 · 12y ago · 2 comments

comment 12y ago · link · parent

Thanks! I've come across your library before and I think it's great. I like how you abstract the World to be a container for the systems and entities.

21.

How to Build an Entity Component System Game in JavaScript(vasir.net ↗)

28 points · by enoex1 · 12y ago · 5 comments

comment 12y ago · link · parent

I'll be posting a follow up about the machine learning bit in the near future. It uses not just words, but also phrases. For the meme / buzzfeed posts, more weight is given to content you write vs. links / articles you post (and we only take into account what you say if you do share a link, not the content the buzzfeed post itself).

It doesn't really try to distinguish sarcasm. Depending on the sample size (ours used 75k people with ~750m words / phrases), it could conceivably detect sarcasm. Yeah, totally. /s (Maybe, but probably not)

The study itself is published at http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3783449/

23.

How we scaled to generate personalities for 200 million people(vasir.net ↗)

29 points · by enoex1 · 12y ago · 7 comments

comment 12y ago · link · parent

source and methodology: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3783449/

comment 13y ago · link · parent

like this? http://shutdown.outline.com/

comment 13y ago · link · parent

canvas can better handle drawing thing which involve tons of objects, as you're working with pixels instead of DOM elements. here's an example of canvas being used for parallel coordinates: http://bl.ocks.org/syntagmatic/2420080

comment 14y ago · link · parent

Very cool! D3 was intimidating to me, and personally screencasts similar to this are helpful when trying to get a broad overview of a library. Even better, all the code for each video is provided with a live code editor.

comment 14y ago · link · parent

The data comes from a recent image published on the GuildWars official blog: http://guildwars2viz.com/static/img/viz/gw2_data.jpg

I just calculated the percentages based on the pixel coverage of each bar. I'll also add in on your buddy's harping - get it, it's a fun game! ;)

comment 14y ago · link · parent

Thanks! You're not thick, it's just that this isn't really the best visualization choice for the data since the rings are independent and not hierarchical (like in http://mbostock.github.com/d3/ex/sunburst.html).

You are absolutely right about the scale for the bar charts, oversight on my part which I have fixed now. The adding to 99% is a rounding error (you can see the fully number value by mousing over a bar) - thanks a ton for your feedback!

comment 14y ago · link · parent

Thanks! I removed the transition delay effect, it should appear to select it a bit faster now.
12