Our great sponsors
-
A good way to gain a better understanding is to browse other Ruby code repositories. command_kit.rb is a good one. It has a lot of well organized sub-modules that are easy to to understand without being overwhelming.
-
If you're working on non-Rails apps and need to deal with loading code, zeitwerk can be used anywhere, unlike the old Rails autoloader. It's also really easy to set up.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Break the "rules" if need be. There is no need to separate out small classes into their own file because "something says so". If one were to look for the file of such a class, they would see there isn't one and automatically look into the file of the parent module/class. See e.g. https://github.com/gettalong/hexapdf/blob/master/lib/hexapdf/type/annotation.rb
Related posts
- Question about Yard
- I interviewed Mike Perham (of Sidekiq) on commercializing software, and quitting his job to work on Sidekiq full time. “by March 2014 I was making more money from Sidekiq Pro sales than my Clymb salary”
- Features for HexaPDF table implementation
- HexaPDF to extract text from PDF file
- Benchmarking Ruby 2.6 to 3.2