How to see which methods/classes are important?

Hi Everyone,
I am a beginner writing one of my first applications and I have a very newby question. How do I organize and manage many methods (and classes) to see which are the important ones and which are not?
The questions arised for me because I noticed that I am a bit reluctant to introduce new helper private methods in a class, because I fear there would be too many methods and I couldn’t handle/oversee them... I know it’s probably very wrong and stupid. That’s why I would really like to put it right in me.
So for example I create a class with a few public methods that are of course the most important part of the class. Those public methods need some more private methods that still do something important and maybe complex thing. But then I stilll need more methods to make clear code in the previous methods. Finally I end up with 20-30 methods in a supposed to be simple class. If I just look into it in Eclipse I have to scroll up and down a lot and even in the package explorer I can’t tell the importants methods apart from the rest. Is this normal?* (Please confirm it is; it would bring relief to me :))
I thought some kind of method hierarchy shown in the package explorer and expressed in the indentation of the code would help. It would be based on the call hierarchy, but I realize that may be ambiguous. Still, do you know if there is any tool, plugin, solution for this?
I mean something like this:
SomeClass:
..-veryImportantMethod
....-importantMethod
....-imprtantMehtod2
........-method
........-method2
........-method3
............-reallyNotImportanMethod
The same thing goes for classes. I start with a few important ones and introduce many less important later. I guess I can’t organize them into different packages based on importance because packages are not for that. It’s just looks strange for me to see a small unimportant helper class opened in the tab next to my main delagator class. (I'm not sure I know correclty what delegator means but that's not important at the moment :))
I am really just a beginner (needless to say probably :)) but I think it would be easier to intellectually manage the code if there would be some importance hierarchy. It doesn’t even have to be unambiguous as it would only be a way to display the code by the IDE; it wouldn’t affect the program in any way.
If you have any comments about why this whole thing is not important “because when you write your code..... “ or why I am totally lost and wrong here; I would really appreciate that as well :)
Thanks in advance,
lemonboston

lemonboston wrote:
Hi Everyone,
I am a beginner writing one of my first applications and I have a very newby question. How do I organize and manage many methods (and classes) to see which are the important ones and which are not?
The questions arised for me because I noticed that I am a bit reluctant to introduce new helper private methods in a class, because I fear there would be too many methods and I couldn’t handle/oversee them... I know it’s probably very wrong and stupid. That’s why I would really like to put it right in me.
So for example I create a class with a few public methods that are of course the most important part of the class. Those public methods need some more private methods that still do something important and maybe complex thing. But then I stilll need more methods to make clear code in the previous methods. Finally I end up with 20-30 methods in a supposed to be simple class. If I just look into it in Eclipse I have to scroll up and down a lot and even in the package explorer I can’t tell the importants methods apart from the rest. Is this normal?* (Please confirm it is; it would bring relief to me :))
I thought some kind of method hierarchy shown in the package explorer and expressed in the indentation of the code would help. It would be based on the call hierarchy, but I realize that may be ambiguous. Still, do you know if there is any tool, plugin, solution for this?
I mean something like this:
SomeClass:
..-veryImportantMethod
....-importantMethod
....-imprtantMehtod2
........-method
........-method2
........-method3
............-reallyNotImportanMethod
The same thing goes for classes. I start with a few important ones and introduce many less important later. I guess I can’t organize them into different packages based on importance because packages are not for that. It’s just looks strange for me to see a small unimportant helper class opened in the tab next to my main delagator class. (I'm not sure I know correclty what delegator means but that's not important at the moment :))
I am really just a beginner (needless to say probably :)) but I think it would be easier to intellectually manage the code if there would be some importance hierarchy. It doesn’t even have to be unambiguous as it would only be a way to display the code by the IDE; it wouldn’t affect the program in any way.
If you have any comments about why this whole thing is not important “because when you write your code..... “ or why I am totally lost and wrong here; I would really appreciate that as well :)
Thanks in advance,
lemonbostonI think you would benefit from this http://en.wikipedia.org/wiki/Domain-driven_design

Similar Messages

  • Help Determining Which Methods/Classes Are Being Used

    Hello,
    I'm having issues with my company's Java application and because I've luckily narrowed the classes down to a meager 30+ I need some help pinpointing my problem.
    I realize there are a lot of Java monitoring applets/applications and some are deployment-specific but I need something very detailed-- I haven't found the features I need.
    Specs:
    Jrun4, Java 1.4, Windows Server 2003
    I would like to have a monitor that tells me exactly (real-time) what classes, methods, variables, etc. are being called in real-time. Looking at the JRun launcher console for one process gives me this:
    Generating report:quadbase.reportdesigner.ReportAPI.QbReport with export type:PDF
    01/16 14:05:33 error Software caused connection abort: socket write error
    java.net.SocketException: Software caused connection abort: socket write error
            at java.net.SocketOutputStream.socketWrite0(Native Method)
            at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
            at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
            at jrun.servlet.io.MetricsOutputStream.write(MetricsOutputStream.java:75)
            at java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)
            at jrun.servlet.http.WebOutputStream.write(WebOutputStream.java:64)
            at jrun.servlet.file.FileServlet.pipeData(FileServlet.java:419)
            at jrun.servlet.file.FileServlet.service(FileServlet.java:254)
            at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
            at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)This is cute, but not really helpful. I would like to determine what was passed to the process, from where and what went wrong.
    For example,
    Instead of this:
    Generating report:quadbase.reportdesigner.ReportAPI.QbReport with export type:PDF
    01/16 14:05:33 error Software caused connection abort: socket write errorI would get something like this:
    Generating report:quadbase.reportdesigner.ReportAPI.QbReport with export type:PDF
            Page variables: test.jsp ($var1= "I'm"; $var2= "Going"; $var3="To"; $var4="Break"; $var5 = null)
            Calling: test2.jsp
            With: jrun.bin.db.foo.Bar();
    01/16 14:05:33 error Software caused connection abort: socket write error
            Problem: $var5 = null;Sorry if I'm rambling, I just want to know what is where and who it's calling when it breaks. Then I could deduce which class, what variable, what page, etc. My application is very complicated and seemingly mundane changes can throw it all off.
    Any ideas?

    We'll look into usage tracking. We're on the standard edition, so I'm not sure if it's available. Also, some of these reports may be quarterly -- so there may be a long wait to see if the view is used and I need to know fairly soon. (If it's not used, it saves us some work in a project transition going on.)
    I certainly don't understand the underlying structure of the product, but it seems like there should be some way to determine if a view is used by a report. I apologize if I'm not using the correct terminology. Thanks for your help -- we'll keep looking into it.

  • How to see which company codes are affected by a WT

    Hello Community,
    Hope you all are doing well, I would like to consult you because I have this situation, I want to know what company codes are affected by a particular WT in an specific country, is there any report or Transaction or do you know a way to do it? I tried by launching the WT report in a large period for country area with the wt that I want to check but the problem with this is that it may exclude a company code that can have the wt active but was not generated under the period. Please your assistance.
    Thanks in advance for your time

    Efrain,
    Not exactly sure your requirement, however there is a transaction code PC00_M99_DKON which will show you the wage assignment. On the selection screen enter your country code as 10 if running for USA and the wage type. Execute it.
    When you run it for a particular wage type and expand the results 'source system' then you will see the associated Company code for which the wage type is applicable.
    Hope it helps you.
    Thx,
    Ashish

  • In SQL Trace how to see which statement getting more time .

    Hi Expart,
    In SQL Trace (T-code ST05) . I am running the standard transaction . how to see which statement
    running more time and less time . suppose one statement running more time so how resolve the
    performance .
    Plz. reply me
    Regards
    Razz

    > The ones in 'RED' color are the statement which are taking a lot of time and you need to
    > optimise the same.
    No, that is incorrect, the red ones show only the ones which need several hundret milliseconds in one execution. This can even be correct for hard tasks. And there are lots of problem, which you will not see
    I have said everything here:
    SQL trace:
    /people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
    Go to 'Tracelist' -> Summarize by SQL statements', this is the view which you want to see!
    I summarizes all executions of the same statement.
    There are even the checks explained, the slow ones are the one which need a lot of time per record!
    See MinTime/Rec > 10.000 microseconds.
    Check all number of records, executions, buffer, identicals.
    The SE30 Tipps and Tricks will not help much.
    Siegfried

  • How to view which updates were manually imported into WSUS

    We need to manually install updates on a workstation that is not joined to our domain (in a workgroup) and match the updates that are normally installed via WSUS.
    WSUS has some extra updates added that were downloaded from the Microsoft Catalog site.
    How can I see which catalog updates are added to our WSUS server?

    In that case, I don't know why I've never had the issue on my gazillions of Win7 deployments, and, this KB is therefore very misleading about Vista & later sysprep behaviour...  :S
    http://support.microsoft.com/kb/903262/en-au
    Unless the master image had actually been patched with Windows Update or WSUS, the master image would never actually have a SusClientID. That's the reason most organizations avoid this situation.
    I do not know why the article claims that sysprep was changed to clear this ID. It still does not do it, as evidenced by the thousands of threads in this forum directly related to this issue over the past seven years (since the release of Vista), most
    of which involved just as many Windows 7 systems as they did Windows XP systems.
    The 2nd and 3rd paragraph in the symptoms section is still the case:
    This issue  occurs if the computer was set up by using a Windows 2000 image, a Windows Server 2003 image, or a Windows XP image in which the registry value for SusClientID is populated before it is deployed to client computers.
    When you use Sysprep to generalize an image for a virtual machine, or when you use a unique SID-generating technology to create the images,
    the SusClientId registry value is not cleared if it is populated within the image before the image is deployed.
    What's also relevant (and disappointing), and may have something to do with the claimed involvement of sysprep, is that the WUAgent v7.0 was supposed to have self-detecting capabilties for duplicated SusClientIDs. See the note in that section about "changes
    it's SusClientID if the hardware changes". Sadly, it doesn't work. Also, there's no "hardware change" on virtual machines, so that's a non-starter from the get go. I can count on one hand the number of times I've seen a WindowsUpdate.log where the WUAgent
    correctly detected a duplicate SusClientID and spontaneously generated a new one.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Ldap schema extension to control which users / group are imported

    Hello,
    would like to have your opinion:
    would it be a good idea to implement ldap schema extensions to control
    which users / group are imported and controlled from ldap in a ldap
    mastered installation?
    e.g. we could implement the following schema extension for users:
    attributetype ( 1.3.6.1.4.1.<iana-org-id>.1.1 NAME ( 'BogusisBeehiveUser' )
         DESC ''
    EQUALITY booleanMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
    SINGLE-VALUE )
    # BogusinetOrgPerson
    # The BogusinetOrgPerson is derived from inetOrgPerson
    objectclass     ( 1.3.6.1.4.1.<iana-org-id>.1
    NAME 'BogusinetOrgPerson'
         DESC 'RFC2798: Internet Organizational Person, plus Bogus Extensions'
    SUP inetOrgPerson
    STRUCTURAL
         MAY (
              BogusisBeehiveUser )
    Then we could control the inclusion in beehive by simply switching
    BogusisBeehiveUser on or off.

    sure; that's pretty much what is talked about in the Install Guide for LDAP Integration under the "inclusion and exclusion" section, about here:
    http://download.oracle.com/docs/cd/E14897_01/bh.100/e14830/ldap.htm#CHDEFFJF
    that doesn't go into the specifics of how you might want to design your objectClass schemas, though, as beehive is agnostic to that.
    If you don't want to provision all users that match a certain existing rule (like everyone under dn=foo, or everyone where userType=employee), then adding a new attribute and building the profile inclusion rule around it is a valid thing to do.
    richard

  • I had water damage to my iphone5 when I was deployed w/ the military overseas. How can I find out what saved to icloud and how to see where my photos are. I don't know when it was able to back up as wi fi was pretty sketchy. please advise. thx in advance

    I had water damage to my iphone5 when I was deployed w/ the military overseas. How can I find out what saved to icloud and how to see where my photos are. I don't know when it was able to back up as wi fi was pretty sketchy. please advise. thx in advance
    My iphone is toast, I know I checked on icloud and see my emails from the day before it happened. Can I see when and what my phone backed up through itunes or icloud?
    Please please help i am lost.

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

  • How to see all devices that are connected to Apple ID

    How to see all devices that are connected to Apple ID

    Are you using a software to see all devices that are supposed to be connected to your router? You can reset and start over with your router.  Make sure you have a security enabled on it like WPA Personal. You can try DHCP Reservation as well to ensure that the devices that will have access to your router are only the ones you included on the list.

  • How to see all users who are allowed permissions for the specified entity ?

    How to see all users who are allowed permissions for the specified entity ? 
    And change user permissions for the current entity
    from Moscow with money

    Vincent,
    ... and how to change entity permissions for some users?
    from Moscow with money

  • How find which method-class will be selected?

    Hello sap gurus,
    I have another question:
    There are 2 the same methods: customer_exit_event_save, BUT in different classes.
    One for the class CL_EX_BCA_PO_CUSTOMER_EXIT, another from the class ZCL_IM_BCA_PO_CUSTOMER_EXI
    Not fully clear how the system decide which exactly method should be executed.
    Hereby  having executed a code(see below) in one case we are executing a  method: customer_exit_event_save from the class CL_EX_BCA_PO_CUSTOMER_EXIT,
    In the another case u2013 the same method customer_exit_event_save, BUT from the class ZCL_IM_BCA_PO_CUSTOMER_EXI !!!
      IF NOT g_exit_obj_cust_exit IS INITIAL.
        CALL METHOD g_exit_obj_cust_exit->customer_exit_event_save
          EXPORTING
            flt_val         = l_flt_country
            i_header        = l_str_po_hd
            i_sender        = l_str_po_snd
            i_receiver      = l_tab_po_rcv
            i_payment_note  = l_tab_po_nt
            i_item_info     = l_str_item_info
          IMPORTING
            e_header        = l_str_po_hd
            e_sender        = l_str_po_snd
            e_receiver      = l_tab_po_rcv
            e_note          = l_tab_po_nt
          EXCEPTIONS
            raised_customer = 1.
    Do we have any table, where spesific method is selected?
    Many thanks in advance.
    Edited by: Paul Birch on Oct 16, 2008 2:50 PM

    Hello,
    You may execute SE24 to goto Class definition for both classes, go to methods tab and drilldown into the code of the method. Apply a break-point here in both cases and execute your main program which calls the method. Based on the break-point hit, you can decide as to which global class method was called.
    Hope this helps.
    Thanks,
    Venu

  • How to see which programs are attached to which desktop?

    I have used the option to attache software programs to different desktops in Mountain Lion.  When I hava not used a specific program in a while and then need to, I cannot always remember which desktop I anchored it to.  I know I can go to the launch and click on it there, but having it attached to a desktop, it seems like I should be able to find it that way.  Is there a way to quickly see which one it is attached to without opening the app from the app launchpad or opening the app folder?  I want to be able to just click to the desktop.  In Tiger I think, we could click on spaces in the menu bar and see a list.  Just wondering if there is a quick way in Mountain lion that I'm not aware of.
    thanks!
    Michelle

    Hi, thanks for your reply, I am using mission control right now, I was just hoping there was a way that is similar to spaces in the toolbar.. and I'm guessing some of it is habit with how we think about it. 
    I realize why I was wondering this today.  I had mail open and then I opened imessage and it opened on top of mail, which told me I did not have it anchored to any specific desktop.  So I was trying to decide which one to attach it to and realized I did not know how to tell which ones already had something anchored to it.  If they are open, I could see by mission control.  But I did not want to open everything to see where it was anchored.  I rememberd being able to click on spaces in tiger and I could see the list.  So I hoped ML would have some place to see the same info. 
    Michelle

  • How to differentiate which is exporting and importing parameters when calling dynamically using CL_ABAP_OBJECTDESCR

    Hello All,
    First of all sorry for posting the question in general abap queries, since somehow I am not able to post in ABAP objects discussions.
    My requirement is
    Step 1 :  To get table name as input  and dynamically derive all fields which is going to be passed as parameters for a method
    I did this using  cl_abap_typedescr class
    Step 2:  Then Pass the values into the relevant fields using below code
    ptab_line-name = 'DATA_TAB'.
    ptab_line-kind =
    cl_abap_objectdescr=>changing.
    GET REFERENCE OF text_tab INTO
    ptab_line-value.
    INSERT ptab_line INTO TABLE ptab.
    Step 3:  Later I am calling dynamic class like
        CALL METHOD (class)=>(meth)
          PARAMETER-TABLE
            ptab
          EXCEPTION-TABLE
            etab.
    I have read most of the post using Class cl_abap_typedescr=>describe_by_name to get parameter where I have to give correct parameter type.
    But my issue is that I also need to know which fields are acting as importing , exporting and changing parameter.
    Is there anyway to determine and pass method's paramter type as well ?
    Thanks!
    Regards,
    Ramya

    Might be I can use table view VSEOMEPARA

  • How to check weather BI Objectu2019s are imported and exported

    Hi to all,
    Some one has created INFOCUBE, DSO, DTP, transformation.
    My question is how I will check it, weather Objectu2019s   are imported and exported or not.
    How   to check under which request  number it have   been saved.
    Please can any one tell the step for that?
    I SHALL BE THANKFULL TO YOU FOR THIS.
    Regards
    Pavneet Rana

    Hello Pavneet,
    If you goto trans SE09/SE10--> Enter your User ID or * under user & then click on Display.
    You will be able to see all the TR's & if you drill it, you will be able to see all the objects collected under that TR.
    Hope its helps!
    Regards,
    Pavan

  • How to determine which archive logs are needed in flashback.

    Hi,
    Let's assume I have archive logs 1,2,3,4, then a "backup database plus archivelogs" in RMAN, and then archive logs 5+6. If I want to flashback my database to a point immediately after the backup, how do I determine which archive logs are needed?
    I would assume I'd only need archive logs 5 and/or 6 since I did a full backup plus archivelogs and the database would have been checkpointed at that time. I'd also assume archive logs 1,2,3,4 would be obsolete as they would have been flushed to the datafiles in the checkpoint.
    Are my assumptions correct? If not what queries can I run to determine what files are needed for a flashback using the latest checkpointed datafiles?
    Thanks.

    Thanks for the explanation, let me be more specific with my problem.
    I am trying to do a flashback on a failed primary database, the only reason why I want to do a flashback is because dataguard uses the flashback command to try and synchronize the failed database. Specifically dataguard is trying to run:
    FLASHBACK DATABASE TO SCN 865984
    But it fails, if I run it manually then I get:
    SQL> FLASHBACK DATABASE TO SCN 865984;
    FLASHBACK DATABASE TO SCN 865984
    ERROR at line 1:
    ORA-38754: FLASHBACK DATABASE not started; required redo log is not available
    ORA-38761: redo log sequence 5 in thread 1, incarnation 3 could not be accessed
    Looking at the last checkpoint I see:
    CHECKPOINT_CHANGE#
    865857
    Also looking at the archive logs:
    RECID STAMP THREAD# SEQUENCE# FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# RESETLOGS_CHANGE# RESETLOGS
    25 766838550 1 1 863888 10-NOV-11 863892 863888 10-NOV-11
    26 766838867 1 2 863892 10-NOV-11 864133 863888 10-NOV-11
    27 766839225 1 3 864133 10-NOV-11 864289 863888 10-NOV-11
    28 766839340 1 4 864289 10-NOV-11 864336 863888 10-NOV-11
    29 766840698 1 5 864336 10-NOV-11 865640 863888 10-NOV-11
    30 766841128 1 6 865640 10-NOV-11 865833 863888 10-NOV-11
    31 766841168 1 7 865833 10-NOV-11 865857 863888 10-NOV-11
    How can I determine what archive logs are needed by a flashback command? I deleted any archive logs with a SCN less than the checkpoint #, I can restore them from backup but I am trying to figure out how to query what is required for a flashback. Maybe this coincides with the point that flashbacks have nothing to do with the backups of datafiles or the checkpoints?

  • Can you see which timeline clips are being used in Media Browser?

    I'm a relatively new user and may not be familiar enough with cs5.5 but
    is there a way to see what clips are being used on the editing timeline in the media browser.
    I open premiere pro - Project is loaded. I edit the scene until it is finished.
    When I look over at the media browser, all my raw clips (some of which I'm
    using on the editing timeline) look the same - I can't tell which ones I using on the timeline.
    The reason I ask - when I fiinish editing a scene it would be nice to glance over at the
    media brower folder where my raw clips are located - easily see which ones I'm using because they
    are highlighted or checked and then delete the ones I no longer need.
    Is there a way to do this now?
    Thanks
    Jeff

    I dont think so  but a better way is to look in the top of the Project Window and there is a drop down that will show you all the useage instances of the clip.  You can click on them to go to them in the timeline.

Maybe you are looking for

  • How to upload logo from application server

    Hi all, Plz show me the way how to upload logo from application server into sap script. What is NGT. Thanks in advance Venkat

  • Dynamic Subject Line not appearing in PO mail

    Hi Experts, In tcode ME28 when i get the list of POs to be released , I click on the release possible icon against the PO number. On clicking of this, a mail goes to the vendor of the PO. My requirement is to change the subject line of this mail. I h

  • Any way to get split mono tracks in a Multicam Sequence?

    I have video from 4 different cameras which I'm trying to sync as a Multicamera clip. They sync great, but the audio mapping is not how I want it. All the cameras recorded 2 separate audio channels, but they appear upon import in Premiere as Stereo.

  • Payment terms list based on customer

    Hello Everyone, I have the following scenario. When creating Sales Order, the client would like to see the payment terms based on the customer selected. That is, if the Customer A is selected then payment terms 001, 003 to be displayed in the drop do

  • Lumia920 mixradio unable to download music

    Hi, please help me regarding Nokia account problem with free download subscription