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
0
180
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
Sheets API使ってみた
toshi0383
2
240
visionOSについてGlobeeが取り組んでいること
toshi0383
0
410
agile20150512-150512055145-lva1-app6892.pdf
toshi0383
0
110
たのしいAirPlay
toshi0383
1
640
Profiling using Signpost
toshi0383
2
860
AVPlayer周りの設計tips
toshi0383
6
800
cmdshelf::from("Swift")
toshi0383
3
820
AbemaTV iOSのダウンロード再生機能
toshi0383
4
930
tvOSのリスト系のインデックスラベルを自作してみる
toshi0383
0
580
Other Decks in Programming
See All in Programming
Kubernetes上でOracle_Databaseの運用を楽にするOraOperatorの紹介
nnaka2992
0
140
Pydantic x Database API:turu-pyの開発
yassun7010
1
420
GraphQLとGigaViewer for Apps
numeroanddev
4
880
C#および.NETに対する誤解をひも解く
ymd65536
0
210
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
5
220
Micro Frontends for Java Microservices - dev2next 2024
mraible
PRO
0
180
RDBの世界をぬりかえていくモデルグラフDB〜truncus graphによるモデルファースト開発〜
jurabi
0
150
為醫療加裝Python的引擎
cclai999
0
270
What is TDD?
urakawa_jinsei
1
200
ポケモンで考えるコミュニケーション / Communication Lessons from Pokémon
mackey0225
4
140
Cloud Adoption Frameworkにみる組織とクラウド導入戦略(縮小版)
tomokusaba
1
150
フロントエンドの現在地とこれから
koba04
6
2.3k
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
243
11k
Infographics Made Easy
chrislema
239
18k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
A better future with KSS
kneath
235
17k
A designer walks into a library…
pauljervisheath
201
24k
The Language of Interfaces
destraynor
154
24k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
5
220
In The Pink: A Labor of Love
frogandcode
139
22k
For a Future-Friendly Web
brad_frost
174
9.3k
The Pragmatic Product Professional
lauravandoore
31
6.2k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
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Λ͍ͬ͠ΐʹͭ͘Ζ͏ ΧδϡΞϧ໘ஊͰࣾͱѲख ϝϯόʔืू