I’m glad that Yarn will continue. Npm has improved, but it’s still less pleasant to work with than yarn (which basically always does what I expect, not so for npm).
Yarn's Future – v2 and beyond
11–20 of 239 posts
Re: Yarn's Future – v2 and beyond
#12There appears to be a real movement to move from Flow to typescript. Is Flow dying?
There was initially talk of Flow using comments to actually work without touching the source code at all, but I don't think anything came of that... is there anything else on the horizon?
[Edit: Nevermind: I went looking for the github issue about adding types as comments, and it turns out it's already supported by flow: https://flow.org/en/docs/types/comments/ - is there anything like this for TypeScript?]
Re: Yarn's Future – v2 and beyond
#13There appears to be a real movement to move from Flow to typescript. Is Flow dying?
I'd consider flow dead.
Re: Yarn's Future – v2 and beyond
#14Re: Yarn's Future – v2 and beyond
#15There appears to be a real movement to move from Flow to typescript. Is Flow dying?
Re: Yarn's Future – v2 and beyond
#16Why do programmers love error codes? As an end user, they are useless indirection to me and the only way this would even be tolerable is if the explanation was printed directly next to the error code, so why bother? Is it code quality, since you don't have to write a long error message when you emit a similar error? But doesn't that have the drawback of encouraging error code reuse when it might not be appropriate?
[append]
Thanks for the replies! I guess I could understand error codes for search ability that also provide information about the problem specifics.
Counterexample:
$ yarn add foo
Error YARN1001: Incompatible peerDependencies.
$ yarn explain YARN1001
# Some longer text about how two of my modules have
# incompatible peerDependencies
Better example: $ yarn add foo
Error Yarn1001: Incompatible peerDependencies.
* my-package@1.0.0
|-* foo@1.0.0
|-* bar@1.0.0
|-* left-pad@1.0.1 (peerDependency of bar@1.0.0)
|-* left-pad@0.9.0 (peerDependency of foo@1.0.0)
$ yarn explain YARN1001
# Some longer text about how two of my modules have
# incompatible peerDependenciesRe: Yarn's Future – v2 and beyond
#17There appears to be a real movement to move from Flow to typescript. Is Flow dying?
Does anyone know of any "third choice" around typing JavaScript? I would love to add types to my code, but I want to write "real" JavaScript: so the code I input is the code that is executed by the browser. I just want the compile step to strip away the type annotations. There was initially talk of Flow using comments to actually work without touching the source code at all, but I don't think anything came of that...…
Re: Yarn's Future – v2 and beyond
#18There appears to be a real movement to move from Flow to typescript. Is Flow dying?
Does anyone know of any "third choice" around typing JavaScript? I would love to add types to my code, but I want to write "real" JavaScript: so the code I input is the code that is executed by the browser. I just want the compile step to strip away the type annotations. There was initially talk of Flow using comments to actually work without touching the source code at all, but I don't think anything came of that...…
Re: Yarn's Future – v2 and beyond
#19Earlier quoted context omitted.
Does anyone know of any "third choice" around typing JavaScript? I would love to add types to my code, but I want to write "real" JavaScript: so the code I input is the code that is executed by the browser. I just want the compile step to strip away the type annotations. There was initially talk of Flow using comments to actually work without touching the source code at all, but I don't think anything came of that...…
TypeScript works with JSDoc annotations: https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-i...