12

I've used several IDEs and created several default projects. Upon creation, I'll find folder structures created for me. Sometimes I'll see a Resources folder, sometimes an Assets folder, and sometimes both. Is there actually a (standard) difference?

14

Most of the time I would consider them synonyms. They both serve as valid places to store non-source code items.

When both appear in the same project, the only difference I can come up with

  • Resource - Configuration files, something that has code or markup in it
  • Asset - Images, video, other things that aren't code, markup, or configuration. Think very static

I will say though that the difference is minor and outside of a few circumstances they should be considered synonyms.

  • In Unity custom C# scripts is in an assets folder if I'm not mistaking. So the difference depend on who you're asking. – vallentin Nov 13 '16 at 23:55
1

It's a just a difference in terminology. In this context assets are the non-source code resources you use in your solution.

We follow a /res/ name convention, which typically stores javascript, css, images, and more. Javascript and CSS are source code resources, so assets is more concerned with media (images, video, documents) etc. a subset of resources, if you will.

  • 1
    What about in the context of a video game? You might attach an image to a "GameComponent" as a Sprite. Now, it's being used in your solution, but it's still static content. What should it be called? – Olson.dev Aug 11 '11 at 23:59
-2

I found the php framework -- Laravel use resources folder as front-end folder. assets as subsets of resources to store the source code of js and css.

Not the answer you're looking for? Browse other questions tagged or ask your own question.