nerdblood

joined 1 year ago
[โ€“] [email protected] 1 points 1 year ago

Nice, thanks... looking into these now.

[โ€“] [email protected] 1 points 1 year ago (1 children)

๐Ÿค” I thought lazy_static was deprecated in favor of one_cell

[โ€“] [email protected] 1 points 1 year ago (2 children)

One for now, theoretically many later.

Nice I've never used Rc. Maybe now's my chance to look into it.

[โ€“] [email protected] 2 points 1 year ago

๐Ÿคฏ that's how it should be. I'm sick of shenanigans.

[โ€“] [email protected] 1 points 1 year ago (2 children)

I haven't tried it with Deno. Is it less of a pain to get started with project s that use TS than node?

[โ€“] [email protected] 4 points 1 year ago

Also, move out special types to types.rs, error types to errors.rs to keep the area with the actual algorithms more clear.

Ok this is totally something my code base needs. Very actionable feedback.

And yeah that's one of the things I love about rust; it will tell me everywhere things are out of wack. It's such a different experience from back when I had large JavaScript code bases. Make changes and pray lol.

[โ€“] [email protected] 3 points 1 year ago

This is really good to hear, I don't think I'm as far off base as I thought; maybe I've been over thinking it a bit. And thanks for that refactoring resource. I'm very big into making my TS code clean and maintainable. I'm just thrown off a bit with the new paradigm.

[โ€“] [email protected] 1 points 1 year ago

Oh wow, default is so nice. I wasn't exactly looking for this when I asked the question, but I'm glad you tipped me off to it.

[โ€“] [email protected] 1 points 1 year ago

Default could be useful here, thanks!

[โ€“] [email protected] 2 points 1 year ago (1 children)

This is a great answer, thanks. I'll have to look more into conditional compilation. That's new to me.

[โ€“] [email protected] 1 points 1 year ago

Nothing I guess. I just was thinking there would be more to it than that.

[โ€“] [email protected] 3 points 1 year ago

Thanks, yeah it felt like too many tests to keep in file. I can live with that directory approach. TY!

view more: โ€น prev next โ€บ