Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9276941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:58:29+00:00 2026-06-18T16:58:29+00:00

I tend to do a lot with partials. They almost feel like small helper

  • 0

I tend to do a lot with partials. They almost feel like small helper classes that take some parameters and spit out view snippets.

My question is, when is it appropriate to make a separate class for a view? Would this be appropriate for something with some additional logic like a menu system that needs to be available for testing?

I have a feeling I may be overusing partials.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:58:31+00:00Added an answer on June 18, 2026 at 4:58 pm

    you can use a helper to build a single unit of display. and you can use partial to build complex unit of display.

    see Helpers vs. Partials and What belongs in a helper method?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I'm writing javascript that contains a lot of intervals, I tend to keep
I have to index a lot documents that contain reference numbers like aaa.bbb.ddd-fff. The
In my code i tend to use a lot of Flags enums that correspond
I tend to write code like the following a lot: BufferedWriter w = null;
I can imagine that in larger projects some things tend to get redundant in
I am finding I'm writing a lot of code that looks like this: <div
At the time of development we tend to put lot of comments in the
I have read a lot of topic here and people tend to store IP
It seems like EasyMock tests tend to follow the following pattern: @Test public void
I'm pretty new to C++ so I tend to design with a lot of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.