refactoring
how to avoid the repeated code to increase the efficiency
I have a DataGrid view1 and a ListView and when ever I select the list view item(I am passing the ListView item into the query and populating the DataGrid view according that item)[详细]
2023-03-31 05:46 分类:问答customize initial data issue and solution
I want to design an object for loading and showing customized data, for example, the object firstly loads all employees in dat开发者_开发问答abase, then look up whether login user in the list, if so t[详细]
2023-03-31 02:18 分类:问答Unit test on program which has lots of macros
Recently, I need to add unit test to one legacy program. But in it, there are lots of macros, like #ifdef CONFIG_XXX[详细]
2023-03-31 01:56 分类:问答TFS version control - File deleted, added - how do we tell TFS it was a move?
We are doing some major refactoring and in the course of that we are moving a lot of files. We use ReSharper which makes this 开发者_运维百科(relatively) painless as it updates all uses everywhere whe[详细]
2023-03-31 00:33 分类:问答Visual Studio 2010 macro package or extension to reformat code?
Today I have been finding myself doing a lot of rearranging of code. Like converting this: var assetPlacement = new AssetPlacement[详细]
2023-03-30 21:34 分类:问答Efficient way to refactor a class/method/string within a directory using vim
So far, I have been manually refactoring code by using the find-and-replace operation %s:/stringiwanttoreplace/newstring/g[详细]
2023-03-30 19:03 分类:问答Refactor LINQ ... multiplying property and child property from a list
I am still coming to terms with LINQ and I am trying to refactor the following foreach loop into it\'s LINQ equivalent. Here\'s the foreach loop that I am trying to convert;[详细]
2023-03-30 12:07 分类:问答How to reuse HTML body?
I have the following HTML in a web directory: <!doctype html> <html xmlns:ng=\'http://angularjs.org\'>[详细]
2023-03-30 11:20 分类:问答git mv and refactoring in Eclipse
How do I solve this \"chicken & the egg\" situation? I decided to rename a Java class in Eclipse (say, from one.java to two.java). Eclipse refactoring let me do that without a hitch.[详细]
2023-03-30 07:19 分类:问答Get rid of hardware macros in embedded software
I was working on an embedded program using C. 开发者_Go百科There are tons of hardware macros like[详细]
2023-03-30 03:42 分类:问答