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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:10:47+00:00 2026-05-18T02:10:47+00:00

My program is going to build me lots of homes. The specification for each

  • 0

My program is going to build me lots of homes. The specification for each home is based upon a defined blueprint, and each home must be constructed in a specific order. I imagine that I will have a construction crew. This crew can do everything,

 class crew

    blueprint     

    fn frame_house
        fn get_wood
          fn_drive_to_store
        fn do_framing
        get_wood
        do_framing

    fn carpet_house
        fn buy_carpet
        fn install carpet 
        buy_carpet
        do_framing

 -

and then i can give them the stack of blueprints and tell them to get to work…

each blueprint
  laborers = new crew(blueprint)
  laborers.frame_house
  laborers.carpet_house
-

Or do I want to my laborers to be more specified?

class FrameCrew inherits Crew
      fn get_wood
        fn drive_to_store
      fn do_framing
        get_wood
        do_framing
-

and then I can….

foreach blueprint
   #send crews to work with the blueprint

Or I could them in a project that has both a blueprint and a constructor acting as a foreman?

class Project

   blueprint

   fn construct
      #create and deploy crews

   class FrameCrew
   class CarpetCrew

and then just Project each blueprint.

It seems that the way I am thinking about this, I will end up with a program that looks like this:

  -
   - 
    -
     - 
      - 

  -
   - 
    - 
     -
      - 

 -
 -

with each inner function relying upon the completion and results of the function before it, and not really needing to complete each task more than once (don’t need a home framed twice). To me, this appears really not much different that a procedural style, except for the fact that I define and call the functions in different places, which just seems like extra work. I guess I’m asking if there is a way to build an object-oriented system that offers a decisive advantage (organization, ease of use, flexibility, etc) over a procedural system? I am very confused in regards to this matter. I had started the program in a procedural fashion, and it quickly became very hideous. I started to rework it in (what is probably my poor idea of) object-oriented fashion, and it still seems to be the same sort of hideous. If anyone can offer any advice on how to organize these projects in a more manageable fashion, I would be much obliged.

thanks kindly,
brandon

  • 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-18T02:10:48+00:00Added an answer on May 18, 2026 at 2:10 am

    I see good OO design as a way of getting structure around hideousness/complexity. However if a problem is complex then you can’t expect to get rid of complexity, just manage it better.

    Some aspects, such as single responsibility principle, allow you to decompose the problem. So by separating frame work from carpet work you have a win in that each piece is easier to understand, but it’s true that good procedural code can also achieve that.

    OO stuff tends to get more interesting in two ways. First there are better structuring techniques. Classes have natural information hiding, we have private data and methods. So the details of what it means to frame a house are hidden inside that class. You can achieve things along these lines in procedural languages, but it’s usually much effort.

    Second you’ve got the possibility of using polymorphism, different implementations of the same responsibility. This pays off in the future when you need to flex things, for example Carpeting is really a special king of Flooring, so you might introduce Tiling too.

    The overall payoff in OO tends to be seen in future flexibility and maintainbility.

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

Sidebar

Related Questions

For a hobby project I'm going to build a program that when given an
I'm trying to take up node.js for a comet-based program. Essentially I'm going to
My friend and I are working on a program. This program is going to
I am self- learner to android, Assume an android program is going to display
I am going to program a GUI under windows (will be about 10,000 line
I have a python program that is going to eat a lot of memory,
I am going to run a Matlab program in a remote Linux server using
I was going to use the program called Tiled , but decided not to
I am going through a socket program. In it, printStackTrace is called on the
I'm going to need to write a program that takes a list of persons

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.