Search code examples
oopdesign-patternsnaming-conventions

Is any meaning difference between 'Storage' and 'Repository' in the class-naming conventions?


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? :)


Solution

  • 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..