refactoring
How can I get Visual Studio's "Create method stub" or "Declare method" refactoring in Delphi?
When I code in Delphi XE and need a new procedure/function in another unit (for example on a datamodule) then I miss the Visual Studio feature where I can just type the new method name and use the \"C[详细]
2023-03-29 23:02 分类:问答Should I "Pull Up" Refactor
I have some very small classes that I feel should be \"pulled up\" but the methods are so small I\'m not sure. For example, the only thing that\'s meaningfully different is the body of the buildFromJS[详细]
2023-03-29 22:51 分类:问答Refactoring small F# function
I\'ve made the following F# function that will get me an url from the html contents of a web page: let getPicUrl (urlContents : string) =[详细]
2023-03-29 07:12 分类:问答In Eclipse, how to refactor anonymous interface implementation to Enum Singleton
Let\'s say I have an interface: public interface Foo{ String bar(int baz); } Now in some Java code I have an anonymous implementation of that interface:[详细]
2023-03-29 05:22 分类:问答Refractor code with SQL bulk insert {ADO.NET, ODP.NET}
Hi I use SQL bulk insert to Oracle 10g Db. I use ODP.NET because I need insert 20.000 - 40.000 rows in table. Long time a use LINQ to SQL (for oracle devart http://www.devart.com/linqconnect/).[详细]
2023-03-29 03:25 分类:问答Can this be refactored into a single database call?
I have a listing of events in an Events model. What I need to do is visually group events by city/state.[详细]
2023-03-29 02:54 分类:问答Inheritance problem in C#
I\'m refactoring some code and want to classes a bit higher in the inheritance chain be a bit more strict with their parameters. As I\'m not sure I\'m explaining this correctly, here\'s what I\'ve got[详细]
2023-03-28 20:38 分类:问答refactoring problem with one of my classes
i开发者_如何学C wrote a program and i named my class StatusListActivity which extend Activityand is the launcher and main class. I tried refactoring it bychanging the name to something else and whenev[详细]
2023-03-28 19:16 分类:问答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 分类:问答Convert PHP procedural code into OOP method chaining...are maintainability and readability worth the trouble?
I had a medium-size task done in procedural style so I thought of converting the code to OOP for ease of maintenance. The original code was a big block in a single file and what I did was:[详细]
2023-03-28 17:37 分类:问答