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

  • Home
  • SEARCH
  • 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 8303141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:27:17+00:00 2026-06-08T17:27:17+00:00

I have class object ServerUser . the serverUser be considered as shared part and

  • 0

I have class object ServerUser. the serverUser be considered as shared part and it has two sub-class SSHUser and FTPUser. the SSHUser only provide support for SSH package and FtpUser for FTP package only. So should I place the sub-classes(ftpUser and sshUser) into the same package with serverUser or different package accoring to functions? any rules?

From my view, I think should place the sshUser and ftpUser to ssh module and ftp module due to the subclasses isn’t be shared, but it is really hard to navigate. place in one package is easier to navigate and keep code simplier? So which is better? any regular rules?

this quesion is similar with hwo to split packages for exception class and its’ subclasses when subclass not be shared ? all in one package or other styles?

  • 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-08T17:27:19+00:00Added an answer on June 8, 2026 at 5:27 pm

    It’s ultimately up to you – you have quite a lot of flexibility in terms of how you structure your code into packages.

    Some options to consider:

    • Package related classes together – i.e. put the different kinds of user in the same package. It can potentially keep your source tree simpler and easier to navigate if you put all the different kinds of User classes together, e.g. if you are refactoring user handling functionality.
    • Package independent features together – i.e. keep all SSH realated classes (including the SshUser) in the server.ssh package. In this way you treat the server.ssh almost as if it was an independent module containing all SSH-specific functionality.

    There’s no significant technical reason to prefer one of the other, so it really depends on which you think will make your code base more manageable and easier to maintain.

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

Sidebar

Related Questions

I need to return two values at a time, so I have: class IterableObject(object):
I have this class: class View(object): def main_page(self, extra_placeholders = None): file = '/media/Shared/sites/www/subdomains/pypular/static/layout.tmpl'
Say I have a class object named test. test has various methods, one of
If I have a class object A, and it has properties such as a0,
We have the Class object (an object that reference a Class) so you can
I have a class constructor that expects a reference to another class object to
I've got the class object for an enum (I have a Class<? extends Enum>
Basically I have some class objects, each with three properties. Once one class object
This is a best practices question Let say, I have a class object, like
I have an Employee class object that I am calling from my Login.aspx page's

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.