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 5941593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:07:55+00:00 2026-05-22T16:07:55+00:00

I have inherited a massive system from my predecessor and I am beginning to

  • 0

I have inherited a massive system from my predecessor and I am beginning to understand how it works but I cant fathom why.

It’s in java and uses interfaces which, should add an extra layer, but they add 5 or 6.

Here’s how it goes when the user interface button is pressed and that calls a function which looks like this

foo.create(stuff...)
{
    bar.create;
}

bar.create is exactly the same except it calls foobar.creat and that in turn calls barfoo.create. this goes on through 9 classes before it finds a function that accessed the database.

as far as I know each extra function call incurs more performance cost so this seems stupid to me.

also in the foo.create all the variables are error checked, this makes sense but in every other call the error checks happen again, it looks like cut and paste code.
This seems like madness as once the variables are checked once they should not need to be re checked as this is just wastinh processor cycles in my opinion.

This is my first project using java and interfaces so im just confused as to whats going on.

can anyone explain why the system was designed like this, what benefits/drawbacks it has and what I can do to improve it if it is bad ?

Thank you.

  • 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-05-22T16:07:56+00:00Added an answer on May 22, 2026 at 4:07 pm

    I suggest you look at design patterns, and see if they are being used in the project. Search for words like factory and abstract factory initially. Only then will the intentions of the previous developer be understood correctly.

    Also, in general, unless you are running on a resource constrained device, don’t worry about the cost of an extra call or level of indirection. If it helps your design, makes it easier to understand or open to extension, then the extra calls are worth making.

    However, if there is copy-paste in the code, then that is not a good sign, and the developer probably did not know what he was doing.

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

Sidebar

Related Questions

I have inherited a system with a number of servers, but I have never
We have inherited a legacy system for reading to and from meter guns. This
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I have inherited work from a previous employee. The issue I'm having is a
I have inherited a few programs from a previous developer who was a little
I have inherited a piece of Javascript that uses the Google Feed API. It
I have inherited some code from a guy whose favorite past time was to
I have inherited a Websphere Portal project that uses Hibernate 3.0 to connect to
I have inherited a site which uses a flash ui with a .net 2.0
I have inherited an Actionscript file from an old project and I've been told

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.