Skip to content

Beginner question: why would I use this vs passing dependencies in initializers? #228

Answered by mbrandonw
Pikuseru asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Pikuseru, there's no better way to compare multiple approaches to a problem than to build the same thing multiple times, once for each approach. 🙂

We have a moderately complex app called SyncUps that was built using @Dependency. Perhaps you could fork it and then demonstrate the technique you are describing? That would help you see any pros/cons, and help me understand your idea.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@mbrandonw
Comment options

@Pikuseru
Comment options

@lukeredpath
Comment options

@mbrandonw
Comment options

Answer selected by Pikuseru
@Pikuseru
Comment options

@Pikuseru
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants