SlideShare a Scribd company logo
1 of 36
Download to read offline
プログラムのスゴイところと
オブジェクト指向(そたの解釈)
これから話すことは
かなり抽象的なお話ですご了承ください。
(自分の頭を整理する意味もあり今回発表し
ています)
プログラムのスゴイところ
・純度100%の情報を表現することができる
・プログラマが神になることができる
(プログラム内限定)
純度100%の情報を表現できる
日本語(言葉)で表現しようとすると純度
100%にならない
この人はりんごを食べている
=>何色の?
この人は赤いりんごを食べている
=>どんな赤?
この人は #D25863 の赤いりんごを
食べている
=>何勝手に8bitカラーコードにして  
るの?
 情報量落ちるでしょ?
RGBでしてくれない?
この人は (210,88,99) の赤いりんごを
食べている
=>いやだから小数点以下切り捨てに
しないで
この人はりんごを食べている
=>どんなりんご?
この人は甘いりんごを食べている
=>どのくらい甘いの?
この人はりんごの品種の中でもトップク
ラスに甘いジョナゴールドを食べている
=>トップクラス?
  糖度はどのくらいなの?
この人はりんごの品種の中でもトップク
ラスに甘い糖度15を誇るジョナゴール
ドを食べている
=>いやだから小数点以下。。。
てかこの個体が糖度15って本当
に言える??
あと果糖とブドウ糖はどのくらい  
ではプログラムでは?
エディタへGO
なぜ??
対象としている世界が違うから
もうちょっと違う視点で
もしプログラムがない世界だったら
あのーログインしたいんですけど
ログインですね!少々お待ちください
Emailとパスワードを対応させる本が入っている棚
一生懸命探す
あった!
この先に進めるチケットをあげよう
チケットがないと入れない部屋で稼働を入力する
人力の問題点
● 人力でやるためログイン処理の過程が不完全
● 時間かかる
● 保守のコスト
● 場所に行くコスト
● ログインが100%の精度でできる
● メールが絶対的なエビデンス力を持つ
● コンピュータ将棋が強い速い
プログラムで表現が
正確にできる恩恵
プログラマが神になることができる
オブジェクト指向(ソ
タの解釈)
object = 物、物体
オブジェクト指向の3原則
● 継承
● カプセル化
● ポリモーフィズム(多態)
3原則を使用したからといって
そのプログラムは必ず
オブジェクト指向にはならないのでは??
(十分条件だが必要条件ではないのでは?)
extendsで継承したとしても
やっていることはimportと変わらない
protected…
親クラスに存在すプロパティか調べて
アクセス判断するメソッドを作れば
実装できる
ポリモーフィズム。。
メソッド内で親クラスのメソッドを呼び出せば実
装できる
言葉にはできない違和感。。。。。。。。
それではソタの思うオブジェクト指向は?
すべての神に伝わる、表現の最適化
(プログラムの最適化じゃないよ)

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

プログラムのスゴイところとオブジェクト指向