marlowe221

joined 2 years ago
[–] marlowe221@lemmy.world 2 points 8 hours ago

Yeah, I’ve read about the development of the ability to run TS natively in Node. It sounds really promising!

I’m not familiar with ts-node though. I’ll have to check that out.

[–] marlowe221@lemmy.world 3 points 21 hours ago (2 children)

No worries on the ranting!

In this industry where we are all a little afraid to admit that we don’t know something, it’s nice to be reminded that everyone is always learning all the time and that there’s no way any of us can know everything.

I’m enjoying the learning process, despite its paper cuts, and love where I work. I enjoy TS itself but I do wish the process of setting up a new project/config stuff were more streamlined. Maybe in the future!

[–] marlowe221@lemmy.world 2 points 23 hours ago

I’ve had pretty good experiences with it even situations with moderate data manipulation. There are some tricks you can use to engage different phases of the event loop to keep the data processing from blocking too much.

It’s still not as good as Java/C#/Go, of course, but it can help get some more performance out of Node.

[–] marlowe221@lemmy.world 7 points 23 hours ago (4 children)

Thanks for the tip! I’ll double check that when I get back to work next week.

I’ve written a lot of NodeJS apps in vanilla JS, and plenty of .NET backend stuff too. The transition to serious TS has been relatively recent. I like it alright, but dislike the added complexity that comes with all the various config files - vanilla JS has enough of that already!

[–] marlowe221@lemmy.world 2 points 1 day ago (1 children)

Oh, they are included in the build. But I still get error messages that don’t actually point to the line in the TS source file sometimes.

Maybe I have something configured wrong - TS projects always include a more config files of different kinds than I see in other languages I work in - but it happens.

[–] marlowe221@lemmy.world 2 points 1 day ago

You are familiar with NodeJS, yes? 👍

[–] marlowe221@lemmy.world 2 points 1 day ago* (last edited 1 day ago) (3 children)

Well sure. But the error messages don’t point to those, which was what had me chuckling about this meme.

[–] marlowe221@lemmy.world 48 points 1 day ago (16 children)

This happens all the time with TypeScript. The transpiled JS that actually runs will naturally have different line numbers than the TS you wrote!

To be fair, the reported line number is usually close enough that I can find the issue without much trouble.

It’s not my favorite back end language, but it’s what everyone on my team knows…

[–] marlowe221@lemmy.world 3 points 1 day ago

Hey, that reminds me of my job!

[–] marlowe221@lemmy.world 5 points 6 days ago (1 children)

Clearly the cure involves a routine, unorthodox use of the deflector dish…

[–] marlowe221@lemmy.world 27 points 1 week ago

Yes.

The purpose of technology is to improve our lives, help us overcome problems or disabilities, and make our world better.

Instead we have allowed a small group of sociopaths to turn that on its head. We now work to produce “content” for LLMs to slurp up for the purpose of creating more bullshit.

[–] marlowe221@lemmy.world 12 points 1 week ago

Present and accounted for!

view more: next ›