8 Matching Annotations
- Jan 2021
-
css-tricks.com css-tricks.com
-
One lesser-appreciated user-behaviour is when a user would like to choose an alternative download location. On a download link, your user can right-click -> “save link as…” and place the download directly into a folder of their choice. Handy if you want something to go directly to removable media, for example. On a download button, there’s no such option.
-
- Oct 2020
-
www.basefactor.com www.basefactor.com
-
Ok, I have seen that there are lot of built-in and third party validations, but sooner or later I will face a validation rule not covered by this buffet. Can I build a custom one? Of course you can!
-
-
stackoverflow.com stackoverflow.com
-
Library author here. I'm always fascinated by new ways people can invalidate my assumptions. I mean that in a sincerely positive way, as it results in learning.
Tags
- sincere
- not:
- testing/challenging one's assumptions (either validating or invalidating them)
- different way of thinking about something
- learning from others
- assumptions
- not considering all use cases
- author of software answering questions in community (support)
- can't support everything / all cases
- surprising
- they've thought of everything
- invalidating one's assumptions
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Always fascinated to discover a use case I'd never have considered.
-
- Sep 2020
-
engineering.mixmax.com engineering.mixmax.com
-
But this is only a halfway decent way to clarify that this is an external dependency, because the only way to resolve a peer dependency warning is to install react from npm—there's no way to notify npm that you resolve the dependency to a browser global. So peer dependencies should be avoided in favor of external declarations. Then Rollup will take care of warning about "unresolved dependencies", even if external declarations can't express a particular version range with which your library is compatible like peer dependencies can.
Interesting. Didn't realize. From my perspective, I usually do install packages via npm, so wouldn't have known about this problem.
npm and rollup both try to solve this problem but in different ways that apparently conflict? So if a lib author lists peerDependencies then it can cause problems for those getting lib via browser (CDN)? How come so many libs use it then? How come I've never heard of this problem before?
-
-
github.com github.com
-
Maybe good for some cases but not a general solution for this I think.
-
-
github.com github.com
-
The code is short and simple, if you have specific needs you will probably be better off writing something custom for your application.
-
- Aug 2019
-
stackoverflow.com stackoverflow.com
-
Is it because package authors only consider the use case of installing their package from npm and not the case of installing it from a git repo?
-