For example, I usually name SessionStorage but ProductRepository... It is something mental I couldn't explain to myself. Does anybody understand the meaning of suffixes Repository and Storage? :)

shareimprove this question
   
The terms are effectively synonyms. It is even common for people to talk of a "Storage Repository." So any subtle way that you plan to distinguish them is going to be completely opinion-based. Pick the name you like best; be sure to document the purpose of the class. – Cody Gray Feb 20 at 11:04

I guess there is no difference in that.

Think about naming for a while and you may figure that it might be important to name things containing equal concepts equally.

So if there's no conceptual difference you should go for either Storage or Repository..

shareimprove this answer






































띠용 영어권 애들도 서로 물어봄

완전히 같은 으미라고?

그렇다면 짧은 storage로 간다!