I am refactoring a method which is over 500 lines (don\'t ask me why) The method basically queries a list of maps from the database and for each map in the list does some computation and adds the va
I have a legacy class that is rather complex to maintain: class OldClass { method1(arg1, arg2) { ... 200 lines of code ...
I have written List<Attachment> lstAttachment = new List<Attachment>(); //Check if any error file is present in which case it needs to be send
I am new to Ruby and I know that I am not using the simple and powerful methods available within it. I made my code work but it has to be simple not this huge (especially I feel I am very bad at loop
I have two methods f(vector<int>& x, ....) and g(DBConn& x, ....) where the (....)parameters are all identical.
Some .net-framework interfaces and attributes become obsolete and deprecated since new framework version appears. I am warned that such code may be removed or become unpredictable in next versions but
I am using a module that is part of a commercial software API.The good news is there is a python module - the bad news is that its pretty unpythonic.
How can I make this function more efficient. It\'s currently running at 6 - 45 seconds. I\'ve ran dotTrace profiler on this specific method, and it\'s total time is anywhere between 6,000ms to 45,000m
I want to fetch posts based on their status, so I have this code inside my PostsController index action. It seems to be cluttering the index action, though, and I\'m not sure it belongs here.
What is the best way of doing version control of large scale refactoring? My typical style of programming (actually of writing documents as well) is getting something out as quickly as possible and t