Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 29
  1. A conditional that keeps growing is a design problem, not a style problem.

  2. Three rules turn duplication into abstractions through tiny steps, and catch false abstractions before they ever reach the code.

  3. Creating objects is a responsibility too.

  4. Start With Ugly Code

    Faced with a new problem, the elegant solution is almost always premature.

  5. How to write Ruby tests that survive refactoring: what to test, what to ignore, and how to keep doubles from going stale.

  6. Building complex objects in Ruby with composition and modules as roles, and knowing when each one beats inheritance for your design.

  7. When to reach for duck typing and when for inheritance in Ruby.

  8. Shift the focus from classes to conversations: sequence diagrams, stable interfaces, the Law of Demeter, and practical decoupling techniques in Ruby.

  9. Singleton Pattern

    Learn how to implement the Singleton pattern in Ruby: built-in module, manual approach, thread safety, the class variable trap, and dependency injection.

  10. Explore the philosophy behind software design: preserving changeability, measuring code friction, and balancing technical debt with over-engineering.

  11. The Dependency Inversion Principle in Ruby: what it really means, when to use dependency injection, and when to keep your code simple.

  12. How to apply the Interface Segregation Principle in Ruby, and why taking it too far can hurt your design.

  13. Master the Liskov Substitution Principle in Ruby.

  14. Open-Closed Principle

    Explore the Open-Closed Principle in Ruby through practical examples using inheritance and the Strategy pattern.

  15. Master Value Objects in Ruby using the modern Data.define class.

  16. Should a Ruby class do just one thing?

  17. Master the N+1 problem in Active Record.

  18. The complete Ruby testing tutorial: understand fundamentals by building a test framework, then explore Minitest, RSpec, and Rack::Test with practical examples.

  19. A step-by-step tutorial for building a Sinatra web application in Ruby.

  20. Build a complete, functional URL shortener from scratch with Ruby and Rack.

  21. Learn how to implement persistent connections in Ruby using Rack, from streaming bodies and Server-Sent Events (SSE) to real-time WebSockets, with clear examples.

  22. Rack: Understand core concepts, routing, middleware basics, and learn how to create your own middleware step by step with examples.

  23. ERB is a Ruby templating system to embed Ruby code in HTML.

  24. Using Ruby Libraries

    Explore Ruby’s libraries ecosystem, covering the Core Library, Standard Library, RubyGems, Bundler, how to load libraries, and manage dependencies.

  25. Learn why the preinstalled Ruby on macOS is outdated, unsupported, and incompatible with modern gems.

  26. Learn how to install Ruby on any OS with this step-by-step guide!

  27. Tailwind CSS can be installed and used in several ways.

  28. How to build a cookie bar step by step in Ruby on Rails, and only install cookies if the user gives consent.

  29. How to seed your database in Rails step by step, with your own task to automate the process and using a gem to generate actual data.