The other day I got asked a couple of questions in an email, which I said I'd answer here as others might be interested in the answers:
- Q1) Why do we put .css files in the Pages area of the databases and not in the Style Sheets area?
- Personally I prefer Pages as they are easier to edit. Style Sheet Libraries are a nice idea but not much use in practice. They're only of any use if you simply want to upload a CSS file you've had written and can't see yourself ever wanting to edit it. If you're developing your CSS in your database as you go then you should use Pages.
- Q2) Why do we sometimes put .js files in the Script Libraries area and sometimes in the Files area?
As somebody who likes to learn other platforms I know all too well how confusing it can be to try and learn from example when the examples seem to conflict with the obvious. If you were new to Domino you'd expect the Style Sheet and Script Library area to be the place to keep the respective bits of code. To see others going against this convention and without explanation or obvious reason can throw you off the scent sometimes.
Maybe newbies to Domino (if there is such a thing) need to understand there isn't really a conventional way of doing things. Lots of it is just down to how you're happy doing it. Such is Domino's flexibility.