Squidward Tentacles meme format. Top panel shows Squidward looking happy while setting up a beach chair, with the text 'WANT TO CONTRIBUTE TO AN OPEN SOURCE PROJECT I USE AND APPRECIATE'. Bottom panel shows Squidward looking sad and disappointed, folding up the chair and going back inside a building, with the text 'WRITTEN IN JS'.
you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 11 months ago (9 children)

What do you think of JSDoc? As someone who knows neither I find the idea of no required transpilation very appealing, while still getting the TS ecosystem tools.

  • source
  • parent
  • hideshow 9 child comments
  • [–] 4 points 11 months ago (6 children)

    JSDoc is much more cumbersome than using TypeScript. That's it. It clutters the code in a way that TypeScript somehow avoids. TS types are smoothly integrated in the code itself, IMO. Not as much the case with JSDoc.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 4 points 11 months ago (5 children)

    Thanks! As a hardware guy it'll be a long time before I do anything with this information. Nice to hear the opinions of actual Devs.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 11 months ago (1 child)

    I suspect most Lemmy users hating on JS haven’t done much professional JS work. Especially these days with TypeScript and all the modern conveniences.

    I’m curious, what kinda hardware do you work on?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 11 months ago (2 children)

    Ah alright 🙂 My pleasure! Yeah I wouldn't even consider JSDoc if I had the choice of TypeScript. I even did some years of Advent Of Code in TypeScript. It's performant enough and simple to employ some kind of quasi functional programming style with it. I think it's great.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 11 months ago (1 child)

    I think Rich Harris famously migrated Svelte from TypeScript to JSDoc, while still supporting TypeScript via JSDoc. I don’t use Svelte, so I have no idea how well this works in practice. However, Rick Harris seems smart to me, unlike other overly opinionated devs like DHH. I still wouldn’t use JSDoc over TS, but I guess if it works for your project, who cares. What matters is that we all remember the one true enemy, DHH

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 11 months ago

    I would actually love to hear the rationale behind migrating from TypeScript to JSDoc. Mind boggling to me.

    Especially nowadays when there is promising work towards very fast, Rust-based TypeScript tooling, which web devs are in love with.

    So yah, very interesting.

    But yeah, DHH 🖕🖕

  • source
  • parent
  • [–] 3 points 11 months ago (1 child)

    Why is transpilation unappealing to you?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 11 months ago

    Being honest, I'm an outsider looking in. Most likely these things are solved problems, but alternates are always interesting to hear insider opinions on.

    Sounds like it's developer experience Vs required post processing in this case, which is a reasonable tradeoff to think about

  • source
  • parent