Question about wrapping instance vars in attr_reader

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/ruby

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Truly a developer’s best friend
  • Zigi - The context switching struggle is real
  • SimpleCov

    Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites

    Technically you could measure the usage with MethodCoverage. But that is future talk for simplecov. So in theory we could visualize unused instance variables

  • ruby

    The Ruby Programming Language [mirror]

    And a fun fact for Ruby is that it provides special method types for attribute accessor methods https://github.com/ruby/ruby/blob/48b94b791997881929c739c64f95ac30f3fd0bb9/method.h#L113, the goal is to make ruby programs run faster (src: Pat Shaughnessy's Ruby under a microscope)

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

  • Sequel

    Sequel: The Database Toolkit for Ruby

    Not always! Some guys have a lot of discipline; take jeremy for example and sequel. https://github.com/jeremyevans/sequel

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts