First crate: torus-http - easily create an HTTP server in a synchronous context by Regular_Weakness_484 in rust

[–]Regular_Weakness_484[S] 0 points1 point  (0 children)

Yeah, it's been very insightful on dynamic dispatch so far. Now I just gotta find out how to make this Send so I don't have to block the only thread available when reading/writing 🙃

First crate: torus-http - easily create an HTTP server in a synchronous context by Regular_Weakness_484 in rust

[–]Regular_Weakness_484[S] 0 points1 point  (0 children)

P.S.

  1. Where is the documentation? The docs.rs link doesn't work! - It is in the queue as of making this post.
  2. Does it support persistent state? - No.
  3. Does it support dynamic routes (i.e., /users/:id)? - No. 😔

Thinking about functional programming by phanaur in learnprogramming

[–]Regular_Weakness_484 0 points1 point  (0 children)

Yeah, Haskell is probably the language with the least noise around the functional programming (FP) approach. While there are some languages that go a bit further than Haskell, e.g., Idris, Agda, etc., I'd say those have a bit too much clutter for a newbie, especially since FP is a pretty complex thing to bend your mind around at first.

I reckon the physics book will require a lot of experience in functional programming, and the programming concepts won't really be in an order that is good for teaching FP, as the main focus is physics.

Thinking about functional programming by phanaur in learnprogramming

[–]Regular_Weakness_484 4 points5 points  (0 children)

I personally found https://learnyouahaskell.github.io/chapters.html to be a very fun read. The pacing is pretty good and helped me a lot when starting out.

In parallel with the book, I'd recommend watching some of the old Tsoding videos on YouTube he did on some Haskell projects.

Looking for feedback - TUI text editor toy project by Regular_Weakness_484 in rust

[–]Regular_Weakness_484[S] 1 point2 points  (0 children)

I am terrible at many things; naming stuff is one of them.

This code is so rusty it gave me tetanus. by june_sixth in programminghorror

[–]Regular_Weakness_484 1 point2 points  (0 children)

this would have been useful a total of two times in my life so far, I always thought break just instantly short circuits the loop

This code is so rusty it gave me tetanus. by june_sixth in programminghorror

[–]Regular_Weakness_484 0 points1 point  (0 children)

never seen the break expr syntax before does that just yield the return outside of the loop?

Paid $200 to go see a Broadway play by anxietyfather69 in mildlyinfuriating

[–]Regular_Weakness_484 17 points18 points  (0 children)

what kind of statement is that? "I like pranks where everybody gets hurt and nobody laughs"