Is it bad to have long names on _Partialviews?
Like _Header_detachable_nav, and that partial is gone have other partials _Header_detachable_nav_cart,
_Header_detachable_nav_navigation
is this bad practice, does it matter at all?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The underscore in the partial view helps to differentiate between full views and partial ones.
But more importantly, it prevents partial views from being loaded directly by their URL, which could provide some potentially ugly results! (Like no css, for starters.)
However It’s not necessary to use an underscore.
And instead of having names like
_Header_detachable_nav_cartinstead you can use camelCase like for example_HeaderDetachableNavCart