Post AYm1Y7JITVC7lqqSTA by olivierlacan@ruby.social
(DIR) More posts by olivierlacan@ruby.social
(DIR) Post #AYm1QZXzbes91u7aOu by olivierlacan@ruby.social
2023-08-15T19:12:05Z
1 likes, 1 repeats
I'm really tired of hearing folks ramble on about how good TypeScript is (compared to what, JavaScript's subterranean bar?). What about tsconfig.json configuration files and the feverish nightmare land where Node and React intersect with TypeScript, CommonJS & ES Modules? Are we all supposed to pretend this isn't wasting years of combined human lives?Don't even get me started on the JS/TS community's knack for deleting config file comments.
(DIR) Post #AYm1QbZq3lXNKD05YW by olivierlacan@ruby.social
2023-08-15T22:42:16Z
1 likes, 0 repeats
It's also hilarious to me that the solution to a bunch of protracted compilation issues due to modules was to eventually settle with a moduleResolution config value called "Bundler". I mean you can't make that shit up.
(DIR) Post #AYm1XOsrePuHz88jA0 by seanking@kazv.moe
2023-08-16T01:57:35.014560Z
0 likes, 0 repeats
@olivierlacan Also, TypeScript is a project controlled by Microsoft. So, I'm kinda concerned about them doing what they've been doing to .NET/C# eventually.
(DIR) Post #AYm1Y2GzCfNK9Ej2fo by camertron@ruby.social
2023-08-16T01:18:19Z
1 likes, 0 repeats
@olivierlacan dude it is SO bad. Been dealing with this a lot this week and holy shit.
(DIR) Post #AYm1Y2rV0ua9yToCaO by olivierlacan@ruby.social
2023-08-16T01:22:18Z
1 likes, 0 repeats
@camertron I think the best part are the issue comments and SO posts going “add type: module” to your package.json”, “no I can’t it breaks this other CJS thing”, “ok what about Node16? ESNext??”The interplay of about 3 out of 100 config values alone are causing a perpetual pile up in this ecosystem and I guess that’s just how it goes now? So much for “hey at least we get to write JS everywhere now”.
(DIR) Post #AYm1Y3U8hFUTuJt3oW by camertron@ruby.social
2023-08-16T01:27:11Z
1 likes, 0 repeats
@olivierlacan omg yeah. The other day I wanted to write a quick node script but gave up after an hour of trying to get modules to work *at all*. After renaming the file to .cjs and then trying .mjs and then trying require... I just gave up and wrote it in Ruby.
(DIR) Post #AYm1Y4NRNdj6fplE0m by olivierlacan@ruby.social
2023-08-16T01:29:00Z
0 likes, 0 repeats
@camertron The way the lord intended. 🙏🏻
(DIR) Post #AYm1Y53cqnTEmfUulU by camertron@ruby.social
2023-08-16T01:31:19Z
1 likes, 0 repeats
@olivierlacan 😂I feel like JavaScript can get away with all this because they're the only game in town for the browser. But damn, they aren't even trying.
(DIR) Post #AYm1Y5aEtXYgPokxbE by camertron@ruby.social
2023-08-16T01:28:47Z
0 likes, 0 repeats
@olivierlacan I can't be the only person who's gone through this
(DIR) Post #AYm1Y7JITVC7lqqSTA by olivierlacan@ruby.social
2023-08-16T01:33:03Z
1 likes, 0 repeats
@camertron *throws money in WASM’s general direction*
(DIR) Post #AYmkl2JIs5pRxwNmpU by olivierlacan@ruby.social
2023-08-16T07:40:57Z
1 likes, 0 repeats
@seanking Which is?
(DIR) Post #AYmkl36vtZWmRrbQBc by seanking@kazv.moe
2023-08-16T10:24:15.195408Z
0 likes, 0 repeats
@olivierlacan Being locked down behind proprietary walls, missing a debugger, etc https://isdotnetopen.com/