Question about wrapping instance vars in attr_reader

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

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • Mergify - Updating dependencies is time-consuming.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • 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

    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)

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • 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