449 karma · joined May 27, 2014 (12y ago) · 174 submissions
comment 6y ago · link · parent
Additionally, your OS probably already natively hides files that start with a dot, so this is just a UI problem.
Please don’t “solve” this issue by moving files to a sub-directory. If anything, only leave non-config files there, it’s the obvious simple solution that most projects follow anyway.
comment 6y ago · link · parent
A better solution would be an intermediary part that never changes — say, CloudFlare — that caches HTML pages forever, automatically adds a “Archived content” header to the page, and warns the author so that they can either allow the archived version or make it a 404/410 instead.
Nobody wants to maintain servers forever, but serving static/frozen pages is much easier and cheaper.
comment 6y ago · link · parent
max-width: 100%;
height: auto;
What the other user is talking about is a new feature that FINALLY uses the attributes to preserve the ratio before the image starts loading.Kinda ridiculous that we had to wait 8 years of “responsive design” before they realized that this was always supposed to happen.
comment 6y ago · link · parent
This is my go-to:
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
Tip: browser consoles already have these shortcuts, except $$ returns an actual array there instead of a NodeList.comment 6y ago · link · parent
https://htmldom.dev/copy-text-to-the-clipboard
I get "trying to stay vanilla", but any reasonably-common snippet should either be installed from npm or published there.
For this specific issue there's a module named almost exactly the same and it restores the previous selection and focus as well: https://github.com/sindresorhus/copy-text-to-clipboard/blob/...
This is the point of published modules: your code isn't stuck into the version someone wrote in 10 minutes 5 years ago.
comment 7y ago · link · parent
Examples:
npm init esm
npm init react-app
https://docs.npmjs.com/cli/initcomment 7y ago · link · parent
Probably most people’s time in maintenance and development is worth more than $9/month, that’s why these services exist.
Semi-related xkcd https://xkcd.com/1319/
comment 7y ago · link · parent
Found the blanket statement for npm.
How about instead of reviewing 1 library of 10k lines that does everything, you review 10 focused modules for a total of 1k lines?
Also modules like left-pad don’t change that often so you probably have to review only changes in the top modules.
We need to stop this mentality that dependency count should be low. Look at total LOC and you’ll probably find that it’s not as bad as people like to paint it.
comment 7y ago · link · parent
Surely those who have track days can disable the limit or buy a car without it, while the vast majority of "casual speeders" won't be affected by it.
Even 112 is quite high compared to the speed limit in most of the world. 100 would be right, outside Germany.
comment 7y ago · link · parent
Even in this[1] difficult comparison you can see the non-human repeating skin patterns on the right and the awkward teeth contour. Also hair-on-skin often looks wet and with unnatural bends.
When comparing wrinkly people then it gets a little harder.
comment 7y ago · link · parent
We just call it phone because that's what we attached a computer to, but it's more like a pocket computer with LTE modem for most people. I'd call it Pocket PC if I could!
comment 8y ago · link · parent
It may be difficult to an anglophone, but I'd argue that the phonetic irregularities of English are much more of a problem to a learner. "though/tough/through" never happens in Italian.
comment 8y ago · link · parent
e.g. I want to translate a message. Either I wait for every messenger/OS to get a decent in-app translator, or I use copy-paste into Google Translate — very clunky, but better than not being able to.