Refactoring is a disciplined technique for restructuring existing code, altering its internal structure without changing its external behavior.
We need to use an unmanaged library in our code that has static methods. I'd like to introduce the library …
c# dependency-injection refactoring singleton static-classesHow do I find what code is and isn't being run in production ? The app is well-tested, but there's a …
ruby-on-rails ruby refactoring code-coverageI have the following code example if(object.Time > 0 && <= 499) { rate = .75m } else if(object.Time >= 500 &…
c# design-patterns if-statement refactoring solid-principlesW.r.t to one of the java projects, we recently started using SonarLint. Output of the code analysis shows …
java algorithm mapreduce refactoring sonarlintI'm tidying up some older code that uses 'magic numbers' all over the place to set hardware registers, and I …
c refactoring assert static-assertIn my C# code, I have an if statement that started innocently enough: if((something == -1) && (somethingelse == -1) &…
c# refactoring structure if-statement guard-clauseI would like to re-use a specific from different *Mapper.xml files which all somehow read same objects. I have …
refactoring mybatis resultset mappersDoes anyone know the best way to refactor a God-object? Its not as simple as breaking it into a number …
class refactoring anti-patterns god-objectI have the following method to compute an average: def compute_average(a,b,c,d,e) total = [a,b,…
ruby refactoring divide-by-zeroSo you've got some legacy code lying around in a fairly hefty project. How can you find and delete dead …
python refactoring dead-code