@@ -518,38 +518,40 @@ which is really important information (e.g. @rb_str_length@).
518518
519519h4. Read documents
520520
521- 内部構造を解説したドキュメントが入っていることもある。
522- 特に「 @HACKING@」といった名前のファイルには注意だ。
521+ Sometimes a document describes the internal structure is included.
522+ Especially be careful of a file named @HACKING@ etc.
523523
524- h4. ディレクトリ構造を読む
524+ h4. Read the directory structure
525525
526- どういう方針でディレクトリが分割されているのか見る。
527- そのプログラムがどういう作りになっているのか、
528- どういうパートがあるのか、概要を把握する。
526+ You should read in what policy the directories are devided.
527+ You can grasp the overview about how the program is structured, and what the parts are.
529528
530- h4. ファイル構成を読む
529+ h4. Read the configuration of the files
531530
532- ファイルの中に入っている関数(名)も合わせて見ながら、
533- どういう方針でファイルが分割されているのか見る。ファイル名は
534- 有効期間が非常に長いコメントのようなものであり、注目すべきである。
531+ While browsing the name of the functions, see how the file files are divided.
532+ You should pay attention to the file names because they are like comments
533+ whose lifetime is very long.
535534
535+ Another important viewpoint is to locate a module in the file.
536+ Functions for the module are thought to be located in a series.
537+ So, you can understand the module's structure from the order of functions.
536538
537- さらに、ファイルの中にまたモジュールがある場合、モジュールを構成する関
538- 数は近くにまとまっているはずだ。つまり関数の並び順からモジュール構成
539- を見付けることができる。
539+ h4. Investigate abbreviations
540540
541- h4. 略語の調査
542-
543- わかりにくい略語があればリストアップしておいて早めに調べる。
544- 例えば「GC」と書いてあった場合、それがGarbage Collectionなのか
545- それともGraphic Contextなのかで随分と話が違ってしまう。
541+ As you encounter ambiguous abbreviations, make a list of them and investigate
542+ each of them as early as possible. For example, suppose @GC@ is short for Garbage Collection.
543+ But the context will be very different if it's actually short for Graphic Context.
546544
545+ Abbreviations for a program are generally made by the methods like taking
546+ the initial letters or dropping the vowels. Note especially the fact that
547+ popular abbreviations in the fields of the program's target are used without notice.
548+ You should be familiar with them at an early stage.
547549
548550プログラム関係の略語はたいてい単語の頭文字を取るとか、単語から母音を落とす、
549551という方法で作られる。特に対象プログラムの分野で有名な略語は問答無用で
550552使われるのであらかじめチェックしておこう。
551553
552- h4. データ構造を知る
554+ h4. Understand data structure
553555
554556データとコードが並んでいたら、まずデータ構造から調べるべきである。つま
555557りCならヘッダファイルから眺めるほうが、たぶんいい。そのときはファイル
@@ -562,7 +564,7 @@ h4. データ構造を知る
562564リストだろうと想像できる。同様に、@parent@・@children@・@sibling@と言った要
563565素があれば十中八九ツリーだ。@prev@ならスタックだろう。
564566
565- h4. 関数同士の呼び出し関係を把握する
567+ h4. Understand the relationship between functions
566568
567569関数同士の関係は名前の次に重要な情報だ。呼び出し関係を表現したものを
568570特に「コールグラフ」と言うが、これは非常に便利である。このへんは
@@ -574,7 +576,7 @@ h4. 関数同士の呼び出し関係を把握する
574576筆者が本書のために@ruby@を解析したときは、小さなコマンド言語と
575577パーサを適当にRubyで書き、@graphviz@というツールに渡して半自動生成した。
576578
577- h4. 関数を読む
579+ h4. Read functions
578580
579581動作を読んで、関数のやることを一言で説明できるようにする。関数関連図を
580582見ながらパートごとに読んでいくのがいい。
0 commit comments