↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Ruby is defined by terrible tools

The text argues that Ruby has very poor tooling compared to Lisp, Smalltalk, Java/C#, and Haskell, and that this has profoundly shaped the Ruby ecosystem and culture. The author describes how dynamic features and design choices make advanced tools hard to build, leading Rubyists to develop coping patterns like heavy unit testing and habits influenced by file-based workflows. The piece also connects this to a broader history of tools vs. languages, from Visual C++ and VBA to the influence of The Pragmatic Programmer, and suggests our sense of what counts as “good code” is inseparable from the ecosystems and tools around a language.

Reading notes
#

  • The author opens by stating that Ruby tools are terrible, especially when compared with environments for Lisps, modern Java/C# IDEs, Haskell tooling, or Smalltalk.
  • In Smalltalk, despite the idea that “everything happens somewhere else”, navigating and modifying code is easy inside the image, including tracing execution, editing code in place, and continuing without switching to files.
  • Smalltalk was developed alongside its tools and effectively is its own tooling, while Ruby resembles Smalltalk with a major part of its tooling “brain” removed.
  • Ruby’s dynamic capabilities are not matched by introspective tools: you can write code at runtime but cannot easily inspect generated code like Lisp macro expansions.
  • Debugging and tracing in Ruby are described as primitive and unreliable, with debuggers often misled or broken by unusual code, encouraging avoidance of these tools.
  • Ruby’s duck typing lacks supporting tools to enumerate all objects that satisfy a given protocol, making behavioral discovery hard.
  • Warning systems are coarse-grained, with no fine control over which warnings appear.
  • Editor integration for Ruby is often little more than enhanced text search, and code smells are typically surfaced by CI rather than immediately by the editor.
  • Ruby developers frequently use Google for library documentation instead of robust local documentation tools.
  • Debugging concurrent Ruby code is singled out as especially painful, hinting at weak concurrency tooling.
  • Conceptually, runtime information should supersede compile-time information, yet Ruby offers no way to “dry-run” a method to discover all possible collaborating objects.
  • Insights gained from dynamic analysis must be manually related back to source files, which then have to be reloaded and reconfigured to test changes, highlighting friction between runtime and static code.
  • Despite these drawbacks, experienced developers who know languages with strong tooling, like Lisp or Haskell, fell in love with Ruby in the early 2000s.
  • Ruby is characterized as combining downsides of several languages: like Smalltalk without the image, Lisp without code-as-data, Java without refactoring support from static typing, while still being a better Perl than Perl.
  • The author rejects corporate hype as an explanation for Ruby’s appeal and instead invokes a kind of “worse-is-better” dynamic that makes Ruby feel unexpectedly good despite deficiencies.
  • An analogy is drawn between Windows and UNIX: Windows provided self-describing COM/ActiveX objects and rich IDE-driven exploration, while UNIX offered messy, inconsistent tools and configs that nonetheless felt better to work with.
  • The author senses a subtle sweet spot in Ruby’s experience that shouldn’t work as well as it does but warns against ignoring its influence.
  • Many Ruby “best practices” and “lessons learned” are framed as coping patterns for working in a language with severely limited tooling.
  • Conversely, practices in other languages can depend on powerful tools, meaning their idioms may not transfer when those tool “crutches” are absent.
  • The piece asserts that the Ruby ecosystem has been shaped, and continues to be shaped, by the scarcity and weakness of its tools, which must be acknowledged whether one rejects, accepts, or tries to improve Ruby.
  • In an edit, the author clarifies that Ruby’s tooling gap is not due to community laziness but to design trade-offs that make sophisticated tooling extremely difficult.
  • Ruby drew inspiration from Lisp while avoiding homoiconicity, which makes it hard to build tools that operate on code semantically instead of as plain text.
  • Ruby’s fully dynamic nature prevents more than simple or heuristic static analysis, limiting what static tools can guarantee.
  • Being like Smalltalk but with keyword-based control flow complicates some dynamic analysis techniques, such as probe objects that cannot act as a false value.
  • Abandoning the Smalltalk image model creates a persistent gap between dynamic behavior and static code, a gap that automated tools struggle to bridge reliably.
  • Allowing any construct to be redefined anywhere means tools cannot reliably locate the definitive on-disk definition of a class or method, unlike in Java.
  • The author concludes that writing high-quality tools for Ruby is painful because it must work against these language design trade-offs.
  • A further edit acknowledges that significant investment of time and resources can improve Ruby tooling somewhat, citing RubyMine as an example of advanced analysis and refactoring support.
  • Even so, when compared with mature tools for C#, Java, Lisp, or Smalltalk, RubyMine still feels dated despite years of effort.
  • The author notes having intentionally taken two positions without labeling either as correct, aiming instead to prompt thought about how tooling shapes language cultures.
  • Historically, languages like C++ were tightly coupled with specific vendor tools (e.g., people effectively programmed in “Visual C++”), and developers expected a matching “Visual” environment for languages like Perl.
  • The Pragmatic Programmer challenged that mindset by insisting that tools and languages are distinct, encouraging programmers to understand languages independently of their tools.
  • This “survivalist” perspective urged programmers to code as if IDE conveniences might disappear, helping break dependence on complex tooling.
  • That shift was beneficial because existing tools constrained thinking, offloaded mental models, and sometimes caused real problems.
  • The book’s influence made it easier to adopt new languages without waiting for corporate-approved IDEs, contributing to interest in languages like Ruby.
  • Ruby is portrayed as a survivalist-friendly language that remains usable even without features like intellisense, especially when compared to Java for manual typing.
  • The absence of tools, however, shapes habits: the author notices personal reluctance to create new classes due to the overhead of new files, tests, and limited refactoring assistance.
  • This hesitation is partly driven by the knowledge that the tools will not help visualize the old and new structures as an interacting family of classes.
  • Ruby developers’ strong emphasis on unit-testing everything is presented as compensation for uncertainty that stronger tooling in other ecosystems might mitigate.
  • The overarching claim is that programming languages cannot be evaluated apart from their ecosystems; what feels “good” is influenced by what workflows are easy, hard, or have burned us in the past.
  • The author is not prescribing a particular language choice but wants readers to reflect on how ecosystem and tooling shape their judgments about good code.