|
|
|
|
|
by treis
1340 days ago
|
|
> just a function that takes in the internal state (including the db contents) as an input No Rails (or other) app has a function like this where the entire contents of the DB are passed in as a parameter. And you can't handwave complex internal state as simply another parameter to a function because that complex state can change. That makes the function no longer solely dependent on the parameters passed in. Its behavior is dependent on the parameters passed in plus any changes made by other processes to the complex internal state. |
|