Ryan
thathaneydude.bsky.social
Ryan
@thathaneydude.bsky.social
Dad to two awesome kids
Looks like a commercial for a new Nickelodeon show from the early 2000s and I’m digging it. 😂
December 7, 2024 at 2:43 AM
Yeah, it’s similar for sure. Being able to generate fakes off interfaces with something like github.com/maxbrunsfeld... makes it really nice and easy to fake receiver responses without needing to instantiate the struct.
December 5, 2024 at 3:30 AM
Absolutely do what’s best for you and your team. Personally I’m a fan of interfaces for two major benefits. Generating mocks for unit tests and having factories that create variations of the interface implementation based on feature flags or other context. The idiomatic finger wagging does get old.
December 3, 2024 at 2:20 PM