Live data from Hacker News

Poll: Where do you live?

news.ycombinator.com

181–190 of 563 posts

Re: Poll: Where do you live?

#182
post #36

Earlier quoted context omitted.

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)))

Current top 10: 'US: California' '79 points' 'Canada' '48 points' 'US: Washington' '39 points' 'US: New York' '36 points' 'Germany' '35 points' 'United Kingdom' '34 points' 'US: Massachusetts' '19 points' 'Netherlands' '18 points' 'US: Colorado' '17 points' 'Sweden' '16 points' Colorado #9? Really?

As percent of total responses, as of right now:

    'US: California', '10.87%'
    'Canada', '5.79%'
    'United Kingdom', '4.51%'
    'US: Washington', '4.45%'
    'Germany', '4.45%'
    'US: New York', '4.32%'
    'US: Colorado', '2.10%'
    'US: Texas', '1.97%'
    'US: Massachusetts', '1.84%'
    'France', '1.78%'
The US in total makes up 49% of responses so far (even though it is nearly 10pm in most of Europe)

Edit: quick and dirty one-liner to get the full table with relative values:

    data = [...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.trim(), el.nextSibling.textContent.trim()]).sort(([,a], [,b]) => parseInt(b) - parseInt(a)); total = data.map(a => parseInt(a[1])-1).reduce((a,b) => a+b, 0); console.table(data.map(a => [a[0], ((parseInt(a[1])-1)/total*100).toFixed(2) + "%"])); us = data.filter(a => a[0].startsWith("US:")).map(a => parseInt(a[1])-1).reduce((a,b) => a+b, 0); `US makes up ${(us/total*100).toFixed(2)}% of ${total} responses`
Edit2: made one-liner even dirtier to account for counts starting at 1

Re: Poll: Where do you live?

#184
post #135

Earlier quoted context omitted.

China and India has a bigger population, and China has a similar landmass as the US yet is just one option in this poll.

On the other hand, as of right now, China has 1 point and India 9. That combined is less than Poland, which has 15. It makes sense to have finer granularity for the poll options people will actually choose.

People in India are asleep right now.

Re: Poll: Where do you live?

#186
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.

I always understood it to be rooted in raw materials: The silica mines were there, which attracted semiconductor fabs, which attracted hardware companies, which attracted software companies, etc.

Re: Poll: Where do you live?

#187

Earlier quoted context omitted.

Current top 10: 'US: California' '79 points' 'Canada' '48 points' 'US: Washington' '39 points' 'US: New York' '36 points' 'Germany' '35 points' 'United Kingdom' '34 points' 'US: Massachusetts' '19 points' 'Netherlands' '18 points' 'US: Colorado' '17 points' 'Sweden' '16 points' Colorado #9? Really?

Denver and Boulder have a good amount of tech. A bit surprised it comes out ahead of Texas though. Also the UK and Germany being about the same is interesting. Germany does have a slightly larger population, but of course the UK is natively English speaking.

Well, EastEnders was on...
Post reply on HN