code-cleanup Questions

2

Based on post How to call a function by its name (std::string) in C++?, tried to make a version using CLASS, but my approach does not work. class A { public: int add(int i, int j) { return i+j; ...
Squint asked 20/10, 2013 at 17:5

7

I've seen How can you find unused functions in Python code? but that's really old, and doesn't really answer my question. I have a large python project with multiple libraries that are shar...
Britisher asked 1/3, 2012 at 22:3

2

Solved

I've been reading Clean Code by Robert C. Martin, and came across the infamous statement: Avoid words like Manager, Processor, Data, or Info in the name of a class. So, naturally, I've tried ...
Intercalation asked 30/7, 2013 at 15:27

3

Solved

I had to customize some projects which have been written for some other purpose but some core functionality is same for my project and works as it is. But There are lots of variables, macros,functi...
Mean asked 14/5, 2013 at 8:33

1

Solved

How do I save ReSharpers settings to a file? I need to share the settings among my co-workers, and it has to include formatting settings setup in VS as well.
Damaraland asked 25/4, 2013 at 8:2

4

Solved

On a generated project I get 100s of warnings caused by unused imports and such things. Can I bulk cleanup those imports for all files?
Salisbury asked 21/11, 2009 at 12:21

1

Solved

I'm doing clean up on django code - my IDE can easily detect unused variables etc in Python code, but I haven't found a way to find unused template variables - it would be much easier to clean up t...
Assamese asked 10/8, 2012 at 11:36

3

Solved

I'm new to Camel and trying to learn idioms and best practices. I am writing web services which need to handle several different error cases. Here is my error handling and routing: onException(Jso...
Retrogressive asked 25/5, 2012 at 14:15

3

Solved

I am currently working on a roughly 15 years old web application. It contains mainly CGI perl scripts with HTML::Template templates. It has over 12 000 files and roughly 260 MB of total code. I ...
Whiplash asked 25/5, 2012 at 13:34

2

Solved

I used source code of an android app that we created in the past as a basis for another app (a lot of the functionality is similar, however about 1/3 of the functionality of the original app is rem...
Longwinded asked 6/10, 2011 at 12:1

2

Solved

Can someone provide some strategies as to organizing my project so that it is clean? Say I have a bunch of activities; is it good to place them all into a separate package, while putting other clas...
Vinson asked 4/10, 2011 at 19:39

3

Solved

When I write something, half the effort tends to go into adding clear and concise debug output, or functionality that can be enabled/disabled when that something needs debugging. An example of de...
Sweitzer asked 20/7, 2011 at 12:5

11

Solved

I'm writing some SQL queries with several subqueries and lots of joins everywhere, both inside the subquery and the resulting table from the subquery. We're not using views so that's out of the q...
Deflagrate asked 28/3, 2011 at 15:40

2

Solved

I have a large codebase that uses Systems Hungarian for most variable names, which basically means I have lots of objQueue's, objCommon's, dtDataSet's et cetera. Is there any way to convert most ...
Flinders asked 22/2, 2011 at 18:43

3

Solved

CodeRush has this nifty plugin called cr_ClassCleaner that allows me to sort the elements in the class (e.g. methods, private variables, etc...). Can Resharper 5.x do this, either via the product...
Cacique asked 16/2, 2011 at 17:56

2

Solved

I've inherited a ASP.Net 2.0 (File System) Web Project from a client, where a few different companies have worked on this project in recent years. The project has been handed from one company to th...
Erminiaerminie asked 15/7, 2010 at 8:10

7

Solved

I have these two methods on a class that differ only in one method call. Obviously, this is very un-DRY, especially as both use the same formula. int PlayerCharacter::getAttack() { int attack; a...
Ostwald asked 19/4, 2010 at 18:41

3

Solved

I have a large web app, and I think there are a bunch of old files that are no longer being used, is there an app which can tell me what these files are?
Suppress asked 28/11, 2009 at 3:7

8

Solved

We have a huge (old legacy java) code-base, where many files (around 5k) have System.out.println's. We are planning to remove them for cleanup/performance reasons. How can we write a script that wi...
Authentic asked 21/2, 2009 at 3:41

© 2022 - 2024 — McMap. All rights reserved.