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
Goを始めて感じたPHPの魅力
Search
chiroruxx
September 02, 2023
Technology
1
130
Goを始めて感じたPHPの魅力
第154回PHP勉強会@東京で発表したスライドです。
chiroruxx
September 02, 2023
Tweet
Share
More Decks by chiroruxx
See All by chiroruxx
Gopher のための「自由な話し合い」ワークショップ
chiroruxx
0
17
PHPをGoで動かす
chiroruxx
0
69
Goを使ってTDDを体験しよう!
chiroruxx
1
760
今ならできる!PhpStormプラグイン開発
chiroruxx
0
67
Go Connectへの想い
chiroruxx
0
190
eBPF with PHPをさわる
chiroruxx
0
150
sl完全に理解したつもり
chiroruxx
0
140
命名をリントする
chiroruxx
1
930
良い命名かを調べるリンターを作った + α
chiroruxx
0
140
Other Decks in Technology
See All in Technology
Authlete で実装する MCP OAuth 認可サーバー #CIMD の実装を添えて
watahani
0
430
自己管理型チームと個人のセルフマネジメント 〜モチベーション編〜
kakehashi
PRO
5
2.2k
1万人を変え日本を変える!!多層構造型ふりかえりの大規模組織変革 / 20260108 Kazuki Mori
shift_evolve
PRO
5
940
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
230
BidiAgent と Nova 2 Sonic から考える音声 AI について
yama3133
2
150
田舎で20年スクラム(後編):一個人が企業で長期戦アジャイルに挑む意味
chinmo
1
1.2k
歴史から学ぶ、Goのメモリ管理基礎
logica0419
10
2.3k
投資戦略を量産せよ 2 - マケデコセミナー(2025/12/26)
gamella
1
610
Digitization部 紹介資料
sansan33
PRO
1
6.4k
_第4回__AIxIoTビジネス共創ラボ紹介資料_20251203.pdf
iotcomjpadmin
0
180
純粋なイミュータブルモデルを設計してからイベントソーシングと組み合わせるDeciderの実践方法の紹介 /Introducing Decider Pattern with Event Sourcing
tomohisa
1
730
202512_AIoT.pdf
iotcomjpadmin
0
180
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.5k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
260
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
130
Git: the NoSQL Database
bkeepers
PRO
432
66k
Six Lessons from altMBA
skipperchong
29
4.1k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
160
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.4k
Done Done
chrislema
186
16k
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
390
From π to Pie charts
rasagy
0
100
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
180
Transcript
(PΛ࢝Ίͯײͨ͡ 1)1ͷັྗ 第154回 PHP勉強会@東京
ࣗݾհ ▪ ちひろ ▪ Twitter: @chiroruxxxx ▪ 会社: 株式会社モリサワ
࠷ۙ ▪ Go で仕事をしている ▪ PHP は使ってない(悲しい・・・) ▪ PHP から離れてみて改めて魅力を感じました
▪ 改めて気付いた PHP の魅力を4つ伝えたいと思います
ϙΠϯλ͕ͳ͍ʂ ▪ 最高!
ϙΠϯλ͕ͳ͍ʂ ▪ 最高! ▪ Web アプリを作る際にメモリについて考えなくていい – (アドレスについてはたまに考えないといけない)
໊લিಥͷͮ͠Β͞ <?php declare(strict_types=1); namespace a; class a { public $a;
public function a($a) { // ... } }
໊લিಥͷͮ͠Β͞ package a type a struct { a string }
func (a a) a(a string) { // ... }
໊લিಥͷͮ͠Β͞ package a type a struct { a string }
func (a a) a(a string) { // ... }
໊લিಥͷͮ͠Β͞ ▪ 変数の先頭に $ が付く – 同名のプロパティとメソッドを区別できる ▪ レシーバの $this
固定 – 他の言語では任意の名前で設定できる場合も→名前衝突の原因に
͍͍ײ͡ͷܕ੍ ▪ 今の PHP は動的型付けしつつ静的解析するのが主流 – 型で困ることは(ほぼ)ないのでは ▪ 静的解析はいい感じに誤魔化せる –
@var type $var – 使いすぎには要注意だけど・・・
ίϛϡχςΟ͕ʹ͔͗ʂ ▪ PHP 勉強会みたいなコミュニティは意外と少ない? – 毎月 LT だけするようなコミュニティはどこでもある – 交流を定期的にやっているコミュニティは少ない
▪ 毎年、各地でカンファレンス開催・東京でも2つのカンファレンスが! – 福岡、盛り上がってましたね – 沖縄と北海道の話題も出ていますね – 東京だけでも PHP カンファレンス、PHPerKaigi がある
·ͱΊ ▪ PHP ええやん – ポインタがない – 名前衝突が少ない – いい感じの型制約
– コミュニティがにぎやか!