Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Refactoring Ruby without Ruby - Sergey Pchelincev

195 views

Published on

Ruby Meditation 12 - 19.11.2016
If refactoring a ruby code for you is associated with changing an architecture, applying time-proven patterns or updating 3rd party libraries, I can tell that you can get a better result by changing the outside world of your programming logic.
#rubymeditation

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Refactoring Ruby without Ruby - Sergey Pchelincev

  1. 1. REFACTOR RUBY WITHOUT RUBY SERGEY PCHELINTSEV
  2. 2. QUICK INTRO JALKOBY -> GITHUB ||TWITTER E-MAIL -> LINZ.SERGEY@GMAIL.COM BEER -> HTTPS://TELEGRAM.ME/BEERJSKYIV
  3. 3. LET’S STICK WITH THE TERMS REFACTORING IS THE PROCESS OF RESTRUCTURING EXISTING COMPUTER CODE WITHOUT CHANGING ITS EXTERNAL BEHAVIOUR EXTERNAL BEHAVIOUR IS THE BEHAVIOUR OF AN ENTITY AS SEEN AT ITS INTERFACE, WITHOUT SEEING INSIDE THE ENTITY OR ITS OTHER INTERFACES
  4. 4. WHAT’S MAKE ME PROUD REFACTORING IS A CORE PART OF THE RUBY IDEOLOGY
  5. 5. WHAT’S MAKE ME SAD FOR THE PAST THREE YEARS THERE WAS ANY NEW THING ▸ the tools ecosystem has been slowdown ▸ speakers talks about the same things over & over ▸ the language doesn’t bring anything awesome (get ready for the built-in pry on 25.12.2016 🎉😒😒😒)
  6. 6. RUBY IN A COMA John Doe LONG STORY SHORT
  7. 7. HOLD ON, DON’T BE ANGRY COMA IS NOT THE END AFTER ALL THIS LEMON CAN GIVE US A MONEY FOR A FEW YEARS
  8. 8. JUST DON’T PUT ALL YOUR EFFORT ON IT. OTHERWISE…
  9. 9. WHEN YOU ACCEPT THIS, ONE THING WILL HAPPEN* YOU WILL USE THE LANGUAGE LESS OFTEN…
  10. 10. WHEN YOU ACCEPT THIS, ONE THING WILL HAPPEN* … BUT MUCH MORE EFFECTIVELY *THE EFFECT DOES NOT REPRODUCES ON SHIT CODERS
  11. 11. YOU START DISCOVER ONE INTERESTING SIDE-EFFECT YOUR RUBY CODE REFACTORS WITHOUT RUBY
  12. 12. PHASE 0 YOU START NOTICING THAT FRONTEND IS NOT A TOY NOWADAYS
  13. 13. PHASE 1 - CSS
  14. 14. PHASE 1 - CSS
  15. 15. FIRST THEY IGNORE YOU, THEN THEY LAUGH AT YOU, THEN THEY FIGHT YOU, THEN YOU WIN. Mahatma Gandhi (a senior js developer) PHASE 2 - JS
  16. 16. PHASE 2 - JS IT WAS A RADICAL CHANGE IN A PAST FEW YEARS 2010 NOWADAYS
  17. 17. PHASE 2 - JS IT STEALS: ▸ Views ▸ Presenters ▸ Helpers ▸ Controllers ▸ Routing ▸ Translation and localization
  18. 18. PHASE 2 - JS ALL YOUR VIEWS IS:
  19. 19. PHASE 2 - JS RUBY IS JUST A THIN LAYER OF AUTHENTICATION + PERSISTENCE
  20. 20. PHASE 3 - AUTHENTICATION & PERSISTENCE DATABASES ARE NOT MYSQL ANYMORE ▸ JSON is a part of any adequate database ▸ Row Level Security - your database itself manages an authorisation logic ▸ Database validation functions
  21. 21. TO SUM UP EVEN IF RUBY IS STACK IN 2012, THE OUTSIDE WORLD CAN MAKE IT BETTER
  22. 22. FOR THE LAST WORD THANK YOU

×