-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
π¨ Refactorμ½λ 리ν©ν λ§μ½λ 리ν©ν λ§
Description
μ€λͺ π
νλΉλ λ΄λΉ @hambining
π¨Β μ€λ³΅ μ½λ too much
childRepository.findById(childId).orElseThrow(()->new ChildException(ChildErrorCode.NOT_FOUND));
if(!childRepository.existsByChildIdAndParentId(childId, parent.getId())) {
throw new RoomConditionException(RoomConditionErrorCode.UNAUTHORIZED_ACCESS);
}π¨Β νμ€ μ½λ γ΄γ΄
RoomCondition roomCondition = roomConditionRepository.findTopByChildIdOrderByCreatedAtDesc(childId).orElseThrow(()->new RoomConditionException(RoomConditionErrorCode.NOT_FOUND));RoomCondition roomCondition = roomConditionRepository.
findTopByChildIdOrderByCreatedAtDesc(childId).
orElseThrow(() ->new RoomConditionException(RoomConditionErrorCode.NOT_FOUND));μ£Όλ μ΄ λ΄λΉ @jh010303
π¨Β SRP μλ°
μλΉμ€ λ€μμ λν μλκ° μ ν β
1/3/7μΌ κ³μ°νλ ν¨μκ° λ°λ‘ μμλ€λ©΄ ?
κ³΅ν΅ λΆλΆ κ³μ°μ λ°λ‘ λΉΌμΌν¨
쿼리 μλΉμ€μΈλ° 쿼리λ₯Ό λ λ¦¬μ§ μλ κ³μ°μ νλ€ ? β SRP μλ°
calculating β 쿼리 μλΉμ€μμ γ΄γ΄γ΄
π¨Β 컨벀μ @!!@!!!!
μ§ν μν© β
νλΉ
- μ€λ³΅ μ½λ μμ
- νμ€ μ½λ μμ
μ€ν
- SRP μλ° λΆλΆ
- μ¨λ/μ΅λ λΆμΌμΉ λΆλΆ μμ
- 컨벀μ
Reactions are currently unavailable
Metadata
Metadata
Labels
π¨ Refactorμ½λ 리ν©ν λ§μ½λ 리ν©ν λ§