Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
PHPをGoで動かす
chiroruxx
0
66
Goを使ってTDDを体験しよう!
chiroruxx
1
690
今ならできる!PhpStormプラグイン開発
chiroruxx
0
60
Go Connectへの想い
chiroruxx
0
190
eBPF with PHPをさわる
chiroruxx
0
140
sl完全に理解したつもり
chiroruxx
0
130
命名をリントする
chiroruxx
1
890
良い命名かを調べるリンターを作った + α
chiroruxx
0
130
GoLandを布教する会
chiroruxx
0
47
Other Decks in Technology
See All in Technology
HIG学習用スライド
yuukiw00w
0
110
法人支出管理領域におけるソフトウェアアーキテクチャに基づいたテスト戦略の実践
ogugu9
1
130
その設計、 本当に価値を生んでますか?
shimomura
3
180
Docker, Infraestructuras seguras y Hardening
josejuansanchez
0
150
生成AI時代の自動E2Eテスト運用とPlaywright実践知_引持力哉
legalontechnologies
PRO
0
110
生成AI・AIエージェント時代、データサイエンティストは何をする人なのか?そして、今学生であるあなたは何を学ぶべきか?
kuri8ive
2
1.8k
プロダクトマネージャーが押さえておくべき、ソフトウェア資産とAIエージェント投資効果 / pmconf2025
i35_267
2
350
バグハンター視点によるサプライチェーンの脆弱性
scgajge12
2
470
AI/MLのマルチテナント基盤を支えるコンテナ技術
pfn
PRO
5
720
シンプルを極める。アンチパターンなDB設計の本質
facilo_inc
1
1k
日本Rubyの会の構造と実行とあと何か / hokurikurk01
takahashim
3
510
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
0
120
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.2k
KATA
mclloyd
PRO
32
15k
Making the Leap to Tech Lead
cromwellryan
135
9.6k
YesSQL, Process and Tooling at Scale
rocio
174
15k
How to train your dragon (web standard)
notwaldorf
97
6.4k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
For a Future-Friendly Web
brad_frost
180
10k
Navigating Team Friction
lara
191
16k
Building an army of robots
kneath
306
46k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
69k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
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 ええやん – ポインタがない – 名前衝突が少ない – いい感じの型制約
– コミュニティがにぎやか!