121 karma · joined Mar 22, 2020 (6y ago) · 36 submissions
comment 6y ago · link · parent
The absolutely ridiculous part of this is that they're using JS to create additional DIVs on top of the image.
Why use the map at all?
Edit: May 20th 2020: the day I learned HN users are retarded
comment 6y ago · link · parent
Statistically speaking, Laotian users speak Laotian. As a traveler, I’m the minority.
Regarding the rest, I feel you. They can guess whatever language as long as they make it easy to change it, without unnecessary redirection games.
Apple.com is relatively good with this:
> Hey I see you’re in Thailand, maybe you want to check out the Thai site.
comment 6y ago · link · parent
I’m in Switzerland, please follow my browser language. Don’t guess whether I speak Swiss, French, Italian, etc
I’m in Laos, my OS is in English. Please show me Laotian.
However, do make it easy for anyone to change the language. I shouldn’t have to hunt the settings page when traveling.
comment 6y ago · link · parent
German is well supported by software. If Germans want German content, they’ll have their OS set to use German.
Filipinos on the other hand would be a better example: Their software is likely to be in English but surely they prefer reading Tagalog or Cebuano.
- -
As a traveler, I’m thoroughly annoyed by being shown websites in the local language, but that would be perfectly fine if it was easy for me to change the language.
Sadly though changing the language often means having to learn what “Settings, Language, <language name>” looks like in the current country.
comment 6y ago · link · parent
Maybe reinventing the whole damn car on canvas isn’t a great idea either. I bet that the keyboard isn’t the only part that doesn’t work.
Flash was hated for this reason too: Breaking affordances. Imagine everyone reinventing their own UI framework on each app.
comment 6y ago · link · parent
History is never more than 2 clicks away:
- Open Library button, click History
- Open History menu (macOS)
However, yes, core browser functions seem to be stuck to what they looked like in the year 2000 for most browsers. Only Safari basically tries to reinvent its UI every couple of years.comment 6y ago · link · parent
comment 6y ago · link · parent
Uhm yeah but countries do nothing when Russia annexes Crimea, what do you think they’d do if the US simply spies on them? Absolutely nothing. It’s literally happening right now and it’s public knowledge and “it’s just a matter of national security.” Case closed.
comment 6y ago · link · parent
Your content is indeed static but your search is not: It’s handled by a service that parses your requests and produces output.
Static content on the other hand are files being served straight from the filesystem.
As for Disqus, they’re not static either, they’re just “a service for static websites”
comment 6y ago · link · parent
I regularly extract features from my apps into new npm packages. This way they can be reused by other apps.
Troglodytes can keep copy-pasting code between apps while npm users publish once and update everywhere.
comment 6y ago · link · parent
> why a library like this is even necessary?
Do you know how to determine whether something is a Promise?
Wrong. Also the first few StackOverflow answers are wrong or incomplete.
You know what's better? Using the same library 3.4 million repos depend on, that is tested and won't break if you use a package-lock.
> Can't you just wrap everything and treat it like a promise?
Maybe. Maybe not. Treating everything as a Promise means you have to make your function asynchronous even if not necessary.
comment 6y ago · link · parent
Preparing data for external use always takes extra effort.
You can build an efficient self-contained tool in JavaScript too.
comment 6y ago · link · parent
OP suggested it as a way for users to customize their HN color; Then you suggested to take this query and make an extension out of it.
If you want to customize your HN color, use CSS, not this roundabout way through a query parameter.
The query never makes sense anyway. If HN were to allow customization they’d allow it in the options, not as a random query that you have to set manually.
comment 6y ago · link · parent
Instead of adding a file to your “libs” folder you add a line to package.json
Any code that isn’t in my repo is code I don’t have to maintain.
Left pad can’t happen anymore (for 4 years now) and if you don’t know that you’re either lying or outdated (like those files in your libs folder)