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
Swiftコードバトル必勝法
Search
toshi0383
September 05, 2024
Programming
1
200
Swiftコードバトル必勝法
The Bash - iOSDC Japan 2024で発表した内容です。
https://hey.connpass.com/event/325419/
toshi0383
September 05, 2024
Tweet
Share
More Decks by toshi0383
See All by toshi0383
CoreDataはじめました
toshi0383
0
97
Sheets API使ってみた
toshi0383
2
250
visionOSについてGlobeeが取り組んでいること
toshi0383
0
430
agile20150512-150512055145-lva1-app6892.pdf
toshi0383
0
120
たのしいAirPlay
toshi0383
1
660
Profiling using Signpost
toshi0383
2
870
AVPlayer周りの設計tips
toshi0383
6
810
cmdshelf::from("Swift")
toshi0383
3
830
AbemaTV iOSのダウンロード再生機能
toshi0383
4
940
Other Decks in Programming
See All in Programming
Arm移行タイムアタック
qnighy
0
340
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
イベント駆動で成長して委員会
happymana
1
340
Quine, Polyglot, 良いコード
qnighy
4
650
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.7k
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
980
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
430
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
300
Jakarta EE meets AI
ivargrimstad
0
230
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Documentation Writing (for coders)
carmenintech
65
4.4k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
A Philosophy of Restraint
colly
203
16k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
GitHub's CSS Performance
jonrohan
1030
460k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Designing for humans not robots
tammielis
250
25k
Transcript
toshi0383 20249݄4(Ր) The Bash - iOSDC Japan 2024 @ STORES
OFFICE Swiftίʔυότϧ ඞউ๏
https://note.com/toshi0383/n/nf3ca213837e4 SwiftίʔυότϧͰ༏উͨ͠
ͱ͠ԬͰ͢ɻΑΖ͓͘͠ئ͍͠·͢ɻ ࣗݾհ
Swiftίʔυότϧඞউ๏ʢΞϯΧϯϑΝϨϯε༧ఆͩͬͨωλʣ ࠓ͢͜ͱ • ͍ίʔυʹײಈ͢Δ γΣϧܳฤ • ͍ίʔυʹײಈ͢Δ ؔܕϓϩάϥϛϯάฤ • ຊ൪ϝϯλϧΛ͑Δ
• ศརπʔϧͰരఏग़
͍ίʔυʹײಈ͢Δ γΣϧܳฤ
• “#γΣϧܳ” ͷλάΛर͍γΣϧεΫϦϓτͱ࣮ͯ͠ߦ͠ɺ݁ՌΛߘ ͢Δbot • X(Twitter)͔ΒผͷSNSʁʹҠಈ༷ͨ͠ • ṖͷεΫϦϓτ͔Βੜ͞ΕͨṖͷίϯςϯπΛָ͠ΉจԽɻ ࠷ॳ͔ΒऄͰ͕͢ γΣϧܳbot͍ͬͯͬͯ·͔͢
None
None
None
None
ʮγΣϧܳʯʹ͍ͭͯղઆ͠·͢ Ͳ͔͜ΒಥͬࠐΜͰ͍͍͔Θ͔Βͳ͍ͱࢥ͍·͕͢ • https://b.ued a .tech/?p a ge=01434#γΣϧܳͱ • ཁ͢ΔʹϫϯϥΠφʔͷ͜ͱ
• ࢝ͷγΣϧܳਓ: ্ా ོҰ͞Μ
աڈΞʔΧΠϒಈը γΣϧܳษڧձ • https://b.ued a .tech/?p a ge=00684#γΣϧܳษڧձҰཡ
ͷྫ • ͷཻSwiftίʔυότϧʹ͔ͳΓ͍ۙ • ৽͍͠ൃݟ͕ଟͯ͘໘ന͍ • ͜͏͍͏ίϛϡχςΟΛ͍ͯΈ͍͍ͯΜͰͳ͍Ͱ͠ΐ͏͔
͍ίʔυʹײಈ͢Δ ؔܕϓϩάϥϛϯάฤ
ڝٕϓϩάϥϛϯάͷαΠτ HaskellΛֶͿతͰ࢝Ίͨ Codewars
Codewarsͷಛ • ྑ͘ͳ͍ͱ͜Ζ: AtCoderͱҧ੍ͬͯ࣌ؒݶ͕ͳ͍ͷͰɺதͯ͠ؾ ͕ͭ͘ͱேʹͳͬͯ͠·͏ɻ • ྑ͍ͱ͜Ζ: ͷཻ͕෯͍ɻ؆୯Ͱ͙͢ղ͚Δͨ͘͞Μ ͋ΔɻධՁج४͕ʮBest Pr
a cticeʯʮCleverʯͷ2࣠͋Γɺ໘ന͍ɻ
None
ղ͚·͔ͨ͠ʁ Codewars
Haskell ؔܕϓϩάϥϛϯάͷָ͠͞ • ͜ͷ࠶ؼΛ͏ͱεο ΩϦ͢Δέʔε • ڧྗͳύλʔϯϚονه๏ • खଓ͖తͳॻ͖ํ͕Ͱ͖ͳ͍ ͷͰɺ͘ͳΓ͍͢ҹ
• ͪͳΈʹม໊جຊ1-2จ ࣈͷจԽ • ॳ৺ऀઢͰ͔͠ίϝϯτͰ ͖ͳ͍͚Ͳ
AtCoderͰഓΘΕͳ͍ײ֮ͩͱࢥ͏ɻ ίʔυͷγϯϓϧ͞ʹඒֶΛײ͡Δ͔Ͳ͏͔ • γΣϧܳਓΛબͿ͔͠Εͳ͍͚ͲɺCodew a rs͓͢͢ΊͰ͢ɻ
ຊ൪ϝϯλϧΛ͑Δ
ʮਓʹݟΒΕͳ͕Βίʔυॻ͘ͷۓு͢Δʯ • ਓʹը໘ΛݟΒΕͳ͕ΒίʔυΛॻ͘ͷීஈͷڥͱҧ͍͗͢ ͯɺ݁ߏۓு͢Δਓ͕ଟ͍༷ɻ • ͱ͠Ԭશવେৎͩͬͨɻ
ͱ͠Ԭͷ߹ • ұϊܕʮΧʔτϨʔεʯ ͣͬͱےτϨΛ͠ͳ͕ΒἤΓӡసΛड͚͍ͯΔ Α͏ͳঢ়ଶɻ • ್ϊܕʮδϟϜηογϣϯʯ ॳΊ·ͯ͠ͷ૬खʹશ෦ݟΒΕͳ͕Βԋ͢ Δɻ •
ϓϨογϟʔʹ͑ͳ͕Βࣗͷ࣮ྗΛग़͠ Δ׆ಈͱɺͦͷͨΊͷܭըతͳ࿉ɻ • ͨͩ͜͏͍͏ͷ݁ߏݸਓ͕ࠩ͋Γͦ͏ͳͷͰ..
ͱ͠Ԭͷ߹ • ұϊܕʮΧʔτϨʔεʯ ͣͬͱےτϨΛ͠ͳ͕ΒἤΓӡసΛड͚͍ͯΔ Α͏ͳঢ়ଶɻ • ್ϊܕʮδϟϜηογϣϯʯ ॳΊ·ͯ͠ͷ૬खʹશ෦ݟΒΕͳ͕Βԋ͢ Δɻ •
ϓϨογϟʔʹ͑ͳ͕Βࣗͷ࣮ྗΛग़͠ Δ׆ಈͱɺͦͷͨΊͷܭըతͳ࿉ɻ • ͨͩ͜͏͍͏ͷ݁ߏݸਓ͕ࠩ͋Γͦ͏ͳͷͰ.. ֤ࣗ🙏
ศརπʔϧͰരఏग़
SwiftCodeBattleHelper.app • ίʔυότϧ༧બͷলΛ ׆͔͠ɺͦͷिͷAtCoder ͷίϯςετͰςετӡ ༻ɺiOSDCʹຬΛ࣋͠ ͯೖɻ • ࣮ࣗମXcodeͰߦ͏ɻ ίϯύΠϧ࣮ͯ͠ߦ͢Δͩ
͚ͷm a cOSΞϓϦɻ • ͜ΕͰ30ඵՔ͛ͨͱࢥ ͏ɻ • ੜAIར༻ͳ͠ɻ
ࣅͨΑ͏ͳπʔϧ৭ʑ͋Δ༷ ੜAIར༻ͳ͠ • https://info. a tcoder.jp/entry/llm- a bc-rules-j a ?
_gl=1*16ko9gi*_g a *MTc5NDQ3MTMwMy4xNzI0NzcxMjc4*_g a _RC512FD18N*MTcyNTM1MDY0Ny40LjEuMTcyNTM1MDY1Mi4wLjAuMA.. • ࠓճͷίʔυότϧͰ Copilotڐ༰ͩͬ ͨɻ • ͷқʹΑͬͯ ͜͏͍͏ϨΪϡϨʔ γϣϯඞཁͳͷ͔ʁ
• https://github.com/toshi0383/SwiftCodeB a ttleHelper ެ։͠·ͨ͠ • ༻๏ɾ༻ྔΛक͓͍͍ͬͯͩ͘͞ɻ • ίϯτϦϏϡʔτ͓ؾܰʹɻ
ίʔυότϧඞউ๏ ·ͱΊ • ͍ίʔυʹײಈ͢Δ • ຊ൪ϝϯλϧΛ͑Δ • ศརπʔϧͰരఏग़ • iOSDC͓ࡇΓͳͷͰɺউͭ͜ͱΑΓɺʮίϛϡχςΟͷͨΊʹԿ
͕Ͱ͖Δ͔ʯΛߟ͑Δ͜ͱΛେࣄʹ͍ͨ͠ͱࢥ͍ͬͯͨɻ ʮ୭͔ͷͨΊʹʯͱ͍͏Φʔϓϯͳ࢟Λࠓޙେࣄʹ͍ͨ͠ɻ
ૉΒ͍͠ΠϕϯτͷاըӡӦɺ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ
abceedΛ͍ͬ͠ΐʹͭ͘Ζ͏ ΧδϡΞϧ໘ஊͰࣾͱѲख ϝϯόʔืू