Fellow devs - if you have a "repository"-like object that only has a single implementation do you do this? If so - why?pic.twitter.com/GRogvFc7qu
Możesz dodawać lokalizację do Twoich Tweetów, jak miasto czy konkretne miejsce, z sieci lub innych aplikacji. W każdej chwili możesz usunąć historię lokalizacji swoich Tweetów. Dowiedz się więcej
The inevitability depends on scale I guess. If you're certain you'll never need a second repo then don't bother.
The only harm I can see in creating the interface later is that it'd mean a change to a bunch of unrelated code. You'd have to update other places to rely on the new interface instead of the class. I guess it's planning for a possibly complex future or thinking YAGNI.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.