code-cleanup Questions

5

Solved

Is there any way to find unused CSS in a website? I'm trying to clean up a project I just inherited.
Holifield asked 24/8, 2009 at 3:37

4

Solved

I am doing some JavaScript cleanup work on a legacy project, and trying to get rid of redundant JS libraries. I have done all the obvious ones (those that are not references from anywhere at all). ...
Suspension asked 31/5, 2013 at 9:47

1

Solved

Is there a way to store the functions of a react class in a separate file then import those functions for use? The reason for wanting to do this would be purely to cut down on the size of my compon...
Stradivari asked 13/11, 2017 at 21:14

5

Solved

Having a bit of an issue with JShint and the following line of code. $location.path('map-' + map.id + '/venue-' + map.attributes.default_venue.value); I'm getting the error, Identifier 'default_...
Languor asked 18/10, 2013 at 11:20

3

Solved

In relation to this question: "Remove unused references (!= "using")", I would like to know if there is a tool for removing unused classes, structs, delegates, etc from a Visual Stu...
Replenish asked 8/10, 2012 at 23:23

3

Solved

I have just been through the following paper and I found it extremely useful: http://www.objectmentor.com/resources/articles/Clean_Code_Args.pdf I am looking for similar papers/books/tutorials/etc...
Whist asked 21/3, 2012 at 9:56

2

Solved

I am new in Android Studio so I face some problem with it. I am looking for a way how to project clean. In Eclipse I would do Project -> Clean -> OK but I don't know how it is done with Andr...
Feminism asked 18/2, 2015 at 10:25

1

Solved

I have a python script that contains a class. This class has a __del__ method for usual cleanup. If I delete the class during the normal execution of the script, I want some cleanup to be done. ...
Faso asked 20/1, 2017 at 14:15

2

Solved

I 've searched on google some online unused css removers that you have to pay. I also checked here on stackoverflow for programs that might do that. I only found an easy way via google chrome. C...
Pollux asked 26/10, 2013 at 13:59

1

Solved

In Android Studio v2.2.2, Code Cleanup feature available under Analyze option. Analyze >> Code Cleanup What this option exactly do with code ? Please explain in details.
Inanity asked 8/12, 2016 at 6:38

5

Solved

I know that Sublime Text 2 can delete the trailing white space on files upon saving. When working in a team and commiting a change to a file this tends to produce huge diffs which make peer code r...
Cortisone asked 6/9, 2012 at 9:38

3

Solved

I have a service which uses @angular/http to load data from an API. I want to create a projection of the retrieved data for my Components using this data. Therefore I wrote the following code: ge...
Petrillo asked 21/10, 2016 at 6:53

1

Solved

In a Makefile I have: images/schematic.pdf: images/schematic.svg inkscape -D -z --file=$^ --export-pdf=$@ --export-latex sed -i "s:schematic:images/schematic:g" $@_tex What this rule d...
Aurita asked 20/9, 2016 at 22:5

3

Solved

I often want to perform an action on an array X times then return a result other than that number. The code I usually write is the following: def other_participants output =[] NUMBER_COMPARED.t...
Haland asked 5/10, 2011 at 3:33

3

Solved

I trying to refactor one of my activity class to implement mvp(using mvp mosby library) . I have a RecyclerView and in this view there is some items that some changes apply to them during the run t...
Monoacid asked 6/6, 2016 at 8:8

2

Solved

In Intelij and Eclipse IDEs (and probably some others too) it's possible to run all test classes from a package (or even all test classes in a project) without the need to put each of them explicit...
Vanpelt asked 27/5, 2016 at 0:6

5

Solved

How to setup ReSharper to call "Sort usings" in class?
Outofdoor asked 9/11, 2011 at 9:59

6

Solved

In my application, I have to instantiate many different types of objects. Each type contains some fields and needs to be added to a containing type. How can I do this in an elegant way? My current...
Bainbrudge asked 13/10, 2015 at 15:0

9

Solved

I find stuff like this rather annoying and ugly in equals methods: if (field == null) { if (other.field != null) return false; } else if ( ! field.equals(other.field)) return false; In C# I c...
Peerage asked 25/10, 2011 at 13:23

7

How do I check if my loop never ran at all? This somehow looks too complicated to me: x = _empty = object() for x in data: ... # process x if x is _empty: raise ValueError("Empty data iterable:...
Nusku asked 2/2, 2015 at 10:3

2

Solved

I was wondering if there is a "cleaner" solution to using dependency injection with binding to classes with a lot of arguments, since according to Robert C.Martin's Clean Code, it's better not to u...
Woodrow asked 23/9, 2014 at 12:59

2

When developing stored procedure, the code is typically far from clean. It is often impractical to break down the stored procedure code into single responsibility (CTE's, long select lists, breakin...
Lungwort asked 28/7, 2014 at 16:59

5

I have a java code in which there are multiple return statements in a single method. But for code cleaning purpose, I can have only one return statement per method. What can be done to overcome thi...
Despoliation asked 19/5, 2014 at 13:11

2

Solved

I have code that looks like this: for(int i=0; i < a; i++){ List<Integer> list = elementA.get(i); SomeClass rg = new SomeClass(list, a, methodA(i)); int result = rg.generate(); var+=...
Potter asked 21/4, 2014 at 17:18

1

Solved

I imagine that this may be a bit of a divisive post, but it's something I've been struggling to articulate for a while, and I'd like to put it to the wider development community. I work in a role ...
Circumvallate asked 19/2, 2014 at 13:14

© 2022 - 2024 — McMap. All rights reserved.