little_ferris

joined 3 months ago
[–] [email protected] 2 points 2 months ago

I would look into queues and a background task (with a concurrency of around 8 to leave enough server resources for other features) for heavy tasks like video processing. You can also make an API that reports progress to an user.

queued > generating (10%).. > done etc.

[–] [email protected] 2 points 3 months ago

Woah. That's quite interesting. I didn't know that.

[–] [email protected] 3 points 3 months ago (3 children)

Yea it's like when we writeSome(2). It's not a function call but a variant of the Option enum.

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago)
[–] [email protected] 6 points 3 months ago (4 children)

Yeah I don't mean just terse functional idioms. Any programming technique that blew your mind the first time you came across it would qualify.

66
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

If we were to create a Rust version of this page for Haskell, what cool programming techniques would you add to it?

[–] [email protected] 2 points 3 months ago

All your arguments can be applied when comparing ts to js. You can just use the succinct and readable js. Why waste time dealing with this type is implicitly any?

Get things done with js and chill.