I'm so scared of learning Javascript, I'd rather Fitz around with nbb (a highly experimental clj->node transpiler(?)) to attempt to build a matrix bot, than just learn js...
Conversation
Notices
-
ߋߡۺ৩֎ (y0x3y@hackers.town)'s status on Friday, 08-Jul-2022 01:02:54 UTC ߋߡۺ৩֎ -
ߋߡۺ৩֎ (y0x3y@hackers.town)'s status on Friday, 08-Jul-2022 01:02:47 UTC ߋߡۺ৩֎ @borko also is one thing to understand the language constructs, and another to know browser apis/etc
Santa Claes 🇸🇪🇭🇰🎅 likes this. -
ߋߡۺ৩֎ (y0x3y@hackers.town)'s status on Friday, 08-Jul-2022 01:02:48 UTC ߋߡۺ৩֎ @borko is it? there's like *so* much shit in js, Lua is so straightforward
Santa Claes 🇸🇪🇭🇰🎅 likes this. -
Borko (borko@mastodon.social)'s status on Friday, 08-Jul-2022 01:02:54 UTC Borko @y0x3y If you know Lua it's basically the same.
-
Santa Claes 🇸🇪🇭🇰🎅 (clacke@libranet.de)'s status on Friday, 08-Jul-2022 10:21:07 UTC Santa Claes 🇸🇪🇭🇰🎅 @borko @y0x3y I wouldn't say TypeScript is in any way easier to learn than JavaScript. First you need to learn JavaScript and then TypeScript adds a whole new layer.
I do enjoy using it for large complex applications far more than I would plain JavaScript, but that's because I made the investment to learn and use it and that's paying off.
For faffing about and finding things out TS is absolutely hopeless and I'm finding myself converting some key code to node-compatible JS so I can just explore things in the node REPL. -
ߋߡۺ৩֎ (y0x3y@hackers.town)'s status on Friday, 08-Jul-2022 10:21:08 UTC ߋߡۺ৩֎ @borko that's reassuring, thank you :)
-
Borko (borko@mastodon.social)'s status on Friday, 08-Jul-2022 10:21:08 UTC Borko @y0x3y btw better start with TypeScript - it will be much easier to learn, because of the IDE and also that's what almost all people use these days.
-
Borko (borko@mastodon.social)'s status on Friday, 08-Jul-2022 10:21:09 UTC Borko @y0x3y Well, there are many features that almost no-one uses, the core is the same. The browser is a huge rabbit-hole, indeed
-
Santa Claes 🇸🇪🇭🇰🎅 (clacke@libranet.de)'s status on Saturday, 09-Jul-2022 03:08:52 UTC Santa Claes 🇸🇪🇭🇰🎅 @borko @y0x3y I have tried ts-node. It's too strict and doesn't allow me to be productive at all, it just blocks me every step of the way. In the REPL I'm not writing production code, I'm exploring!
Maybe there are ways to make it a node REPL that also understands ES2017+ and TS but lets me just call things, but I haven't explored the configuration much, it was easier to just drop down to JS for the exploration part. -
Borko (borko@mastodon.social)'s status on Saturday, 09-Jul-2022 03:08:53 UTC Borko @clacke @y0x3y Well, that's obviously true, but even if you don't know TS (or JS) you can launch the compiler write JS and get better error messages, type inference and IDE support for free.
For your other point you can run TS in node with ts-node.
-