News for hackers. Stuff that matters.
Re:Why Reliability Demands Functional Programming by yobbo on Sunday December 28, 2025 @04:00PM (#46414451)
Db access in rust typically needs some sort of handle and a mutex. Limiting access to the handle makes the rest of the code pure with respect to the db. The handle plays a similar role to the IO type.

Actor-like patterns makes this nice. Message-objects can be passed to/from a module with db-access or other io.

Re:Why Reliability Demands Functional Programming by kephasp on Sunday December 28, 2025 @05:53PM (#46415343)
How can you prevent code from creating a handle in a new place?
Re:Why Reliability Demands Functional Programming by yobbo on Sunday December 28, 2025 @11:53PM (#46417590)
You can limit access to your db credentials. But other code can still launch missiles etc.