Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
よりよいコードを書く WordBench 富山 勉強会@富山市 第67回 2016年11月26...
Search
Yousan_O
November 26, 2016
Programming
2.9k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
よりよいコードを書く WordBench 富山 勉強会@富山市 第67回 2016年11月26日(土)
WordBench富山 勉強会
静的コード解析
コーディング規約
よりよいコードを書くために
Yousan_O
November 26, 2016
Transcript
49 slides
ΑΓΑ͍ίʔυΛॻ͘ʂ WordBench ࢁ ษڧձ@ࢁࢢ ୈ67ճ 11݄26()
։ൃͰࠔΔ͜ͱ • ίʔυΛमਖ਼ͨ͠ΒผͷՕॴ͕ಈ͔ͳ͘ͳͬͨ ɹ • νʔϜϝϯόʔؒͰίʔυ͕ಡΈͮΒ͍ • લʹॻ͍ͨίʔυʹݟ͕֮͑ͳ͍ ɹ
։ൃͰࠔΔ͜ͱ • ίʔυΛमਖ਼ͨ͠ΒผͷՕॴ͕ಈ͔ͳ͘ͳͬͨ ˠ ߏจΤϥʔΛຒΊࠐΜͰ͠·ͬͨ • νʔϜϝϯόʔؒͰίʔυ͕ಡΈͮΒ͍ ˠ ॻ͖ํʹΫη͕͋Δ •
લʹॻ͍ͨίʔυʹݟ͕֮͑ͳ͍ → ίʔσΟϯάͷॻ͖ํ͕༳ΕΔ
։ൃͰࠔΔ͜ͱ • ίʔυΛमਖ਼ͨ͠ΒผͷՕॴ͕ಈ͔ͳ͘ͳͬͨ ˠ ߏจΤϥʔΛຒΊࠐΜͰ͠·ͬͨ • νʔϜϝϯόʔؒͰίʔυ͕ಡΈͮΒ͍ ˠ ॻ͖ํʹΫη͕͋Δ •
લʹॻ͍ͨίʔυʹݟ͕֮͑ͳ͍ → ίʔσΟϯάͷॻ͖ํ͕༳ΕΔ
ࡾܦͯଞਓͷίʔυ
ࠓͷత • ίʔσΟϯάΛָ͘͠ • ίʔσΟϯάΛඒ͘͠ • ຊ൪ڥΛյ͞ͳ͍
ίʔυͷ࣭ • ม໊ͷ͚ํ • ϝιουͷཻ • ςʔϒϧઃܭ • Ϋϥεઃܭ ໊ஶͰ͢ʂ
৭ʑ͋Δ͚ΕͲ ҰேҰ༦ʹແཧ
ແཧ • ଈޮੑ • ͍͠ • ઈରతͳ͕͑ͳ͍
ࠓ ઈରʹίʔυͷ ࣭͕ྑ͘ͳΔํ๏
੩తίʔυղੳ
੩తίʔυղੳ • ࣮ߦͤͣʹίʔυΛղੳ • πʔϧΛͬͯղੳ • IDEʹΈࠐΈՄೳ
ࠓ͓͑͢Δ੩తίʔυղੳ • ίʔσΟϯάنνΣοΫ • PHPߏจΤϥʔνΣοΫ
ίʔσΟϯάن
ίʔσΟϯάن • Πϯσϯτ • λϒɺεϖʔε • தׅހͷஔ͖ํ • εϖʔε
ԿͷͨΊʹʁ • ΤϥʔΛ͙ҝ • ଞͷਓ͕ಡΈ͍ͨ͢Ί
ͲΜͳײ͡ʁ
WordPressͷίʔσΟϯάن • PHP ίʔσΟϯά • ΞΫηγϏϦςΟίʔσΟϯά • CSS ίʔσΟϯά •
HTML ίʔσΟϯά • JavaScript ίʔσΟϯά https://wpdocs.osdn.jp/WordPress_ίʔσΟϯάن
PHP ίʔσΟϯά • γϯάϧΫΥʔτͱμϒϧΫΥʔτ • Πϯσϯτ • ϒϨʔε (͔ͬ͜) ͷܗࣜ
• ʮelseifʯΛ͏͜ͱɻʮelse ifʯΘͳ͍
ΞΫηγϏϦςΟ • ݟग़͠ͷߏ • ίϯτϩʔϧͷηϚϯςΟΫε • ಈతίϯςϯπ
CSS • ߏ • ηϨΫλ • ϓϩύςΟ
HTML • ݕূ • ऴྃΛؚΉཁૉ • ଐੑͱλά • ΫΦʔτ •
Πϯσϯτ
https://wpdocs.osdn.jp/WordPress_ίʔσΟϯάن
ίʔσΟϯάن • ಡΈ͢͞ • όάࢭ • νΣοΫ͢Δͷେม
ࣗಈԽ
ࣗಈԽ • ίʔσΟϯάنʹԊ͍ͬͯΔ͔ࣗಈνΣο Ϋ • PHPͷߏจ͕ਖ਼͍͔͠νΣοΫ • Τϥʔ͕͋Ε௨͢Δ
੩తղੳπʔϧ • PHP CodeSniffer • PHP Mess Detector
PHP CodeSniffer • ίʔυنνΣοΫ • ϑϨʔϜϫʔΫ༻ʹ৭ʑ͋Δ • ΤϥʔΛදࣔͯ͘͠ΕΔ • PhpStormͰಈ͘
PHP Mass Detector • PHPͷߏจνΣοΧʔ • Τϥʔ͕͋Δͱڭ͑ͯ͘ΕΔ
None
ͬͯΈΔ
None
None
None
None
None
None
None
None
None
None
None
None
ྑ͘ग़དྷ·ͨ͠ ˕
େม…
ίʔσΟϯάنͷ͢͢Ί • શ෦Δͱେม • ·ͣॏཁͳ߲͔Β • ࢦఠ͞ΕͯنΛशಘ͍ͯ͘͠
ͬͱࣗಈԽ • Gitͱ࿈ܞ͢Δͱָ͍͠Ͱ͢ • ܧଓతΠϯςάϨʔγϣϯʢCIʣ • ςετྑ͍Ͱ͢ • ػձ͕͋ΕҰॹʹΓ·͠ΐ͏
·ͱΊ • ίʔσΟϯάنΛकΔͱίʔυྑ͘ͳΓ· ͢Α • πʔϧΛ͏ͱྑ͍Ͱ͢Α • ·ͣখ͍͞ͱ͜Ζ͔Β
ँࣙɺࢀߟ • http://wp-e.org/2016/07/21/7117/ • https://github.com/sanographix/azusa-colors
More Decks by Yousan_O
See All by Yousan_O
Katerについて
yousan
0
76
小規模受託開発におけるGraphQL
yousan
0
170
Amplify Consoleで作る、CloudFront、Lambda@Edgeを使ったマルチデプロイ環境とSPAのOGP対応/Amplify Console
yousan
0
1.3k
チーム開発向け WordPressの自動デプロイ/Continuous-deployment-for-wordpress-team-development
yousan
1
220
Git勉強会 Gitを中心としたワークフロー
yousan
0
160
CloudFormationを使ったPRを出しまくれるワークフロー/CloudFormaton for team
yousan
1
940
WordPress Security Incidents
yousan
1
1.5k
WordCampOsaka 2018 中規模案件のこなしかた
yousan
1
1.2k
WordPressユーザからサーバ事業者さんへの要望
yousan
0
130
Other Decks in Programming
See All in Programming
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
260
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
370
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
150
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
140
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
210
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
250
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
280
AI-Powered Domain-Driven Design
ziobrando
0
470
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
620
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
150
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
3.2k
We Are The Robots
honzajavorek
0
450
The Art of Programming - Codeland 2020
erikaheidi
57
15k
Mind Mapping
helmedeiros
1
440
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
340
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
900
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Navigating Team Friction
lara
192
16k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
48k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k