@unclebobmartin@grhayes Hello UncleBob, following along on the links to some of your TDD kata's, i found the prime factor one. Since all prime gaps from 3 onwards are even, you can cut the number of iterations needed almost in half 🤓
candidate += (candidate > 2 ? 2 : 1)
@unclebobmartin sidenote: the collab goes faster for "collabd/reviewed" code. (re: the old saying: go alone, go faster (not reviewed), go together, go further)
@jeffrey_way@laracasts it is like subscription probably having a UserId. It shouldn't drag in the userManager just to retrieve a subscription->UserName()... maybe a paymentID, but not thru a injected paymentGateway retrieve a Subscription->paymentDetails()
@jeffrey_way@laracasts datetime->format is a string function to output internal/property datetime values. My issue is with injecting services with interfaces and methods/processes, which easily becomes nasty. Then i like to reverse responsibility and handle subscription from within command handlers
@jeffrey_way@laracasts The misunderstanding might come from a business view of "subscription" vs a programmer understanding of a subscription. Even inside one business there can be different meanings (subscribe to a newsletter, to a course or to a forum-topic)
@jeffrey_way@laracasts the question then becomes, do you really want to inject all these services (mail, payment, database, webhook) into the subscription object? Or inverse, pass the subscription object to services, as you state, "to do things with".