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
“We like to hate PHP" or bittersweet lessons le...
Search
Yevhen "Eugene" Kuzminov
September 03, 2016
Programming
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
“We like to hate PHP" or bittersweet lessons learned from the Ruby ecosystem
Yevhen "Eugene" Kuzminov
September 03, 2016
More Decks by Yevhen "Eugene" Kuzminov
See All by Yevhen "Eugene" Kuzminov
A year (+½) with Hanami in production: the Good, the Bad and some Recipes
ijackua
1
2.3k
Hanami - нова надія Ruby чи "імперія ходить по тим самим граблям"?
ijackua
0
150
What Is The Best Programming Language For Your Web Product?
ijackua
0
170
Organizing an architecture of your Ruby on Rails app with Trailblazer 2.0
ijackua
4
430
Railway Oriented Programming in PHP
ijackua
0
580
Uploaded Evolve Your Web Product With A New Technology Stack
ijackua
0
67
MobiDev Meetup Intro
ijackua
0
150
Ruby Web Dev: The Other Way. Architecture aspects
ijackua
0
930
What Is The Best Programming Language For Your Web Product
ijackua
0
300
Other Decks in Programming
See All in Programming
dRuby over BLE
makicamel
2
410
Performance Engineering for Everyone
elenatanasoiu
0
250
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
0
390
AIを活用したE2Eテスト実装効率化のあゆみ / ebisu-mobile-14-kotetu
kotetuco
0
160
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
430
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.6k
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
250
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
1k
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
360k
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
240
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.7k
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
5.7k
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
330
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1k
The SEO identity crisis: Don't let AI make you average
varn
0
510
Everyday Curiosity
cassininazir
0
250
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
So, you think you're a good person
axbom
PRO
2
2.1k
Accessibility Awareness
sabderemane
1
150
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
350
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Leo the Paperboy
mayatellez
8
1.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3.6k
The Spectacular Lies of Maps
axbom
PRO
1
850
Transcript
or bittersweet lessons learned from the Ruby ecosystem “We like
to hate PHP” Ievgen Kuzminov. MobiDev. Kharkiv, Ukraine.
PHP is bad/slow/wrong/ugly… ? http://phpsadness.com/ Unexpected T_PAAMAYIM_NEKUDOTAYIM (╯°□°)╯︵ ┻━┻
Ruby is not better It is just a different mindset
Ievgen Kuzminov http://stdout.in @iJackUA 6 years in PHP 2 years
in Ruby Currently: Ruby Team Lead in MobiDev Author of http://rwdtow.stdout.in
How to start a rant? http://stdout.in/en/post/ruby-ecosystem-bitte rsweet-or-we-like-to-hate-php
Healthy ecosystem: ▣ Frameworks pluralism ▣ Libraries agnosticism ▣ Tools,
that just work
Recent decade of The Web Dev
‘’ Vicious circle of demand
1) Symfony 2) Laravel 3) Yii 4) Slim ... How
many framework are in production? 1) Ruby on Rails ¯\_(ツ)_/¯
Frameworks are cheating! ▣ Do not teach to write better
code ▣ Teach to use the framework only ▣ “In which folder should I put this class?”
What is it ? (Uncle Bob)
▣ Framework ▣ CMS ▣ Library Have you ever written
your OWN...
▣ Learn the other language to get better view on
your “native” one ▣ Traits/mixins are not “composition” ▣ Now I consider OOP as an “issue” I thought I knew OOP
▣ Not an end in itself, but the criterion ▣
Harder to follow with dynamic composition ▣ Dependency Injection. WAT ? SOLID
None
...or they don't have a chance because people can't look
further the Rails monster. (C)
Evolution and Performance
PHP FIG Community and Standards
▣ Composer ▣ The League of Extraordinary Packages ▣ Aura
for PHP Packages ▣ Bundler / Gems ▣ Dry-Web
Monkey-patching What is it? Example: 5.minutes.ago vs TimeMath.minutes.decrease(Time.now, 5)
Ruby or Rails? Array ▣ first ▣ second ▣ last
▣ second_to_last ▣ third_to_last ▣ forty_two
Syntax, DSL, metaprogramming Ruby has less parenthesis and formatting issues.
Can handle DSL and metaprogramming. PHP has less possibilities… and that’s fine! Who cares when your IDE has autocomplete.
▣ PSR-4 rules! Modules and Namespaces ▣ Constants autoload hell
▣ Zend Expressive ▣ Slim ▣ Laravel ▣ ... Middlewares
Architecture inspiration Sandi Metz Nick Sutterer
The Clean Architecture by Uncle Bob
Trailblazer
Business logic architecture in PHP ▣ MVC is not enough
▣ Dependency Injection is not a silver bullet ▣ DCI ▣ CQRS (https://github.com/qandidate-labs/broadway) ▣ ?
Learn SQL. I mean it! ORM vs SQL
Where Ruby outperforms PHP Background jobs and queues
Where PHP outperforms Ruby Code debug
▣ PHPUnit ▣ Codeception ▣ Just recently became “a must”
▣ Who write tests? Automated testing ▣ Minitest / RSpec ▣ Capybara ▣ Propagated by Rails ▣ “TDD is dead” © DHH
Ideal PHP world for me ▣ Simple and reliable frameworks
▣ Agnostic middlewares ▣ Architectural framework ▣ Loosely-coupled tools/libs
“Haters gonna hate” (C) Break bad! Change the paradigm! Elixir,
Go, Closure…
Thank you!
[email protected]
http://stdout.in @iJackUA Questions ?