Best of RubyAugust 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    mawise/bookshelf: 3D animated bookshelf for ebooks

    A 3D bookshelf project helps you browse ebooks by pulling metadata and cover art from a Calibre library. It adjusts book dimensions based on cover image aspect ratios and page-count data, with the Calibre 'comment' metadata shown as back-cover text. The app can be configured to use variable widths for books based on page counts using a Calibre plugin.

  2. 2
    Article
    Avatar of thoughbotthoughbot·2y

    Wrap your dependencies

    Using third-party libraries and tools can speed up development, but wrapping them in functions, modules, or classes can make your code more maintainable and flexible. Wrapping allows for easier updates, consistent interfaces, and effective error handling. Examples include sanitizing HTML across different environments and using HTTP clients with consistent error handling.

  3. 3
    Article
    Avatar of thoughbotthoughbot·2y

    Ruby on Rails is great for AI

    Many AI projects today utilize third-party or open-source services through HTTP API calls, a task Ruby excels at with its wide range of available gems. Developers might mistakenly use Python for AI tasks in their Rails apps, adding unnecessary complexity and cost. While Python is better suited for creating custom machine learning models, Ruby's capabilities can often meet the needs more efficiently.

  4. 4
    Article
    Avatar of hnHacker News·2y

    Jupyter Notebook Viewer

    IRuby provides a powerful web notebook interface for Ruby, allowing for an in-browser REPL loop with additional features. It supports displaying various data types, including text, images, LATEX, and HTML, and can automatically use Pry if available. IRuby can also render Gnuplot and Rubyvis plots inline.