I am making a web application (JSF) and I wonder how to structure the files. I have different resources a user can interact with such as “Questions”.
Would I make a folder named “questions” and do the following:
- index.xhtml –> Lists the questions
- add.xhtml –> add new question
- edit.xhtml –> edit question
- show.xhtml –> show question
Or would you call the files questions.xhtml, question-add.xhtml etc?
Or are both alternatives wrong?
Adding meaningful prefix or suffix is the better way in my opinion , or at least placing in meaningful folder is fine as well
adding prefix/suffix will speed up your coding (by making it easier to find/modify files in project) and will make you partners life easier…(while trying to understand an already made code)