Results 1 to 3 of 3
Like Tree2Likes
  • 2 Post By JosAH

Thread: Decomposition of subject area

  1. #1
    ruikarikun is offline Member
    Join Date
    Dec 2016
    Posts
    1
    Rep Power
    0

    Default Decomposition of subject area

    Hi.
    Can you recommend any books or other tips about how to decompose subject area for applications (currently using java I mean OOP).

    I read about SOLID and patterns, but have problems with these questions when I'm trying to create an class etc:
    1. What methods I need here.
    2. Where exactly I need interface and where abstract class.
    3. Links between classes. How to make it right. (It is most hard for me)
    4. Thinking about future modifications and how to write code with this thinking.



    I understand these questions seems about pattern/base logic, maybe I need more detailed examples.

    In the Bruce Eckel's book there's a quote - "However, other people may not get the big picture concepts until they’ve seen some of the mechanics first; these people may become bogged down and lost without some code to get their hands on. " It's about me.

    Any suggestions?

  2. #2
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    6

    Default Re: Decomposition of subject area

    Learning by doing seems to make sense in your case. How about the books that you have already, don't they have some examples that you could reiterate in your own system?

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: Decomposition of subject area

    Do you know how to play the CRC (Classes Responsibilities Collaboration) Game? Given a problem, invent the 'actors' of a play; the 'actors' (those are the classes) can say things to other classes or ask them things. If you manage to come up with a set of actors and the things they (have to) say, you've come up with a certain solution to the problem; the things they say are the methods of the classes; give those actors a name that corresponds to their capabilities; let your imagination do the hard work and don't be afraid of good old pencil and paper.

    kind regards,

    Jos
    SurfMan and ruikarikun like this.
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Two Thread To Calculate Area Rectangle And Area Triangle
    By muhammad naim in forum Threads and Synchronization
    Replies: 2
    Last Post: 08-28-2013, 05:08 PM
  2. [Ask] Good Decomposition Technique
    By YLTO in forum New To Java
    Replies: 2
    Last Post: 07-07-2011, 10:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •