DevInsight

Notes on development judgment and context

Practical Development Archive

DevInsight, notes for development decisions that need judgment

Independent articles on selection criteria, adoption conditions, and operational pitfalls.

💡 Today's Dev Insight

#클로저#메모리 관리#가비지 컬렉션

클로저와 메모리 누수

클로저는 외부 변수를 캡처해 생명주기를 연장하지만, 의도치 않게 객체 참조를 유지하면 메모리 누수로 이어진다. 판단 기준은 '이 클로저가 참조하는 변수가 더 이상 필요 없는 시점'을 명확히 하는 것. 대표적 실수: 루프 안에서 생성한 클로저가 인덱스 변수를 계속 참조해 해제되지 않는 경우.

Latest Posts

View all posts

DevInsight Digest

Keep every new article in one calm feed.

Follow the full publication feed without promotional alerts.

Subscribe to RSS

Browse by Topic

From AI to developer tools, pick the stream you want to read now.