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
1
93
“We like to hate PHP" or bittersweet lessons learned from the Ruby ecosystem
Yevhen "Eugene" Kuzminov
September 03, 2016
Tweet
Share
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
1.9k
Hanami - нова надія Ruby чи "імперія ходить по тим самим граблям"?
ijackua
0
100
What Is The Best Programming Language For Your Web Product?
ijackua
0
130
Organizing an architecture of your Ruby on Rails app with Trailblazer 2.0
ijackua
4
370
Railway Oriented Programming in PHP
ijackua
0
480
Uploaded Evolve Your Web Product With A New Technology Stack
ijackua
0
44
MobiDev Meetup Intro
ijackua
0
120
Ruby Web Dev: The Other Way. Architecture aspects
ijackua
0
870
What Is The Best Programming Language For Your Web Product
ijackua
0
190
Other Decks in Programming
See All in Programming
.NET 9アプリをCGIとして レンタルサーバーで動かす
mayuki
1
770
わたしの星のままで一番星になる ~ 出産を機にSIerからEC事業会社に転職した話 ~
kimura_m_29
0
170
Cognitoが大型アップデート!Managed Loginとパスワードレスログインを実際に使ってみた@しむそくRadio Special Day1
tmhirai
3
320
42 best practices for Symfony, a decade later
tucksaun
1
160
プロダクトの品質に コミットする / Commit to Product Quality
pekepek
2
760
Testing Assembly: Code or Low Code - Navigating the Test Automation Options
maaretp
0
110
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
170
KubeCon + CloudNativeCon NA 2024 Overviewat Kubernetes Meetup Tokyo #68 / amsy810_k8sjp68
masayaaoyama
0
230
今からはじめるAndroidアプリ開発 2024 / DevFest 2024
star_zero
0
990
CSC509 Lecture 14
javiergs
PRO
0
130
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
140
eBPF Deep Dive: Architecture and Safety Mechanisms
takehaya
12
1.4k
Featured
See All Featured
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Gamification - CAS2011
davidbonilla
80
5.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
510
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
800
Code Reviewing Like a Champion
maltzj
520
39k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
270
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
1
160
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
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 ?