58
all 50 comments
sorted by: hot top new old
[-] alokir@lemmy.world 50 points 3 years ago

The title makes it seem like it's a wide spread thing in the industry but according to the video it's 3 frameworks.

Yeah, it's additional work but I've found that really convoluted or complex type definitions usually mean you should consider refactoring. Of course this is a bit different when it comes to developing frameworks where you might want to support a bunch of different use cases.

Maybe I'm biased because I've been using TS ever since it first came out.

[-] jeremyparker@programming.dev 9 points 3 years ago

And Rich Harris (Svelte) said, it's an issue for people in his position, aka, people making tools for developers - he fully expects and respects that the end users (developers using those tools) don't really experience the downsides.

That said, I feel like we're seeing a lot of versions of complaints about how big the stacks are getting, how big the foundation is that we "need" just to get started. That desire for minimalism is core to the developer mentality imo, it makes us good at our jobs. I think we're going to see more paring down and culling in the coming months/years.

And once again, clickbait YouTuber spreading bullshit appears

[-] ck_@discuss.tchncs.de 24 points 3 years ago

Clickbait - The silent killer

Soon on Netflix (probably)

[-] MyNameIsRichard@lemmy.ml 6 points 3 years ago

You won't believe how many people watched it!

[-] PipedLinkBot@feddit.rocks 7 points 3 years ago

Here is an alternative Piped link(s): https://piped.video/watch?v=5ChkQKUzDCs

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

Nah. Waste of time imo

[-] Templa@beehaw.org 4 points 3 years ago

I never met someone that actually used Typescript in a professional setting saying they dislike it. It makes your life easier and you can still have parts of your project using regular JS.

[-] scorpionix@feddit.de 4 points 3 years ago

I haven't dealt with a larger JS/Node Project in a while, but I like this approach to using TS features in JS.

[-] cactusupyourbutt@lemmy.world 9 points 3 years ago

so he does all of this because he dislikes transpiling because supposedly it makes debugging etc harder? does he know about sourcemaps?

he also says he doesnt like type information in his code, so he adda them as comments. the type information is still there, how is this an improvement?

[-] scorpionix@feddit.de 2 points 3 years ago

The issue with transpiling is that the code that's running in production is not necessarily the one that's been tested. A source map doesn't fix that.

[-] atheken@programming.dev 6 points 3 years ago

I loathe this line of reasoning. It's like saying "unless you wrote assembly, compiling your code could change what it does."

Guess what, the CPU reorders/ellides assembly, too! You can't trust anything!

[-] pivot_root@lemmy.world 4 points 3 years ago* (last edited 3 years ago)

Haha, what is this, the 90s?

Assembled instructions aren't even the lowest non-hardware stage in instruction execution. There's proprietary microcode sitting a level below your typical x86 ISA.

And even then, what if—God forbid—the hardware has errata. A line has to be drawn somewhere between trusting that what you write is logically correct at all stages below it. If someone is unable to trust that the environment they wrote code for works, they better start learning how to create PCBs and writing for FPGAs.

[-] atheken@programming.dev 3 points 3 years ago* (last edited 3 years ago)

🙈🙉🙊

I know, but I didn’t want to scare the children.

I also chose to pretend it’s just little gnomes moving the bytes around. Less magic.

[-] pivot_root@lemmy.world 1 points 3 years ago

What are electrons, but a miserable pile of little magic gnomes? But enough talk... have a upvote!

[-] pivot_root@lemmy.world 2 points 3 years ago

Unless someone is using some language extensions, transpiling from TS to an ECMAScript module using the ESNext target merely drops the type annotations.

If not running the exact same code being developed is an issue, it's an easy fix.

[-] Miaou@jlai.lu 1 points 3 years ago* (last edited 3 years ago)

Ugh? Why shouldn't it be the same code?

[-] scorpionix@feddit.de 1 points 3 years ago

Because Browsers can't run Typescript, they run JavaScript. That's why the intermediate conversion step isneededd.

[-] Miaou@jlai.lu 1 points 3 years ago* (last edited 3 years ago)

But your tests are running on the compiled code too. Nothing can be tested but handwritten assembly, with such approach

[-] plistig@feddit.de 4 points 3 years ago

That approach was mentioned in the video.

[-] iFarmGolems@lemmy.world 4 points 3 years ago

I do this daily and believe me when I say that I'd trade my kidney for the ability to use TS natively. This looks good on paper but jsdoc notation has lots of flaws and you literally can't do some things with it. Also, it doesn't check if the function actually does the thing you described so it needs manual review every time it's changed.

[-] ComeSweetDeath@programming.dev 1 points 3 years ago

good. typescript has always caused us more headache than it worth in all my projects. I bill my clients extra for it if they make me work on it.

this post was submitted on 08 Sep 2023
58 points (70.7% liked)

Programming

28377 readers
467 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS