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
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
Transcript
10 slides
PHPのバージョンアップを通して 保守性の大切さを学んだ
バージョンアップ対応で行ったこと ・既存ソースコード内で変更する必要がある 箇所を探し出し修正する 引用(https://www.php.net/manual/ja/migration81.incompatible.php) 図1 ドキュメント記載の変更点
具体的にどんなことを行ったのか ・ソース内検索を行なって、変更箇所を見つける ・修正 ・コーディング規約を設けるためのツールのバージョンアップ
めちゃんこ時間がかかった
何に時間がかかったのか ・ドキュメントに書いてあることの理解 (自分の知識不足) ・ソース内で変更が必要な箇所を探し出すこと
そもそもバージョンアップってする必要あるん?
あります(個人的考え)
バージョンアップを行う理由 ・古いバージョンがサポートされなくなり セキュリティの脆弱性が野放しにされてしまう 図2 各バージョンのサポート期間 アクティブサポート セキュリティに関する サポート 引用(https://www.php.net/supported-versions.php)
バージョンアップを行う中で気づいたこと その1 ・PHPDocを書いておく。型は定義した方が良い →型を追うのが大変。期待していない型の要素を入れないため ・システムはバージョン管理した方が良い →何かあったときに戻せるため ・リファレンスはまとまっていた方が良い →時間短縮ができるため。人的リソースを削減するため
バージョンアップを行う中で気づいたこと その2 ・変数名関数名などは見たら内容がわかるものにした方が良い →ロジックをみる時間を短縮できるため。解釈ミスを防げるため ・同じ処理を重複して書かないほうが良い →修正漏れが発生してしまうため ・使わない処理は消しておいた方が良い(定期的なリファクタ) →修正の時間を削減できる
More Decks by sho44
See All by sho44
tblsの紹介@PHP_オレ_カンファレンス神戸
shosho44
0
60
rettyインターン内容.pdf
shosho44
0
78
Other Decks in Programming
See All in Programming
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
810
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
610
小さなアプリを作って公開するまで
onozaty
0
240
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
340
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
400
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
110
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
210
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
670
マルチプロダクトSaaSの アプリ一覧を速くする——複数プロダクトにまたがる「権限行脚」を減らすまで #techramen26conf
mktakuya
1
190
はじめてのPLATEAU
nokonoko1203
1
670
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
Featured
See All Featured
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
670
Prompt Engineering for Job Search
mfonobong
0
610
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Documentation Writing (for coders)
carmenintech
77
5.7k
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
590
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
650
Deep Space Network (abreviated)
tonyrice
0
430
We Are The Robots
honzajavorek
0
460
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
500
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320
How to Think Like a Performance Engineer
csswizardry
28
2.9k