プログラミングのストレスを軽減する3つの価値観【Imprementation Patterns】
記事更新日:2024-01-20
![サムネイル](https://tsukiusagi.biz/wp-content/uploads/2022/01/css.png)
価値観が
成果を生む
While programming it’s tempting to think only of the computer.
imprementation Patterns
However, good things happen when I think of others while I program.
プログラミングをしていると、コンピューターのことだけを考えたくなる。
しかし、プログラミングをしながら他の人のことを考えると、良いことが起こる。
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
パソコンとの対話が楽しいんだけど
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
実は、他者との対話を楽しむほうがいい
Communication – think of others –
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit3.png?resize=150%2C150&ssl=1)
他の人のことを考えると起こる、良いこと
- It is easier to read
- 読みやすくなる
- It is more cost-effective
- 費用対効果が良くなる
- My thinking is clearer
- 思考が明確になる
- My stress level drops
- ストレスが少なくなる
- I give myself a fresh perspective
- 新鮮な視点が自分の中に生まれる
- I meet some of my social needs
- 社会的ニーズを満たせる
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
なぜ、そうなるの
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
話すことで気づけることがあるから
自分の頭の中にあるものは、いつだって複雑すぎる
Every time a bit of logic was a little hard to explain,
imprementation Patterns
it was easier to rewrite the code than explain why the code was hard to understand.
ちょっとしたロジックを説明できないとき、
頑張ってコードを説明するよりも、コードを書き直してしまうほうが簡単だった。
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
複雑さを思い知ったときに、シンプルさを目指すようになる
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
一人で仕事してる場合は、考えるだけでもいい
「他の人がこれを見たらどう思うだろう?」
When I think, “How would someone else see this?”
imprementation Patterns
different neurons are firing than when I’m just focused on myself and my computer.
「他の人がこれを見たらどう思うだろう?」と考えるとき、
自分とコンピューターだけに集中しているときとは違うニューロンが発火する。
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
実際の会話があるかどうかではなく、考えるかどうか
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
考えてみるだけで、ストレスは劇的に変わる
コミュニケーションには realistic(現実感)がある
Focusing on communication improves thinking by being more realistic.
imprementation Patterns
コミュニケーションにフォーカスすると、
(うちに閉じこもった妄想に比べて)現実感が生まれるため、考え方が改善する
- 現実的な、現実に近い、現実に即している
- ものや状況が生き生きとして、生活感や実在感が感じられる
- 生きている実感がある
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
自分だけになると、妄想や架空の世界に入りがち
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit3.png?resize=150%2C150&ssl=1)
realisticは脳を活発化させる
- 脳の活発化
- Engaging more of my brain.
- ストレス緩和
- The reduced stress of knowing that I am taking care of business, doing the right thing.
ビジネスに責任をもっている感覚、正しい行動をしている感覚が、ストレスを軽減する
- The reduced stress of knowing that I am taking care of business, doing the right thing.
- 生きる実感
- As a socially oriented species, explicitly accounting for social issues is more realistic than working at pretending they don’t exist.
社会的な動物の一員として、社会問題にきちんと向き合うほうが、それを無視して働くよりも、生きている感覚がもてる
- As a socially oriented species, explicitly accounting for social issues is more realistic than working at pretending they don’t exist.
- 社会的な性質を持つ生物種
- 群れを形成し、相互に協力して生活する生物種
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
つまり、集団への貢献が人間の本能
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
だから、コミュニケーションが価値観の第一項目
プログラミングにおける3つの価値観 – values –
These values —communication, simplicity, and flexibility—
imprementation Patterns
color every decision I make while programming.
3つの価値観(コミュニケーション、シンプルさ、柔軟さ)が、
プログラミングにおける全ての決定を色付ける
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit3.png?resize=150%2C150&ssl=1)
“values” とは、人が大切にする道徳的な原則
- Communication
- コミュニケーション
- communicating with other people
- 他者との会話
- コミュニケーション
- Simplicity
- シンプルさ
- removing excess complexity from my code
- コードから過剰な複雑さをなくす
- シンプルさ
- Flexibility
- 柔軟さ
- keeping my options open
- (将来起こりうる)選択肢を開いておく
- 柔軟さ
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
プログラミングのベースは、実は道徳だった
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
人がいるから、Values(道徳)が必要になる
Simplicity
- The less excess complexity, the easier a system is to understand.
- 複雑さが少ないほど、システムは理解しやすくなる
- The more you focus on communication, the easier it is to see what complexity can be discarded.
- コミュニケーションに集中するほど、捨てるべき複雑さがわかる
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
コミュニケーションによって、シンプルさが生まれる
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
人がいるから、複雑さが気になってくる
ときにはシンプルさを放棄することもある
Sometimes, however, I find a simplification that would make a program harder to understand.
imprementation Patterns
I choose communication over simplicity in these cases.
ときには、シンプルさによってプログラムが理解しづらくなることもある。
このような場合、私はシンプルさよりもコミュニケーションを選びます。
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
人が理解できることが第一優先
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
やっぱり、コミュニケーション
Flexibility
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit3.png?resize=150%2C150&ssl=1)
柔軟さとは、選択肢が多いこと
The best programs offer many options for future extension
imprementation Patterns
ベストなプログラムは、将来起こりうる変更に選択肢をもたせる
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
「将来、変更する人がいる」という他者視点
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
けっきょく、コミュニケーション
I didn’t want to deal with sticky, inexplicable, annoying human beings.
imprementation Patterns
Programming as if people didn’t really exist paled after only a couple of decades.
Building ever-more-elaborate sugar castles in my mind became colorless and stale.
私は、面倒で厄介な人間関係を避けたかった。しかし、まるで人間が存在しないかのようなプログラミングは、数十年後には退屈になった。人間を無視した知的な追求は、無味乾燥なものとなった。
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/01/rabbit1-2.png?resize=150%2C150&ssl=1)
自分とパソコンだけの仕事をしていると空虚になる
![](https://i0.wp.com/tsukiusagi.biz/wp-content/uploads/2022/04/rabbit4-2-1.png?resize=150%2C150&ssl=1)
数十年の結論となると、感慨深い
think of others
while you program
他者を考えたプログラム
2024-01-20
編集後記:
この記事の内容がベストではないかもしれません。