Closed sangheee closed 2 years ago
Lack of knowledge, information, and processing power
위의 서로 다른 인지 과정과 관련한 서로 다른 혼란은 모두 memory와 관련
lack of knowledge는 long-term memory(LTM) 에 관련한 요소가 충분히 없는 것
lack of information은 short-term memory(STM) 와 관련
많은 정보를 처리하는 것은 생각이 일어나는 working memory와 관련
LTM은 HDD, STM은 RAM, working memory는 processor와 대응됨
LTM, STM, working memory는 독립적이지 X, 동시에 서로 상호작용 O
코드를 읽고 해석하면서
What cognitive processes are involved? LTM, STM, or working memory
를 생각해보기
신속한 코드 분석
Programs must be written for people to read and only incidentally for machines to execute.
- 컴퓨터 프로그램의 구조와 해석, 해럴드 아벨슨
그러나 현실에서 우리는 코드를 읽는 것을 연습하는 것보다 코드를 작성하는 것을 훨씬 더 많이 연습한다.
STM에 한 번에 저장할 수 있는 정보의 양은 7+-2
LTM의 정보를 통해 정보를 chunk로 나눌 수 있다.
LTM에 더 많은 정보가 저장되어 있을수록 모르는, 낯선 정보(코드)를 청크로 나누는 것이 더 쉽다.
생소한 코드 읽기를 가장 어렵게 만드는 것은 "the limited capacity of your STM"이다.
STM의 limitation of capacity 뿐만 아니라 "limitation of size" 때문에도 기억하기 힘들다.
STM의 정보 저장 가능한 slot은 2~6개이며 1byte도 안되고 늘릴 수 있는 방법도 없다.
이를 극복하는 유일하고 최고의 방법은 LTM과 collaborate하는 것!
remember-and-chunk
write code easier to chunk, and thus easier to process.
기억을 강화하는 두 가지 테크닉
retrieving information from LTM: storage strength and retrieval strength
특정 문법을 기억하려고 할 때, 문제는 storage strength가 아니라 retrieval strength에 있다.
지식이 얼마나 잘 저장되어 있느냐가 문제가 아니라, 지식을 얼마나 잘 꺼내느냐!가 문제다!!
LTM 어딘가에 정보가 잘 저장되어 있다 한들, 그것을 꺼내오지 못한다면....useless.....
학습을 추가로 하지 않고도, 정보를 능동적으로 기억하려는 시도만으로 배운 것을 더 많이 기억할 수 있다.
우리는 정보를 찾기 너무 쉬운 세상에 살다보니 문법을 애써 기억할 필요를 느끼지 못한다. 그러다보니 retrieval strength가 강화되지 않고 계속 약한 상태에 머무는 것이다.
기억은 안하고 계속 찾아보기만 하게 되는 것이다.....찾았던 것 또 찾아보고 또 찾아보고....
다음번에 검색할 때는, 검색 전에 먼저 그것을 의도적이고 능동적으로 기억하려고 시도해봐라
새로운 문법을 배울 때
앞선 chapter에서 lack of STM or LTM을 다루었다면, 이 chapter는 lack of working memory 를 다룬다.
working memory is STM applied to some problem
working memory가 문제에 적용된 STM이기 때문에, STM과 동일하게 2-6개의 문제만 동시에 처리할 수 있다는 용량적 한계가 있다 => cognitive load
programming 관련한 cognitive load types
위의 두 방법을 썼는데도 코드가 이해가 안되면, 각 코드가 무슨 동작을 하는진 알아도 큰 그림을 이해하지 못하는 경우일 수 있다. 이 때는 코드를 출력해서 변수, 함수, 구조체, 클래스, 인스턴스의 의존성을 연결하라는데...언제 그걸 하고 있니?
1,2 ch는 읽을만, 3,4 ch는 하나마나한, 이거 누가 모르나 싶은 소리해서 짜증나고 시간아깝고 나무한테 미안한 책
트위터의 그 책 나도 함 읽어보자 https://livebook.manning.com/#!/book/the-programmers-brain/ https://livebook.manning.com/#!/discussion