Live data from Hacker News

Poll: Where do you live?

news.ycombinator.com

31–40 of 563 posts

Re: Poll: Where do you live?

#33
post #10

I hope there is someone who knows how to code in this community to parse the results and do a nice visualization. I have a cousin who knows about computers, if noone knows here how to do it, I can ask him to try. He always helps me with my printer.

I think I can help, I've been learning how to make bar graphs from tables in microsoft word

Re: Poll: Where do you live?

#34
post #5

Earlier quoted context omitted.

California doesn't have to be the center for tech anymore as the world has shifted to a distributed workforce. The US doesn't, for that matter, and you can tell it's happening due to all of the new international investments. Edit with some sources: https://news.crunchbase.com/news/europe-vc-funding-unicorns-... https://asia.nikkei.com/Spotlight/Market-Spotlight/Venture-c... https://www.bloomberg.com/news/articles/202…

I have heard the hypothesis that the main reason Silicon Valley was able to grow is because non compete clauses are invalid in California. So people can start a side business competing with their employer, and only risk being fired (as long as they dont steal IP) They could also freely hop from company to company without waiting in between.

California doesn't completely prevent companies from limiting side businesses, they might be able to claim your work depending on your employer agreement and how similar it is to what your company does. But they can't keep you from working in the same field if you quit.

Re: Poll: Where do you live?

#35

We could ask dang if he can share some stats if he’s allowed to. It’s an interesting question!

Don't think there is any way of getting the stats on where people live automatically. At most they would probably be able to get most commonly used locations, as a IP belongs to a location, but that doesn't mean that the user lives there (or even that the user is physically around there [VPNs], but probably usually right).

Re: Poll: Where do you live?

#36
post #25

Pasting this in dev console will give you a quick and dirty rundown. It sorts locations by points. [...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.trim(), el.nextSibling.textContent.trim()]).sort(([,a], [,b]) => parseInt(b) - parseInt(a)).map(a => a.join(' - ')) As of this post, California is leading, followed by other places w/ large tech hubs (Germany, UK, Canada, NY, Washington)

This is begging for a console.table

     console.table([...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.trim(), el.nextSibling.textContent.trim()]).sort(([,a], [,b]) => parseInt(b) - parseInt(a)))

Re: Poll: Where do you live?

#38
post #25

Pasting this in dev console will give you a quick and dirty rundown. It sorts locations by points. [...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.trim(), el.nextSibling.textContent.trim()]).sort(([,a], [,b]) => parseInt(b) - parseInt(a)).map(a => a.join(' - ')) As of this post, California is leading, followed by other places w/ large tech hubs (Germany, UK, Canada, NY, Washington)

Nice work

Re: Poll: Where do you live?

#40

I noticed that every single country/state, has at least one vote. Just for Ss & Gs, you should add "Greenland," and "Antarctica."

That's because of the architecture of HN (and indirectly Arc I'd presume) where every created `item` (stories, comments, individual poll-items) starts with 1 point by default, as the author surely would have upvoted it anyways.
Post reply on HN