Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
programming free trial lesson
Search
Masahiro Kamata
April 29, 2019
Programming
0
68
programming free trial lesson
Masahiro Kamata
April 29, 2019
Tweet
Share
More Decks by Masahiro Kamata
See All by Masahiro Kamata
Engineer Onboarding
kamatari
2
1k
Engineer Manager & Different Culture
kamatari
1
580
EM 1年目とはじめての壁について
kamatari
1
580
Growth of Employees
kamatari
0
85
Retrospective for startup
kamatari
0
84
KPTスターターキット
kamatari
0
120
なんなんだ Programming / what is programming
kamatari
0
45
Other Decks in Programming
See All in Programming
なぜ強調表示できず ** が表示されるのか — Perlで始まったMarkdownの歴史と日本語文書における課題
kwahiro
12
7.4k
Duke on CRaC with Jakarta EE
ivargrimstad
0
330
モダンJSフレームワークのビルドプロセス 〜なぜReactは503行、Svelteは12行なのか〜
fuuki12
0
150
全員アーキテクトで挑む、 巨大で高密度なドメインの紐解き方
agatan
8
11k
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
710
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 1
philipschwarz
PRO
0
110
FluorTracer / RayTracingCamp11
kugimasa
0
100
S3 VectorsとStrands Agentsを利用したAgentic RAGシステムの構築
tosuri13
4
220
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
170
TUIライブラリつくってみた / i-just-make-TUI-library
kazto
1
190
Querying Design System デザインシステムの意思決定を支える構造検索
ikumatadokoro
1
1.2k
関数実行の裏側では何が起きているのか?
minop1205
1
310
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
303
21k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Writing Fast Ruby
sferik
630
62k
It's Worth the Effort
3n
187
29k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
A Tale of Four Properties
chriscoyier
162
23k
Transcript
ϓϩάϥϛϯά ମݧतۀ Kamata masahiro
༰ • ϓϩάϥϛϯάͱʁʹ͍ͭͯ • ϓϩάϥϛϯάԋशͷઆ໌ͱ࣮श
ϓϩάϥϛϯάͱʁ
ϓϩάϥϛϯάͱ w ྫ͑ʜ w ਅౡ͞Μʹ͓ئ͍Λ͢Δͱ͖ɺຊޠͰ͓ئ͍͠·͢ΑͶ ຊޠ ʮਅౡ͞ΜɺࢲͷࣸਅΛࡱ͍ͬͯͩ͘͞ʯ
ϓϩάϥϛϯάͱ w ίϯϐϡʔλʹ͓ئ͍Λ͢Δͱ͖ʹ͏ʮݴ༿ʯ͕ ϓϩάϥϛϯάݴޠͰ͢ ϓϩάϥϛϯάݴޠ QSJOU bEJTQMBZJNBHF`
ϓϩάϥϛϯάͱ • ຊਓʹɺຊޠͰ͓ئ͍͢Δ • ίϯϐϡʔλʹɺϓϩάϥϛϯάݴޠͰ͓ ئ͍͢Δ • ϓϩάϥϛϯάݴޠΛॻ͘͜ͱΛϓϩάϥϛϯά ͱݺΜͰ͍·͢
ϓϩάϥϛϯάͱ • දʹ͢Δͱ͜ͷΑ͏ͳײ͡ ରίϯϐϡʔλ ରຊਓ ϓϩάϥϛϯάݴޠ ຊޠ ϓϩάϥϛϯά ຊޠΛॻ͘ ϓϩάϥϜ
จষ
ϓϩάϥϛϯάͱ • ͱ͜ΖͰɺʮԿΛʯίϯϐϡʔλʹ͓ئ͍͢ Δͷ͔
ϓϩάϥϛϯάͱ ݱࡏɺίϯϐϡʔλࣗͰߟ͑Δ͜ͱ͕Ͱ͖·ͤΜ ͍Ζ͍Ζͳ͜ͱ͕Ͱ͖Δͷɺશͯͷಈ࡞Λਓ͕ؒ ʮYYͨ͠Βɺ˛˛͍ͯͩ͘͠͞ʯͱɺ ϓϩάϥϛϯάݴޠͰ͓ئ͍ͯ͋͠Δ͔ΒͰ͢ ྫ ʮը໘ӈ্ͷϘλϯΛԡͨ͠Βɺը໘Λด͍ͯͩ͘͡͞ʯ ʮਅΜதͷ⾣ϘλϯΛԡͨ͠ΒɺಈըΛ࠶ੜ͍ͯͩ͘͠͞ʯ
ϓϩάϥϛϯάͱ • ʮԿΛʯϓϩάϥϛϯάͰ͓ئ͍͢Δͷ͔ • ͑ɿ ɹ͍Ζ͍ΖͳछྨͷʮYYͨ͠Βɺ˛˛ͯͩ͘͠͞ ͍ʯΛ͓ئ͍͠·͢
ϓϩάϥϛϯάݴޠͷछྨ
ϓϩάϥϛϯάݴޠͷछྨ w ϓϩάϥϛϯάݴޠʹ͍Ζ͍Ζͳछྨ͕͋Γ·͢ w ຊޠͷଞʹɺӳޠதࠃޠ͕͋Δͷͱಉ͡Ͱ͢
ϓϩάϥϛϯάݴޠͷछྨ • ݱͰϝδϟʔͳϓϩάϥϛϯάݴޠ w 1)1 w +BWB4DSJQU w 3VCZ w
4XJGU w +BWB w 1ZUIPO
ϓϩάϥϛϯάݴޠͷछྨ • ͳͥ͜Μͳʹ͍Ζ͍Ζ͋ΔͷͰ͠ΐ͏͔ʁ
ϓϩάϥϛϯάݴޠͷछྨ • ͳͥ͜Μͳʹ͍Ζ͍Ζ͋ΔͷͰ͠ΐ͏͔ʁ • ͑ɿ ΑΓྑ͍ϓϩάϥϛϯάݴޠΛ࡞Ζ͏ͱͯ͠ɺ։ൃ͢Δਓ ୡ͕͍Δ͔ΒͰ͢ ৽͍͠ं͕ͲΜͲΜ։ൃ͞ΕΔͷʹࣅ͍ͯ·͢
ϓϩάϥϛϯάݴޠͷछྨ • ͦΕͧΕͷಛΛ؆୯ʹհ͠·͢ w 1)1ɾɾɾXFCαʔϏεΛͭ͘ΔͨΊͷݴޠɻ'BDFCPPL1)1Ͱ࡞ΒΕ͍ͯ·͢ w +BWB4DSJQUɾɾɾXFCαʔϏεͷը໘ͷಈ͖Λ࡞ΔͨΊʹΑ͘ΘΕ͍ͯ·͢ w 3VCZɾɾɾ1)1ͱಉ༷ʹXFCαʔϏεΛ࡞ΔͷʹΑ͘ΘΕ͍ͯ·͢ w
4XJGUɾɾɾJ1IPOFͷΞϓϦΛ࡞ΔͨΊʹ։ൃ͞ΕͨݴޠͰ͢ w +BWBɾɾɾXFCαʔϏε͚ͩͰͳ͘ɺ"OESPJEͷΞϓϦ࡞Δ͜ͱ͕Ͱ͖·͢ w 1ZUIPOɾɾɾXFCαʔϏε͚ͩͰͳ͘ɺػցֶशσʔλੳͰΘΕ͍ͯ·͢
ϓϩάϥϛϯάݴޠͷछྨ • ࠓ͜ͷݴޠΛ͍·͢
Q & A
ࠓͷԋशͷઆ໌
ಇΫϦοΧʔ
ಇΫϦοΧʔ
ಇΫϦοΧʔ ૯ࢿ࢈1ԯԁΛ Ք͍Ͱ͍ͩ͘͞
ಇΫϦοΧʔ • ޮΑ͘ʮࢿ֨ʯɺʮෆ࿑ॴಘʯΛ֫ಘ͠ ͳ͕ΒɺߴಘΛࢦ͠·͠ΐ͏ • ·ͣ5ͬͯΈ·͠ΐ͏
5 ܭଌ
ಇΫϦοΧʔ • ͍͘ΒՔ͙͜ͱ͕Ͱ͖·͔ͨ͠ʁ • 10ສʙʁ • 100ສʙʁ • 1000ສʙʁ •
1ԯʙʁ
ಇΫϦοΧʔ • 1ԯԁΛՔ͙͍ͬͯ͏ͷ͍ͨΜͩ… • ࣾձ͖ͼ͍͠ • ϓϩάϥϜͰνʔτ͠·͠ΐ͏
ࠓͷԋश
ಇΫϦοΧʔ (ཪ) • ಇΫϦοΧʔΛىಈͨ͋͠ͱʮcʯΛԡ͢ͱ • ήʔϜૢ࡞ΛϓϩάϥϜ͔Βૢ࡞Ͱ͖Δը໘͕
ಇΫϦοΧʔ (ཪ) ←
ಇΫϦοΧʔͰ͑Δίʔυ ᶃ • cash ݱࡏͷ૯ࢿ࢈ • items ݱࡏͷΞΠςϜߪೖ • prices
ݱࡏͷΞΠςϜͷஈ • print(obj); ͨ͠ obj Λ͋Δఔݟͯ͘͢͠ Լ෦ͷࠇ৭ͷ෦ʹදࣔ͠·͢
ಇΫϦοΧʔͰ͑Δίʔυ ᶄ • start(); ήʔϜΛ࢝ΊΔϘλϯΛԡ͠·͢ • work(); ಇ͘ϘλϯΛԡ͠·͢ • purchase(id);
idͰࢦఆͨ͠ΞΠςϜΛങ͍·͢ • id: = 0 ~ 4 • loop(f, ms); ms Ͱࢦఆͨ͠ϛϦඵ͝ͱʹɺ f Λ࣮ߦ͠·͢
ಇΫϦοΧʔͰ͑Δίʔυ ᶄ • JavaScript
ͬͦ͘͞ϓϩάϥϛϯάͯ͠ Έ·͠ΐ͏
ಇΫϦοΧʔͰ͑Δίʔυ ᶃ • cash ݱࡏͷ૯ࢿ࢈ • items ݱࡏͷΞΠςϜߪೖ • prices
ݱࡏͷΞΠςϜͷஈ • print(obj); ͨ͠ obj Λ͋Δఔݟͯ͘͢͠ Լ෦ͷࠇ৭ͷ෦ʹදࣔ͠·͢
͡Ίͯͷϓϩάϥϛϯά // First Program start(); work(); print(' --DEBUG LOG --');
print(cash); print(items); print(prices);
͡Ίͯͷϓϩάϥϛϯά --DEBUG LOG -- 40 { affiliate: 0, kabu: 0,
programming: 0, shikaku: 0, tochi: 0 } { affiliate: 500, kabu: 2000, programming: 17000, shikaku: 10, tochi: 10000 }
ಇΫϦοΧʔͰ͑Δίʔυ ᶄ • start(); ήʔϜΛ࢝ΊΔϘλϯΛԡ͠·͢ • work(); ಇ͘ϘλϯΛԡ͠·͢ • purchase(id);
idͰࢦఆͨ͠ΞΠςϜΛങ͍·͢ • id: = 0 ~ 4 • loop(f, ms); ms Ͱࢦఆͨ͠ϛϦඵ͝ͱʹɺ f Λ࣮ߦ͠·͢
͡Ίͯͷϓϩάϥϛϯά start(); loop(function() { work(); purchase(0); }, 1); • 1msͰಇ͖ͳ͕Βɺࢿ֨Λ࠷Ͱऔಘ͢Δίʔυ
͡Ίͯͷϓϩάϥϛϯά • ͳΜͱͳ͘ݟ͖͑ͯ·͔ͨ͠ʁ • ͍··Ͱʹग़͖ͯͨྫΛͬͯϓϩάϥϜΛ վͯ͠Έ͍ͯͩ͘͞
10 ܭଌ
͡Ίͯͷϓϩάϥϛϯά • Ͳ͏Ͱ͔ͨ͠ʁ
͡Ίͯͷϓϩάϥϛϯά • 2ͭͷػೳͷհ (JavaScriptͷػೳ) • ݅จ • ܁Γฦ͠จ
݅จ start(); loop(function() { work(); if (cash < 1000) {
purchase(0); } }, 1); • ʮ͠ ~ ͳΒʯΛϓϩάϥϜͰॻ͘
݅จ start(); loop(function() { work(); if (cash < 1000) {
purchase(0); } }, 1); • ʮ͠ cash͕ɺ1000ະຬͳΒʯΛϓϩάϥϜͰॻ͘
܁Γฦ͠จ • X ճ ॲཧΛ܁Γฦ͢ ϓϩάϥϜΛॻ͘ͱ͖ start(); for (i=0;i<300;i++){ work();
}
܁Γฦ͠จ • 300 ճ ಇ͘Λ܁Γฦ͢ ϓϩάϥϜΛॻ͘ͱ͖ start(); for (i=0;i<300;i++){ work();
}
JavaScriptͷػೳ // cash ͕ 1000ະຬͷͱ͖͚ͩ purchase(0) Λ࣮ߦ if (cash <
1000) { purchase(0); } // 300ճ work() Λ܁Γฦ͢ for (i=0; i<300; i++) { work() }
30 ܭଌ
݁Ռൃද • ࣮ͷͱ͜Ζʹɺ1ԯΛୡ͕ͨ࣌ؒ͠දࣔ͞Ε ·͢ →
࠷݁Ռ
”ಇΫϦοΧʔ”Ͱݕࡧͯ͠Έ ͍ͯͩ͘͞ https://zeny.io/products/working-clicker/
(༨ஊ) ݱ࣮ੈքͷಇΫϦοΧʔ 1. Սۭͷ໊ٛͰຊΛ੍࡞ 2. Amazon kindleʹແྉͰग़ 3. ϓϩάϥϜͰϢʔβʔΛِͯ͠ɺେྔμϯϩʔυ &
ߴϨϏϡʔ 4. ϥϯΩϯάೖΓ 5. ຊͷ༗ྉԽ 6. ϥϯΩϯάΛݟͯɺҰൠϢʔβʔ͕ߪೖ 7. 2ԯԁͷച্ (Amazon2ؒ ؾ͔ͮͣ)
Q & A
HAPPY HACKING :)