home.social

#rubylinks — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rubylinks, aggregated by home.social.

  1. One of the coolest things about Ruby is that you can write clear yet concise code.
    This is especially useful when you want to automate repetitive tasks using scripts.
    To understand how to use Ruby in your scripts, in most cases you can simply look at the standard help for the `ruby` command, such as `ruby -h` or `man ruby`. You can also pass arbitrary code using the `-e` option, for example:
    ```
    ruby -e 'puts "Ruby One-Liners"'
    ```

    #Ruby #OneLiners #Script #Task #Routine #Facet #RubyLinks

  2. To better understand any technology, it is not enough to study the documentation, read books and articles for the current version. It is necessary to begin examining the technology from the origins of its creation and follow it chronologically to the latest version. It is important to understand when, what, and starting with which version a particular feature was added or removed.

    #Ruby #History #Changes #References #Evolution #RubyLinks

  3. To better understand any technology, it is not enough to study the documentation, read books and articles for the current version. It is necessary to begin examining the technology from the origins of its creation and follow it chronologically to the latest version. It is important to understand when, what, and starting with which version a particular feature was added or removed.

    #Ruby #History #Changes #References #Evolution #RubyLinks

  4. If you're an experienced developer and want to brush up on your Ruby knowledge, check out the cheat sheets periodically.
    Refer to the manuals only when you don't understand something in them or you've forgotten it (or maybe you didn't know it).
    This way, you can quickly find gaps in your knowledge and fill them as quickly as possible.

    #Ruby #Cheatsheets #Hints #Tips #RubyLinks