3 ms·
Also you don't write code that your processor executes and, at best, you use a layer of complexity known as assembly language. That's a shame!
by rezo2 3y ago
Also you don't write code that your processor executes and, at best, you use a layer of complexity known as assembly language. That's a shame!
- zogrodea 3y agoI could copy and paste JS code into a REPL/browser console to find bugs/REPL-basee development, but that won't work for Typescript. Debuggers take some more time to set up too. More complex than other typed OOP languages like C# or Java which don't have these steps.
- com2kid 3y agoI got sick and tired of running code in the debugger just so I could see what fields an object even has. Or even worse, what fields an object has, at what points in time, as fields can of course be added and removed whenever. Just, like, no. Also Typescript debugging is no harder than JS debugging, setup the source maps once and it works, same as setting up debugging symbols in C#, except Visual Studio typically does that for you. If you want to debug C# code running on a web server (which you can totally do! It is an amazing feature!) you'll need to provide Visual Studio with a link to the symbol files yourself, no different than Typescript and source mappings.
- acdha 3y ago… and that's why decades of work went into things like making better debugging and analysis tools, things like symbol files, etc. One of the appeals of the web was that you didn't need to deal with that but using a compiler of some sort makes that necessary again. It mostly works, most of the time, but it's never been that hard to run into some case where it doesn't. I don't think it's a deal breaker but I do consider it legitimate for someone to say they don't get enough benefit to be worth it.
- rezo2 3y agoModern web requires compiler/bundler/minimizer for js code any way, whether you use typescript or not. And this will probably never change. Rather, the web will move to use of something like webassembly.
- acdha 3y agoThat’s not true in general: the modern web is quite capable with native browser functionality and many apps don’t need more. Tools like React do but that’s because they’re designed around IE6, which was a very different era.
- rezo2 3y agoCan you show me few examples of production apps in wild web which use only native js?