You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other usecases usually include calculating a result, validation or grouping structural things (e.g. Functors (e.g. map for lists), Monads (e.g. Promises, Optionals, Streams, etc)
For terminology: https://vimeo.com/160326750
The basic idea is:
Classic use case for this is converting data (e.g. https://github.com/nextcloud/news/blob/master/lib/Service/FeedService.php#L317) which means: when converting data, split it out into a separate, one method class and inject them in the constructor (thats fine because functions suck in php)
Other usecases usually include calculating a result, validation or grouping structural things (e.g. Functors (e.g. map for lists), Monads (e.g. Promises, Optionals, Streams, etc)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: