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
“We like to hate PHP" or bittersweet lessons le...
Search
Yevhen "Eugene" Kuzminov
September 03, 2016
Programming
150
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
160
What Is The Best Programming Language For Your Web Product?
ijackua
0
180
Organizing an architecture of your Ruby on Rails app with Trailblazer 2.0
ijackua
4
460
Railway Oriented Programming in PHP
ijackua
0
600
Uploaded Evolve Your Web Product With A New Technology Stack
ijackua
0
77
MobiDev Meetup Intro
ijackua
0
160
Ruby Web Dev: The Other Way. Architecture aspects
ijackua
0
930
What Is The Best Programming Language For Your Web Product
ijackua
0
330
Other Decks in Programming
See All in Programming
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.4k
LLM 101
dalinaum
0
450
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
190
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
14
11k
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
5k
ActionController meets Protocol Buffers
sorah
1
770
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
110
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
130
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
250
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
14
8.2k
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.3k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
540
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
450
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
350
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
750
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
Amusing Abliteration
ianozsvald
1
370
Embracing the Ebb and Flow
colly
88
5.2k
Skip the Path - Find Your Career Trail
mkilby
1
280
The Cult of Friendly URLs
andyhume
79
7.1k
My Coaching Mixtape
mlcsv
0
380
Code Reviewing Like a Champion
maltzj
529
40k
BBQ
matthewcrist
90
10k
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 ?