Hey there, fellow devs!
We're at a crossroads with our open-source project, Webcrumbs, and would love your perspective. We're deliberating between...
For further actions, you may consider blocking this person and/or reporting abuse
I recommend either TS with types greyed out (color-wise) in the IDE (so they don't clutter reading of the JS code), or JSDoc TS. Types are especially important for OSS libraries that others use and rely on, but beware that you might have to create some complex typings from time to time (can be time consuming, hence the DHH drama), to give your API consumers the best experience.
I think one point simply asks for static typing: the plugin interface. However this would still leave the question open JSDoc or Typescript. I think deployment is simpler when using JSDoc because it does not require a build step. But Typescript is probably easier to maintain than proper JSDoc (with its rather cumbersome syntax for more complex stuff)
Really appreciate. Cheers
Apart from the DHH drama I think the tension really is TS vs TS JSDoc.
See my comments here.
Weβll get there! Thanks, friend
Hey!
Typescript has become almost a standard nowadays. Especially if you are providing any library that other developers will use. Moreover, the typescript cons you mentioned are not so critical, let me comment on them:
Another disadvantage of typescript that you did not mention is that if you take typing seriously, you will have to think through twice as many things on the project and this will require additional costs, of course. Now itβs up to you to decide whether itβs worth investing in it.
Happy coding! :)
Thank you, my friend.