SlideShare une entreprise Scribd logo
1  sur  20
世界のナベアツに Gauche で挑戦する 日本野望の会  総裁 吉田 茂   a.k.a.   yshigeru
アナタは誰ですか? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
言っておきますが… Q.  ご本人ですか ? A.  違います
言っておきますが… Q.  若き日の思い出 ? A.  違います
言っておきますが… Q.  ご親戚の方ですか ? A.  違います
吉田茂 でございます。
さて、
本日の野望 VS 世界のナベアツ氏 世界のナベアツに Gauche で挑戦したい !!
ナベアツ問題   1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになるプログラムを作成せよ。 問題: FizzBuzz 問題はもう古い!
((((1 から  40) ' まで数えて  3  の倍数  ' と  3  がつく数字  ' の時だけ ) ' アホに ) ' なります ) 分析 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになります。 ((((((((1 から  40) ' まで数えて  3  の倍数  ' と  3  がつく数字  ' の時だけ ) ' アホに ) ' なって  5  の倍数  ' の時だけ ) ' 犬っぽく ) ' なって  8  の倍数  ' の時だけ ) ' 気持ちよく ) ' なります ) 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになって、 5 の倍数のときだけ犬っぽくなって、 8 の倍数のときだけ気持ちよくなります。
(( ( (1 から   40)  ' まで数えて  3  の倍数  ' と  3  がつく数字  ' の時だけ ) ' アホに )  ' なります ) 分析 1から40まで数えて、3の倍数と3がつく数字のときだけアホになります。 ((((((( (1 から  40)  'まで数えて 3 の倍数 'と 3 がつく数字 'の時だけ) 'アホに) 'なって 5 の倍数 'の時だけ) '犬っぽく) 'なって 8 の倍数 'の時だけ) '気持ちよく) ' なります ) 1から40まで数えて、3の倍数と3がつく数字のときだけアホになって、5の倍数のときだけ犬っぽくなって、8の倍数のときだけ気持ちよくなります。 最初は (1 から  n) 出だしは「 (1 から  n) 」 最後は「 ' なります」 最後は「 ' なります」
((((1 から  40)   ' まで数えて  3  の倍数  ' と  3  がつく数字  ' の時だけ ) ' アホに ) ' なります ) 分析 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになります。 ((((((((1 から  40)  ' まで数えて  3  の倍数  ' と  3  がつく数字  ' の時だけ ) ' アホに ) ' なって  5  の倍数  ' の時だけ ) ' 犬っぽく ) ' なって  8  の倍数  ' の時だけ ) ' 気持ちよく ) ' なります ) 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになって、 5 の倍数のときだけ犬っぽくなって、 8 の倍数のときだけ気持ちよくなります。 「 ' まで数えて」、「 ' なって」の後は条件 「 ' まで数えて」、「 ' なって」の後は条件 条件は「と」でつながることもある
((((1 から  40) ' まで数えて  3  の倍数  ' と  3  がつく数字  ' の時だけ )  ' アホに ) ' なります ) 分析 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになります。 ((((((((1 から  40) ' まで数えて  3  の倍数  ' と  3  がつく数字  ' の時だけ )  ' アホに ) ' なって  5  の倍数  ' の時だけ )  ' 犬っぽく ) ' なって  8  の倍数  ' の時だけ )  ' 気持ちよく ) ' なります ) 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになって、 5 の倍数のときだけ犬っぽくなって、 8 の倍数のときだけ気持ちよくなります。 条件の後は、動作を表す 「 ' アホに」、「 ' 犬っぽく」、「 ' 気持ちよく」 条件の後は、動作を表す 「 ' アホに」、「 ' 犬っぽく」、「 ' 気持ちよく」
ソースコード ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],ナベアツ関数発動!! 条件を生成 して登録 動作を登録
ソースコード ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],条件関数 条件の連結 条件の生成
ソースコード ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],動作を表す関数 アホになったり、犬っぽくなったり、気持ちよくなったり 文字列の変換を行う。
ソースコード ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],ナベアツ関数の本丸 数列に条件関数を適用し、真ならば、動作関数を適用する
ソースコード ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],数をひらがな表記に変換する
実演
次回はあらびき団で お会いしましょう! ご清聴ありがとうございました

Contenu connexe

Dernier

PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000Shota Ito
 
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directoryosamut
 
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxIoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxAtomu Hidaka
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略Ryo Sasaki
 
UPWARD_share_company_information_20240415.pdf
UPWARD_share_company_information_20240415.pdfUPWARD_share_company_information_20240415.pdf
UPWARD_share_company_information_20240415.pdffurutsuka
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Danieldanielhu54
 
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。iPride Co., Ltd.
 
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ       2024/04/12の勉強会で発表されたものです。新人研修のまとめ       2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。iPride Co., Ltd.
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムsugiuralab
 

Dernier (9)

PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
 
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
 
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxIoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
 
UPWARD_share_company_information_20240415.pdf
UPWARD_share_company_information_20240415.pdfUPWARD_share_company_information_20240415.pdf
UPWARD_share_company_information_20240415.pdf
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
 
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
 
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ       2024/04/12の勉強会で発表されたものです。新人研修のまとめ       2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
 

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
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...
 

世界のナベアツにGaucheで挑戦する

  • 1. 世界のナベアツに Gauche で挑戦する 日本野望の会 総裁 吉田 茂 a.k.a. yshigeru
  • 2.
  • 3. 言っておきますが… Q. ご本人ですか ? A. 違います
  • 4. 言っておきますが… Q. 若き日の思い出 ? A. 違います
  • 5. 言っておきますが… Q. ご親戚の方ですか ? A. 違います
  • 8. 本日の野望 VS 世界のナベアツ氏 世界のナベアツに Gauche で挑戦したい !!
  • 9. ナベアツ問題   1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになるプログラムを作成せよ。 問題: FizzBuzz 問題はもう古い!
  • 10. ((((1 から 40) ' まで数えて 3 の倍数 ' と 3 がつく数字 ' の時だけ ) ' アホに ) ' なります ) 分析 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになります。 ((((((((1 から 40) ' まで数えて 3 の倍数 ' と 3 がつく数字 ' の時だけ ) ' アホに ) ' なって 5 の倍数 ' の時だけ ) ' 犬っぽく ) ' なって 8 の倍数 ' の時だけ ) ' 気持ちよく ) ' なります ) 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになって、 5 の倍数のときだけ犬っぽくなって、 8 の倍数のときだけ気持ちよくなります。
  • 11. (( ( (1 から 40) ' まで数えて 3 の倍数 ' と 3 がつく数字 ' の時だけ ) ' アホに ) ' なります ) 分析 1から40まで数えて、3の倍数と3がつく数字のときだけアホになります。 ((((((( (1 から 40) 'まで数えて 3 の倍数 'と 3 がつく数字 'の時だけ) 'アホに) 'なって 5 の倍数 'の時だけ) '犬っぽく) 'なって 8 の倍数 'の時だけ) '気持ちよく) ' なります ) 1から40まで数えて、3の倍数と3がつく数字のときだけアホになって、5の倍数のときだけ犬っぽくなって、8の倍数のときだけ気持ちよくなります。 最初は (1 から n) 出だしは「 (1 から n) 」 最後は「 ' なります」 最後は「 ' なります」
  • 12. ((((1 から 40) ' まで数えて 3 の倍数 ' と 3 がつく数字 ' の時だけ ) ' アホに ) ' なります ) 分析 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになります。 ((((((((1 から 40) ' まで数えて 3 の倍数 ' と 3 がつく数字 ' の時だけ ) ' アホに ) ' なって 5 の倍数 ' の時だけ ) ' 犬っぽく ) ' なって 8 の倍数 ' の時だけ ) ' 気持ちよく ) ' なります ) 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになって、 5 の倍数のときだけ犬っぽくなって、 8 の倍数のときだけ気持ちよくなります。 「 ' まで数えて」、「 ' なって」の後は条件 「 ' まで数えて」、「 ' なって」の後は条件 条件は「と」でつながることもある
  • 13. ((((1 から 40) ' まで数えて 3 の倍数 ' と 3 がつく数字 ' の時だけ ) ' アホに ) ' なります ) 分析 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになります。 ((((((((1 から 40) ' まで数えて 3 の倍数 ' と 3 がつく数字 ' の時だけ ) ' アホに ) ' なって 5 の倍数 ' の時だけ ) ' 犬っぽく ) ' なって 8 の倍数 ' の時だけ ) ' 気持ちよく ) ' なります ) 1 から 40 まで数えて、 3 の倍数と 3 がつく数字のときだけアホになって、 5 の倍数のときだけ犬っぽくなって、 8 の倍数のときだけ気持ちよくなります。 条件の後は、動作を表す 「 ' アホに」、「 ' 犬っぽく」、「 ' 気持ちよく」 条件の後は、動作を表す 「 ' アホに」、「 ' 犬っぽく」、「 ' 気持ちよく」
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.