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
PHPのバージョンアップを通して保守性の大切さを学んだ
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
sho44
April 05, 2022
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PHPのバージョンアップを通して保守性の大切さを学んだ
sho44
April 05, 2022
More Decks by sho44
See All by sho44
tblsの紹介@PHP_オレ_カンファレンス神戸
shosho44
0
57
rettyインターン内容.pdf
shosho44
0
74
Other Decks in Programming
See All in Programming
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
320
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.4k
Performance Optimization With LLMs
xleitix
0
240
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
160
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.1k
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
1
150
Kotlinの15年とServer-Side Kotlin
n_takehata
1
190
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
460
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
500
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
510
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
130
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1.5k
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
529
40k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
60k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
300
The World Runs on Bad Software
bkeepers
PRO
72
12k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
68k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
650
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Six Lessons from altMBA
skipperchong
29
4.6k
The Limits of Empathy - UXLibs8
cassininazir
2
760
Transcript
PHPのバージョンアップを通して 保守性の大切さを学んだ
バージョンアップ対応で行ったこと ・既存ソースコード内で変更する必要がある 箇所を探し出し修正する 引用(https://www.php.net/manual/ja/migration81.incompatible.php) 図1 ドキュメント記載の変更点
具体的にどんなことを行ったのか ・ソース内検索を行なって、変更箇所を見つける ・修正 ・コーディング規約を設けるためのツールのバージョンアップ
めちゃんこ時間がかかった
何に時間がかかったのか ・ドキュメントに書いてあることの理解 (自分の知識不足) ・ソース内で変更が必要な箇所を探し出すこと
そもそもバージョンアップってする必要あるん?
あります(個人的考え)
バージョンアップを行う理由 ・古いバージョンがサポートされなくなり セキュリティの脆弱性が野放しにされてしまう 図2 各バージョンのサポート期間 アクティブサポート セキュリティに関する サポート 引用(https://www.php.net/supported-versions.php)
バージョンアップを行う中で気づいたこと その1 ・PHPDocを書いておく。型は定義した方が良い →型を追うのが大変。期待していない型の要素を入れないため ・システムはバージョン管理した方が良い →何かあったときに戻せるため ・リファレンスはまとまっていた方が良い →時間短縮ができるため。人的リソースを削減するため
バージョンアップを行う中で気づいたこと その2 ・変数名関数名などは見たら内容がわかるものにした方が良い →ロジックをみる時間を短縮できるため。解釈ミスを防げるため ・同じ処理を重複して書かないほうが良い →修正漏れが発生してしまうため ・使わない処理は消しておいた方が良い(定期的なリファクタ) →修正の時間を削減できる