Only tangentially related, but what's the point of a static class block? What problem does it solve that's not covered by either the class constructor or a static const? Doesn't it introduce a weird (stateful!) computation that's hard to reason about? There's probably a use-case I'm missing, because intuitively I'd automatically classify it as bad a practice.
Deno 1.14
11–20 of 111 posts
Re: Deno 1.14
#12Earlier quoted context omitted.
Can you share a bit on the use case, i.e. what do you need configured? Personally, I find Deno's "zero config" approach appealing, although I do have to fight the linter's "ban-types" rule occasionally since suggested type replacements are not equivalent.
Please open an issue on denoland/deno_lint with examples so we can make the diagnostic messages more useful.
For example, constructor signature for mixins requires `any` type that conflicts with `no-explicit-any` rule. In another case, `object` cannot be replaced with `Record` when used with conditional types to mean "any non-primitive value".
Re: Deno 1.14
#13Re: Deno 1.14
#14Re: Deno 1.14
#15Only tangentially related, but what's the point of a static class block? What problem does it solve that's not covered by either the class constructor or a static const? Doesn't it introduce a weird (stateful!) computation that's hard to reason about? There's probably a use-case I'm missing, because intuitively I'd automatically classify it as bad a practice.
Re: Deno 1.14
#16Love Deno and using it as a node replacement. Fantastic work. I encourage anybody who has npm packages to move everything to deno.
Re: Deno 1.14
#17Anyone using Deno in production? Would love to hear how it's going for your team.
If you’re a hobbyist or an academic or starting a totally new project that won’t have dependencies/doesn’t need a large community of modules, then I recommend deno. Otherwise I highly recommend sticking to node until deno comes out with something to make the switch more appealing.
Re: Deno 1.14
#18Love Deno and using it as a node replacement. Fantastic work. I encourage anybody who has npm packages to move everything to deno.
I have 2 projects all in node, using express. Is there an easy way to migrate it? What happens to all the imported modules and dependencies? Can I still use express in Deno the same way?
It's a paradigm shift, so there's always going to be some friction in migration. For your express needs, check out Oak https://deno.land/x/oak@v9.0.0
Re: Deno 1.14
#19Love Deno and using it as a node replacement. Fantastic work. I encourage anybody who has npm packages to move everything to deno.
I have 2 projects all in node, using express. Is there an easy way to migrate it? What happens to all the imported modules and dependencies? Can I still use express in Deno the same way?
Re: Deno 1.14
#20Earlier quoted context omitted.
I have 2 projects all in node, using express. Is there an easy way to migrate it? What happens to all the imported modules and dependencies? Can I still use express in Deno the same way?
Probably not, but Deno has Oak, which is Express-like and the combination of those two will get you close. But most node libs are not compatible and similarly node projects.