refactoring
refactoring PL/SQL
I encountered the following PL/SQL code(variables modified) at work: PROCEDURE test(i_w IN a.w%type,o_result IN OUT resu_cur_type) IS[详细]
2023-03-28 14:42 分类:问答how can I refactor this?
As for now, when I prepare my data to be sent by Ajax request to my web app, I just concat my JS arrays (with placing -1 between them as separator - values can be positive only, so -1 means start of n[详细]
2023-03-28 11:00 分类:问答Refactoring a long servlet conditional
I have a servlet which can accept upwards of two dozen different kinds of requests (called commands in the servlet).A very large conditional was created to service to these requests structured like th[详细]
2023-03-28 06:43 分类:问答Refactoring complex project to JPA or Hibernate
I have big enough and already working project, written not by a programmer, but a scientist. The program holds lot of data in a huge object tree. Almost all of the classes involved are mutable and eve[详细]
2023-03-28 05:27 分类:问答"Generic" solution for primitive array?
I have classes that for processing primitive array input: CharArrayExtractor for char[], ByteArrayExtractor for byte[], IntegerArrayExtractor for int[], ...[详细]
2023-03-27 22:18 分类:问答UML time visualisation
I\'m sure many of you have used or at least heard of Gource and Code Swarm.They are very nice tools for visualising the commit history of a project as it evolves.[详细]
2023-03-27 15:34 分类:问答Rails: Helper Refactoring
I have a helper which I feel is ridiculous, but I haven\'t been able to think of a way to improve it. Here\'s the helper in question:[详细]
2023-03-27 13:41 分类:问答Is there an alternative to switching in a factory method?
I see this quite a lot and I was wondering if there was a way to refactor this nicely to avoid the massive switch?This is a method in a factory: RoomControllerFactory,instantiating a game location bas[详细]
2023-03-26 17:00 分类:问答Having Eclipse automatically try to add imports on bunch of .java files
I know I can open a given file, and hitting CTRL + SHIFT + M, it will add the import associated with the class I have currently my cursor over.[详细]
2023-03-26 05:53 分类:问答Refactoring advice: How to avoid type checking in this OO design
I\'m looking for advice on refactoring to improve my class design and avoid type checking. I am using the Command design pattern to construct a menu tree. An item in the menu could be of various type[详细]
2023-03-26 03:14 分类:问答