-
데이터 구성 : Replace Array with ObjectProgramming/리팩토링 2020. 9. 10. 22:30
참고자료 https://refactoring.guru/replace-array-with-object Replace Array with Object Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru 정의 배열의 특정 요소가 다른 뜻을 가지고 있다면, 배열을 각각의 요소에 대한 필드를 가지는 객체로 바꾼다. 예시 String[] row = new String[3]; row[0] =..
-
데이터 구성 : Change Value to Reference, Change Reference to ValueProgramming/리팩토링 2020. 9. 7. 16:04
참고자료 https://refactoring.guru/change-value-to-reference Change Value to Reference Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru https://refactoring.guru/change-reference-to-value Change Reference to Value Tired of reading? No wond..
-
데이터 구성 : Replace Data Value with ObjectProgramming/리팩토링 2020. 9. 7. 00:38
참고자료 https://refactoring.guru/replace-data-value-with-object Replace Data Value with Object Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru 정의 클래스의 필드에 정의된 변수가 데이터나 동작을 필요로 하는 것이라면 새로운 클래스를 만들어 변수나 동작들을 만든 후, 클래스의 객체를 원래 클래스에 배치를 한다..
-
데이터 구성 : Self Encapsulate FieldProgramming/리팩토링 2020. 9. 6. 21:15
참고자료 https://refactoring.guru/self-encapsulate-field Self Encapsulate Field Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru 정의 클래스의 필드에서 private에 직접 접근하는 방법이 문제가 될 수 있으니, get/set 함수를 만들어서 함수를 통한 필드에 접근을 할 수 있게 만드는 기법. 예시 class Range..
-
객체 간 기능 이동 : Introduce Foreign Method, Introduce Local ExtensionProgramming/리팩토링 2020. 9. 6. 20:20
참고자료 http://refactoring.guru/introduce-foreign-method Introduce Foreign Method Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru https://refactoring.guru/introduce-local-extension Introduce Local Extension Tired of reading? No wonder,..
-
객체 간 기능 이동 : Extract Class, Inline ClassProgramming/리팩토링 2020. 9. 5. 19:07
참고자료 https://refactoring.guru/extract-class Extract Class Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru https://refactoring.guru/inline-class Inline Class Tired of reading? No wonder, it takes 7 hours to read all of the text we ha..
-
객체 간 기능 이동 : Move Method, Move FieldProgramming/리팩토링 2020. 9. 5. 18:43
참고자료 https://refactoring.guru/move-method Move Method Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru https://refactoring.guru/move-field Move Field Tired of reading? No wonder, it takes 7 hours to read all of the text we have here...
-
메소드 정리 : Replace Method with Method ObjectProgramming/리팩토링 2020. 9. 4. 16:51
참고자료 https://refactoring.guru/replace-method-with-method-object Replace Method with Method Object Tired of reading? No wonder, it takes 7 hours to read all of the text we have here. Try our interactive course on refactoring. It offers a less tedious approach to learning new stuff. Let's see... refactoring.guru 정의 함수가 너무 길고 서로 분리하기 어려운 지역 변수의 얽힌 덩어리로 인해 분리 할 수 없을 때, 함수를 별도의 클래스로 선언하여 지역 변수가 클래스..