Can any of the existing source code analzyers provide metrics on where code is used? I'm trying to find code that is either unused or consumed only by tests, basically candidates for deletion.
63535
What tools do you use to find unused/dead code in large java projects? Our product has been in development for some years, and it is getting very hard to manually detect code that is no longer in use. We do however try to delete as much unused code as possible.  Suggestions for general strategies/techniques (other than specific tools) are also appreciated.  Edit: Note that we already use code coverage tools (Clover, IntelliJ), but these are of little help. Dead code still has unit tests, and shows up as covered. I guess an ideal tool would identify clusters of code which have very little other code depending on it, allowing for docues manual inspection.
62018
I'm contemplating writing a script that does this:   Goes through each file in /usr/lib Does a dpkg -s search on each file. Reports a list of "orphan" files not belonging to any .deb package.   The idea is that over time, I've installed a lot of make install software and I'd like to get a list of leftover files from manually installed software I've since deleted.
53881
When I have a class I believe I no longer use, I usually attempt to delete it and see if there is an error. This strikes me as one of those things that just must be wrong...but I don't see another way. Can someone tell me what I must obviously be missing? :(
12029
What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code?  On Java performance questions on this site I often see responses from people who have "decompiled" the Java class file to see how the compiler optimizes certain things.
44627
Is there some chance to know how a binary was built, under Linux? (and or other Unix)  Compiler, version, time, flags etc...  I looked at readelf and couldn't find much, but there might be other ways at analyzing the binary code/section etc...  Anything you know how to extract?
25798
I posted a question and a couple of respondents asked for the source code. I could only post portions of the code.  If attachments were allowed I could have uploaded a .zip file with the whole application.  Will this be a feature in SO?
51249
A quick question. We used to have a code coverage highlighted in dev console on which lines of the class are covered and not covered before.   Has salesforce removed this option or do i need to activate it somewhere?
119706
What is code coverage and how do YOU measure it?  I was asked this question regarding our automating testing code coverage. It seems to be that, outside of automated tools, it is more art than science. Are there any real-world examples of how to use code coverage?
97906
I'm new in Python programming If there are websites where developers can share their add-ins and scripts that will be great. do you know any? unfortunately, arcgis.com only provide very few
109435
What is the syntax and which namespace/class needs to be imported? Give me sample code if possible. It would be of great help.
66815
How do companies clean up test cases? If I have 5000 tests in my library and 1000 of them are deprecated because we have cleaned up the code associated originally, how do we ensure that the tests are removed?
82870
I want to know the memory usage of my Python application and specifically want to know what code blocks/portions or objects are consuming most memory. Google search shows a commercial one is  (Windows only).  And open source ones are  and .  I haven't tried anyone, so I wanted to know which one is the best considering:   Gives most details. I have to do least or no changes to my code.
59927
I'm in the process of pushing some updates to some code I originally wrote 12-18 months ago, and the API Version is between 27.0 and 29.0  I know this is to protect the integrity of the test classes you've built (in case they have changed some things) but is there a best practice around either leaving these alone or trying to keep them up-to-date (maybe just once a year instead of at each release)?
112561
A friend of mine downloaded some malware from Facebook, and I'm curious to see what it does without infecting myself. I know that you can't really decompile an .exe, but can I at least view it in Assembly or attach a debugger?   Edit to say it is not a .NET executable, no CLI header.
62119
Is it possible to reset the numbers reported in Web Analytics? We have created some sites and have tested them out but want to see what the actual usage is, excluding our testing information.
36479
Is there good example code or a test project for explaining the . There are a lot of explanation links, but I want to have some good example code to show others without reinventing the wheel.
96539
I keep wondering how does a debugger work? Particulary the one that can be 'attached' to already running executable. I understand that compiler translates code to machine language, but then how does debugger 'know' what it is being attached to?