[7주차/유리] 워크북 제출합니다#85
Merged
Merged
Conversation
YoungJJun
approved these changes
May 18, 2026
Collaborator
YoungJJun
left a comment
There was a problem hiding this comment.
유리 키워드 조사하느라 수고하셨습니다!
@Valid 랑 @Validated 에 따라 발생하는 Exception까지 조사해주셨네요!
이번주 미션인 API 구현이랑 스웨거 캡쳐 모두 빠져있어서 이후 주차 구현할 때 구현이 안될 것 같아요. 8주차는 7주차 내용이 직접적으로 이어지지는 않는걸로 알아서 이 때 따로 추가해주시면 좋을 것 같네요.
마감기한은 이미 지나서 우선 피어리뷰만 추가 후 머지해주시면 됩니다~
yeongjun25
reviewed
May 21, 2026
Comment on lines
+100
to
+118
| - Java stream은 생성 → 가공 → 소비의 3단계 구조로 구성 | ||
| 1. **생성** | ||
| - 컬렉션(집합)을 stream으로 변환하는 과정 | ||
| - stream api 사용 전 최초 1번 수행 | ||
| - 모든 데이터를 한꺼번에 메모리에 로드하지 않고 필요할 때만 로드 → 메모리 효율적 | ||
| 2. **가공 (중간 연산)** | ||
| - 데이터를 원하는 형태로 변환하는 중간 처리 | ||
| - 대표 연산: filter(), map(), sort() | ||
| - 입력값도 stream, 결과값도 stream → 중간 연산을 연결해서 연속으로 여러 번 수행 가능 | ||
| 3. **소비 (최종 연산)** | ||
| - stream에 대한 최종 연산, 최종 결과물을 얻는 과정 | ||
| - 컬렉션 또는 하나의 값(합계 등)으로 결과 반환 | ||
| - 1번만 수행 가능 - 최종 연산 후 stream은 닫혀서 재사용 불가 | ||
| - 추가 가공이 필요하면 새로운 stream을 생성해야 함 | ||
| - **데이터 처리 순서** | ||
| - 모든 데이터에 대해 하나의 함수가 끝난 후 다음 함수가 실행되는 게 아니라 | ||
| - 일련의 데이터가 나타난 흐름의 순서대로 처리됨 | ||
| - 앞선 데이터가 먼저, 뒤의 데이터가 나중에 처리되는 구조 | ||
|
|
There was a problem hiding this comment.
stream의 3단계 구조에 대해 개념, 효과를 세세하게 잘 정리하신 거 같습니다!
특히 '생성' 단계에서 필요할 때만 데이터를 로드하여 메모리를 효율적으로 사용하는 점과
'소비' 단계에서 stream은 1번만 수행 가능하므로 재사용 할 수 없고, 새 stream을 생성해야 한다는 부분까지 이해하기 쉬웠어요~!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ 워크북 체크리스트
✅ 컨벤션 체크리스트
📌 주안점