シャドーイング練習: 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」について説明するこの動画は、shadow speak(シャドーイング)の練習に最適です。専門用語が含まれながらも、話し手の発音が明瞭でリズムが安定しているため、初心者でも追いやすいです。また、説明が論理的に展開されているので、内容を理解しながら英語の構造も学べます。動画で英語学習するメリットを十分に活かした素材と言えるでしょう。

自然な表現を分解してみる

  • 「Short answer, flattening is about copying the content of an object instead of creating a reference to it.」
    「Short answer」で簡潔に答えることを示し、「instead of」で対比を明確にする。日常会話でも説明を簡潔にする際に使えるフレーズです。
  • 「This is inefficient CPU wise and memory wise.」
    「~wise」で「~の観点から」という意味を表し、単語数を減らしながら情報を伝える。技術的な説明でよく使われ、自然な流れを作ります。
  • 「That may represent 128 bits in the memory of your application.」
    「may」で推測を表し、「in the memory of your application」で具体的な場所を示す。曖昧さを残しながらも正確性を保つ表現です。

効果的な練習ルーチン

英語シャドーイングの練習として、以下のステップを試してみてください。まず動画を1文ずつ再生し、すぐにその後に同じ内容を発音して録音します。録音した自分の声と動画の音声を比較し、リズムやアクセントの違いを確認します。特に「CPU wise and memory wise」のようなフレーズは、速さを抑えてはっきり発音することが重要です。1日10分、1週間続けると、自然な発話ができるようになります。shadowing siteなどを利用して、他の素材と組み合わせて練習するのもおすすめです。

シャドーイングとは?英語上達に効果的な理由

シャドーイング(Shadowing)は、もともとプロの通訳者養成プログラムで開発された言語学習法で、多言語習得者として知られるDr. Alexander Arguelles によって広く普及されました。方法はシンプルですが非常に効果的:ネイティブスピーカーの英語を聞きながら、1〜2秒の遅延で声に出してすぐに繰り返す——まるで「影(shadow)」のように話者を追いかけます。文法ドリルや受動的なリスニングと異なり、シャドーイングは脳と口の筋肉が同時にリアルタイムで英語を処理・再現することを強制します。研究により、発音精度、抑揚、リズム、連音、リスニング力、そして会話の流暢さが大幅に向上することが確認されています。IELTSスピーキング対策や自然な英語コミュニケーションを目指す方に特におすすめです。