쉐도잉 연습: What is flattenning? - Cracking the Java Coding Interview #javalanguage #javacoding #javatips - 영상으로 영어 말하기 배우기

레슨 만드는 중...
1
Question 397.
2
What is flattening?
3
Short answer, flattening is about copying the content of an object instead of creating a reference to it.
4
Let's short answer.
5
Suppose you have an ArrayList of Integer
6
and inside this ArrayList there is an array and this array contains references to integer object.
7
This is inefficient CPU wise and memory wise.
8
CPU wise
9
because every time you need to read the value of an
10
element you need to first follow the reference to this element
11
which may lead to a cache miss and a big performance hit.
12
Memory wise because all you need is to store a 32 bits int.
13
But because it is wrapped in an integer object, you end up storing a reference,
14
then an object with a header and possibly some bytes to preserve alignment in memory.
15
That may represent 128 bits in the memory of your application.
16
Flattening is about storing this integer as a value, getting rid of reference and the object.
17
One last word, it may look simple but it is actually really really complex and this is what Valhalla is doing.
18
Valhalla create this notion of value objects, that is objects that are just carrying a value and that can be flattened.
19
There are some very strong constraints and threatening but that will be for another time

이번 레슨에서 배울 내용

이번 영상은 자바 코딩 인터뷰 관련 질문에 대한 답변을 통해 "flattening"이라는 개념을 설명합니다. 영어로 기술적인 내용을 이해하고 표현하는 능력을 키우고, 동시에 영어 발음 교정과 회화 연습에 집중할 수 있습니다. 특히 IELTS 스피킹 준비에 필요한 명확한 발음과 논리적인 표현을 연습할 수 있는 좋은 기회입니다.

핵심 어휘 및 구문

  • flattening: (프로그래밍에서) 객체의 참조가 아닌 값을 복사하는 과정
  • reference: (컴퓨터 용어) 객체를 가리키는 주소
  • cache miss: 캐시에 원하는 데이터가 없어 메인 메모리에서 가져오는 현상
  • value object: 값만을 담고 있는 객체로, flattening이 가능한 객체
  • performance hit: 성능 저하

연습 팁: Shadow Speech 활용하기

이 영상은 기술적인 내용을 설명하기 때문에 속도가 다소 빠르고 명확합니다. Shadow speech를 할 때는 먼저 영상을 2-3번 듣고, 각 문장의 강세와 억양을 파악하세요. 특히 "flattening is about..."와 같은 구조는 IELTS 스피킹에서도 자주 사용되므로, 이 구문을 반복해서 연습해 명확하게 발음해 보세요. 영어 발음 교정에 도움이 되는 부분은 "integer", "alignment"와 같은 단어의 발음입니다. 각 음소를 분리해 연습한 후, 전체 단어를 연결해서 발음해 보세요. 또한, 영어 회화 연습을 위해선 기술적인 용어도 자연스럽게 사용할 수 있어야 하므로, "memory wise", "CPU wise"와 같은 표현을 활용해 자신의 말로 바꿔 말해 보는 것도 좋습니다. 작은 구간부터 시작해 점점 길게 늘려가면서, 발음과 리듬을 완벽하게 따라가는 것을 목표로 하세요. 이렇게 연습하면 shadowspeaks 뿐만 아니라, 전반적인 영어 실력도 크게 향상될 것입니다!

쉐도잉이란? 영어 실력을 빠르게 키우는 과학적 방법

쉐도잉(Shadowing)은 원래 전문 통역사 훈련을 위해 개발된 언어 학습 기법으로, 다언어 학자인 Dr. Alexander Arguelles에 의해 대중화된 방법입니다. 핵심 원리는 간단하지만 매우 강력합니다: 원어민의 영어를 들으면서 1~2초의 짧은 지연으로 즉시 소리 내어 따라 말하는 것——마치 '그림자(shadow)'처럼 화자를 따라가는 것입니다. 문법 공부나 수동적인 청취와 달리, 쉐도잉은 뇌와 입 근육이 동시에 실시간으로 영어를 처리하고 재현하도록 훈련합니다. 연구에 따르면 이 방법은 발음 정확도, 억양, 리듬, 연음, 청취력, 말하기 유창성을 크게 향상시킵니다. IELTS 스피킹 준비와 자연스러운 영어 소통을 원하는 분들에게 특히 효과적입니다.