mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.5K
active users

#observable

0 posts0 participants0 posts today

#Swift #Observable

Is there any good practice for working with Observable and protocols?

I’d like to conform a protocol to Observable (so I could mock it in tests and previews, and pass around only protocol types in most of my code, not concrete types), but Observable macro seems to be geared towards working with concrete types

So what are your best practices and thoughts on Observable vs mocking/testing

Observable – удобный state-manager

Я вас понимаю. Да – еще один. Но давайте посмотрим, вдруг правда? Давайте определимся с тем, что такое удобно. Конечно, у нас разные представления об удобстве, поэтому я опишу свои с примерами из api react:

habr.com/ru/articles/860820/

ХабрObservable – удобный state-managerЯ вас понимаю. Да – еще один. Но давайте посмотрим, вдруг правда? Давайте определимся с тем, что такое удобно. Конечно, у нас разные представления об удобстве, поэтому я опишу свои с примерами из api...