[ADMIN] Please comment this post - Renaming Stored Data

Coordinator
May 9, 2014 at 7:11 PM
Since Tweetinvi 0.9 I often got messages saying User.Friends is always null.

User.Friends, Followers... are properties that allow developers to store information related with a user. The same is true for Tweets.

Do you have any suggestion to rename these properties? This idea is to let user know that they are store properties only and not some lazy-loading properties.

I was thinking of adding the postfix "Store" and have properties like : FriendsStore. I just don't like this naming very much so any suggestion is greatly appreciated!

Enjoy Tweetinvi.
Linvi
May 9, 2014 at 10:59 PM
If I didn't know any better, I might still think FriendsStore, FollowersStore, etc. are lazy loaded properties. How about User.Store.Friends, User.Store.Followers, etc?
Coordinator
May 9, 2014 at 11:21 PM
Hi,

Thank you very much for your suggestion.
I didn't think of creating a User store and I really like this idea. It breaks the law of Demeter but I currently don't see any better solution than yours.

I will wait for other suggestions but I think this is a very good solution.
Thank you again :)

Linvi