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
78
Goを始めて感じたPHPの魅力
第154回PHP勉強会@東京で発表したスライドです。
chiroruxx
September 02, 2023
Tweet
Share
More Decks by chiroruxx
See All by chiroruxx
PHPはいつから死んでいるかの調査
chiroruxx
3
500
元phperから見たGoの良いところ
chiroruxx
0
43
Go Connectへの想い
chiroruxx
0
310
GraphQLに入門してみた
chiroruxx
2
250
ドキュメンテーションコメント再入門
chiroruxx
0
140
我流カンファレンス楽しみ術
chiroruxx
0
69
最初の一歩を踏み出す言葉
chiroruxx
4
1.2k
PhpStormをIDEとして使う
chiroruxx
0
77
PHPでGUIアプリを作れなかった(pecl編)
chiroruxx
0
260
Other Decks in Technology
See All in Technology
AWSでRAGを作る法方
sonoda_mj
1
140
データ分析を支える技術 生成AI再入門
ishikawa_satoru
0
380
データベース研修 分析向けSQL入門【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
110
ABEMAにおけるLLMを用いたコンテンツベース推薦システム導入と効果検証
cyberagentdevelopers
PRO
1
700
AIエージェントを現場に導入する目線とは
masahiro_nishimi
1
1.5k
「我々はどこに向かっているのか」を問い続けるための仕組みづくり / Establishing a System for Continuous Inquiry about where we are
daitasu
0
170
20240717_イケコパ代表Copilot_in_Teams会社でこう使ってます
ponponmikankan
2
430
Datadog Cloud SIEMを使ってAWS環境の脅威を可視化した話/lifeistech-datadog-cloud-siem
gidajun
0
480
DevIO2024_レガシー運用からの脱却 -クラウド活用の実践事例とベストプラクティス-
jun2882
0
210
目標設定は好きですか? アジャイルとともに目標と向き合い続ける方法 / Do you like target Management?
kakehashi
10
3k
JBUG岡山 #6 WordCamp男木島の チームビルディング
takeshifurusato
0
150
成長期に歩みを止めないための創業期の開発文化形成
mayah
6
420
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
78
15k
Being A Developer After 40
akosma
72
580k
GraphQLとの向き合い方2022年版
quramy
36
13k
Typedesign – Prime Four
hannesfritz
37
2.2k
Unsuck your backbone
ammeep
666
57k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
248
20k
Principles of Awesome APIs and How to Build Them.
keavy
124
16k
How to train your dragon (web standard)
notwaldorf
79
5.5k
No one is an island. Learnings from fostering a developers community.
thoeni
17
2.8k
Learning to Love Humans: Emotional Interface Design
aarron
269
39k
5 minutes of I Can Smell Your CMS
philhawksworth
200
19k
Writing Fast Ruby
sferik
623
60k
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 ええやん – ポインタがない – 名前衝突が少ない – いい感じの型制約
– コミュニティがにぎやか!