i hate the new pattern of using these magic strings everywhere. “use workflow”, “use client”, etc etc. I don’t like having custom bundler logic for my code.
Make any TypeScript function durable
11–20 of 89 posts
Re: Make any TypeScript function durable
#12Of all the syntax options they could've gone with, they settled on what I would say is arguably the worst. If you want a one-liner, decorators are widely used across different languages and Typescript supports them as well.
Re: Make any TypeScript function durable
#13At least in any other framework library I can just command click and see why things are not working, place breakpoints and even modify code.
Re: Make any TypeScript function durable
#14Of all the syntax options they could've gone with, they settled on what I would say is arguably the worst. If you want a one-liner, decorators are widely used across different languages and Typescript supports them as well.
JavaScript didn't have a lot of great options for this kind of statically-declared metaprogramming, which is why the "use X"; syntax has become so popular in various spaces. It's definitely not my favourite approach, but I don't think there's any clear "best" solution here.
Re: Make any TypeScript function durable
#15Of all the syntax options they could've gone with, they settled on what I would say is arguably the worst. If you want a one-liner, decorators are widely used across different languages and Typescript supports them as well.
Decorators don't work for functions, unfortunately, so wouldn't work in this case. You'd need to add a bunch of class boilerplate to make it work. JavaScript didn't have a lot of great options for this kind of statically-declared metaprogramming, which is why the "use X"; syntax has become so popular in various spaces. It's definitely not my favourite approach, but I don't think there's any clear "best" solution here…
Re: Make any TypeScript function durable
#16Re: Make any TypeScript function durable
#17Earlier quoted context omitted.
It's on the landing page, there is not even a standalone mode yet, so you can't use it with node.js you need to use with Next.js. All to say, it's just early alpha preview, I would wait the project to mature before considering using it anywhere.
My bad, this is open telemetry stuff to check the status of your servers, not for the vendor to slurp as much data from you as possible.
At least understand what you're looking at before getting the ick.
Re: Make any TypeScript function durable
#18Earlier quoted context omitted.
It's on the landing page, there is not even a standalone mode yet, so you can't use it with node.js you need to use with Next.js. All to say, it's just early alpha preview, I would wait the project to mature before considering using it anywhere.
My bad, this is open telemetry stuff to check the status of your servers, not for the vendor to slurp as much data from you as possible.
Re: Make any TypeScript function durable
#19I do wish that there was some kind of self-hostable World implementation at launch. If other PAAS providers jump onto this, I could see this sticking around.
Re: Make any TypeScript function durable
#20Am I stupid, or does the page not actually explain that workflow is?