code-duplication
Duplicating Code Across Multiple Namespaces and Partial Classes
I\'m using LinqToXSD to generate document models (code) based on a client\'s XSD\'s. Since these XSD\'s share common structure each time I generate a document model some objects get duplicated. To pre[详细]
2023-04-10 11:00 分类:问答Remove duplication code from methods that depend on return result of other method
In ASP.NET MVC application in controller class I have a method protected ActionResult VerifySanctions(string sanction)[详细]
2023-04-06 18:51 分类:问答How to avoid duplicating a formula in both Javascript and PHP?
I\'m currently writing a web application in HTML5/Javascript and PHP. Some employees of the company will need to use it to enter their work schedule. The application will calculate in real time (usin[详细]
2023-04-05 09:26 分类:问答Making a table of contents style FAQ webpage without duplicating html
I am trying to make an FAQ page on a site, with all the questions placed togeth开发者_运维百科er similar to a table of contents (e.g. like on Wikipedia). When you click on the question, it jumps you d[详细]
2023-04-03 17:34 分类:问答Applying DRY principles to JavaScript, help me optimize this code?
While on the search for ways to optimize the quality of my code, I eventually came across the concept of DRY (Don\'t repeat yourself). I try to follow this as best I can but sometimes I get into posit[详细]
2023-04-03 12:28 分类:问答How can I refactor these wrapper methods to get rid of duplicated code?
The following two methods are used to wrap deserialization using Google Gson: public static <T> T Deserialize(String jsonData, Type t) {[详细]
2023-03-28 18:24 分类:问答Avoid duplicate logic in JavaScript and C#
I am writing a wizard to let users map strings to properties on an object. This is done by using some predefined rules that the user selects and supplies the arguments to. These collections of rules a[详细]
2023-03-27 11:24 分类:问答Duplicate code: How to find and remove with tools
I am managing a group of three interns working on a php project. They seem to be not good at refactoring and are using duplicat开发者_开发百科e code in multiple places. I am looking for a tool which I[详细]
2023-03-25 18:22 分类:问答Django: Avoiding Server-Side and Client-Side Validation Code Duplication
How do you avoid duplicating validation code on the server开发者_如何学Go-side and on the client-side with Django?[详细]
2023-03-18 06:56 分类:问答Duplicate code detection: Tools you can use
I am looking out for a software that identifies duplicate/redundant Javascript code. I found one such开发者_StackOverflow tool named CloneDR, but don\'t know how good it is .[详细]
2023-03-15 17:16 分类:问答