Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ツールとしてのプログラミング
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Takuma Masuda
March 08, 2021
23
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ツールとしてのプログラミング
社内勉強会用に作成したスライドです。プログラミングの初歩の初歩です。
Takuma Masuda
March 08, 2021
More Decks by Takuma Masuda
See All by Takuma Masuda
「ゼロトラスト」のキホンのキ
tmgauss
0
240
ハッカーがあなたのECサイトに不正にアクセスする方法
tmgauss
0
59
Featured
See All Featured
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
200
Test your architecture with Archunit
thirion
1
2.3k
Designing for Performance
lara
611
70k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.4k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
Facilitating Awesome Meetings
lara
57
7.1k
Between Models and Reality
mayunak
4
390
Transcript
Programming as a Tool
Overview Learn Build
Overview Learn Build
Goal Use programming as a tool.
Programming as an option Data Plug-in
Programming as an option Data Plug-in
Why Programming? Why not Excel? VS
Why Programming? In short, both are okay: nothing but a
tool. VS
Why Programming? In short, both are okay: nothing but a
tool. VS But sometimes, it is better to use programming than Excel.
Programming over Excel You can do more things. 1 You
can process data much faster. 3 Web You can have an access to resources on Web. 2
Overview Learn Build
Programming in 10 minutes 10 10 Get necessary knowledge in
just 10 minutes.
Programming Language Python Choose Python because it is relatively easy
to use.
Variables You can put in variables numbers, strings and so
on x = 1 # xʹ1Λೖ print(x) # ग़ྗɿ1 my_str = ‘Hello, world!’ print(my_str) # ग़ྗɿHello, world!
Calculation You can calculate something with variables. x = 1
+ 2 # 3 y = 3 + x # 6 str_head = ‘Hello, ’ your_name = ‘Takuma’ str_tail = ‘!’ my_str = str_head + your_name + str_tail
if if Execute different processing according to the given condition.
x = 1 + 2 # 3 y = 3 + x # 6 str_head = ‘Hello, ’ your_name = ‘Takuma’ str_tail = ‘!’ my_str = str_head + your_name + str_tail x = 1 if x == 1: print(‘x is 1’) else: print(‘x is not 1’)
for for Execute the same processing many times. x =
1 + 2 # 3 y = 3 + x # 6 str_head = ‘Hello, ’ your_name = ‘Takuma’ str_tail = ‘!’ my_str = str_head + your_name + str_tail N = 3 for i in range(N): print(i) # ग़ྗɿ0, 1, 2
List You can put objects like numbers and strings in
a list. x = 1 + 2 # 3 y = 3 + x # 6 str_head = ‘Hello, ’ your_name = ‘Takuma’ str_tail = ‘!’ my_str = str_head + your_name + str_tail list = [1, 8, 5, 4] for i in range(4): print(list[i]) # ग़ྗ: 1, 8, 5, 4
Function You can reuse the same processing with functions. x
= 1 + 2 # 3 y = 3 + x # 6 str_head = ‘Hello, ’ your_name = ‘Takuma’ str_tail = ‘!’ my_str = str_head + your_name + str_tail def incr_two(x): return x + 2 y = 4 ans = incr_two(y) print(ans) # ग़ྗ 6
Library On the shoulders of Giants
Let’s try it! Let’s try to write your own codes.
Overview Learn Build
Let’s build it! Let’s try to build it.
Let’s build it! You are given a list of clients.
1 Finish the quest by filling up the blanks. 3 Web You wanna guess each link to the companies’ web. 2
Toda raba!