たまには文法をきちんと解釈してみる。
最近 Refactoring の読み合わせをしているのですが、雰囲気で読んでいる箇所が多々あるなぁと痛感。
ということで、たまにはきちんと文法解釈してみようと思い立った今日この頃。
Code reviews help spread knowledge through a development team.*3
it's very hard for people to put themselves in the shoes of someone unfamiliar with the things they are working on.*8
- "Put youself in the other person's shoes."で「ほかの人の身になって考える」という意味になる。このような感じで、yourself や the other person を変えたりして、いろいろなバリエーションを作れる。
Reviews also give the opportunity for more people to suggest useful ideas.*9
I can only think of so many good ideas in a week.*12
- only が主語以外を修飾する場合は、動詞の前が普通。"I can think of only so many good ideas in a week." と書くことも可能。*13
- ロングマンの only (adv) 11 では、以下のように説明されています。
only so many/much used to say that there is a limited amount of quantity of something.
Having other people contribute makes my life easier, so I always look for many reviews.*14
As a result, I can come up with a second level of ideas that I would never have realized had I not refactored.*17
Not only are there suggestions, but also many suggestions are implemented there and then.*20
- "are there suggestions" は、文頭が否定語のための倒置。否定語が文頭に来ると、必ず主語と動詞は倒置される*21。
My experience suggests having one reviewer and the original author work on the code together.*22
This idea of active code review is taken to its limit with the Extreme Programming[Beck, XP] practice of Pair Programming.*24
Given software engineers infatuation with indirection, it may not surprise you to learn that most refactoring introduces more indirection into a program.*25
If the internals also are written in terms of intention in yet smaller pieces, you can write code that communicates most of the important information about its own structure.*28
- yet は、yet more/bigger/later のような使い方をして、「さらに〜」のような意味を持たせる。*29
For this means that while I certainly believe you should try refactoring for the real gains it can provide, you should also monitor its progress.*32
*1:Refactoring P59/L4
*2:参考:ロイヤル英文法 p610
*3:Refactoring P59/L6
*4:参考:ロイヤル英文法p466,467
*5:参考:ロイヤル英文法 p802
*6:Refactoring P59/L9
*7:参考:ロイヤル英文法 p691
*8:Refactoring P59/L10
*9:Refactoring P59/L12
*10:参考:ロイヤル英文法 p598
*11:参考:ロイヤル英文法 p801
*12:Refactoring P59/L13
*13:参考:ロイヤル英文法 p343
*14:Refactoring P59/L13
*15:参考:ロイヤル英文法 p390
*16:参考:ロイヤル英文法 p800
*17:Refactoring P59/L21
*18:参考:ロイヤル英文法 p769
*19:参考:ロイヤル英文法 p551
*20:Refactoring P59/L23
*21:参考:ロイヤル英文法 p770
*22:Refactoring P59/L26
*23:参考:ロイヤル英文法 p390
*24:Refactoring P59/L34
*25:Refactoring P61/L21
*27:参考:ロングマン現代アメリカ英語辞典 learn 2
*28:Refactoring P61/L35
*29:参考:ロングマン現代アメリカ英語辞典 yet 1-3
*30:Refactoring P62/L18
*31:参考:ロングマン現代アメリカ英語辞典 hang on 5
*32:Refactoring P63/L5
*33:参考:ロングマン現代アメリカ英語辞典 while 1-4
*34:参考:ロイヤル英文法 p458 提案・要望・命令・決定などの表現