News for hackers. Stuff that matters.
Re:JavaScript Structs by 7bit on Friday October 11, 2024 @04:47AM (#41807603)
Types are great, but I prefer Not having to transpile everything. Stepping throught the TS Code with a Debugger ist non trivial.
Re:JavaScript Structs by nolist_policy on Friday October 11, 2024 @07:51AM (#41808656)
You can use 90% of typescript from pure JavaScript: https://www.typescriptlang.org/docs/handbook/jsdoc-supported...
Re:JavaScript Structs by mightyham on Friday October 11, 2024 @07:52AM (#41808668)
I'm not sure what setup you have, but debugging TS code is pretty trivial. I use vite for all my projects at work and when running the dev server there is seamless integrations with the debugging dev panel in Chrome or Firefox.
Re:JavaScript Structs by klysm on Friday October 11, 2024 @09:23AM (#41809272)
Source maps solve this, it’s not a problem in practice