Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 스위프트
- rxswift
- ios
- tableView
- collectionview
- Refactoring
- Xcode
- uitableview
- map
- Human interface guide
- uiscrollview
- HIG
- combine
- swift documentation
- 리펙터링
- Clean Code
- UITextView
- RxCocoa
- ribs
- 리펙토링
- SWIFT
- UICollectionView
- 애니메이션
- 리팩토링
- Observable
- Protocol
- 클린 코드
- swiftUI
- MVVM
- clean architecture
Archives
- Today
- Total
목록2024/01/21 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] property 관리 리펙토링 (computed property를 활용한 리펙토링)
기초 개념) stored property와 computed property 메모리 관점 stored property - 별도의 메모리 공간 지정 o computed property - 별도의 메모리 공간 지정 x 사용 관점 stored property - 값을 저장 computed property - 접근하는 시점에 stored property들을 가지고 계산하여 반환 stored property를 사용할때 주의할 점 stored property를 사용하다보면 가장 큰 문제가, 상태 관리를 두 곳 이상에서 하는 경우가 발생 상태 관리를 두 곳 이상에서 하다보면 데이터 관리가 맞지 않아 코드 복잡도가 올라가는 현상이 발생 ex) 커스텀 뷰를 만드는데, ButtonWithImageView안에 또 다른 MyB..
Refactoring (리펙토링)
2024. 1. 21. 01:18