Ruby's official documentation just got a new look
Ruby is an interpreted, object-oriented programming language popular for web development, offering features like exception handling and garbage collection. It is portable across various operating systems and has community support.
Read original articleRuby is an interpreted, object-oriented programming language widely used for web development and scripting tasks. It features a simple syntax, normal and advanced object-oriented capabilities, operator overloading, exception handling, iterators, closures, and garbage collection. Ruby is highly portable, functioning on various Unix-like systems, Windows, and macOS. Users can install Ruby through multiple methods, including third-party tools like RVM, and can access the source code via Git. The official Ruby website provides comprehensive documentation, including installation guides and community resources. Ruby was created by Yukihiro Matsumoto in 1995, and users can engage with the community through mailing lists and forums for support and feedback.
- Ruby is an interpreted, object-oriented programming language popular for web development.
- It offers features like exception handling, iterators, closures, and garbage collection.
- Ruby is highly portable and can run on various operating systems, including Unix-like systems and Windows.
- Installation methods include using third-party tools like RVM and downloading from the official website.
- The Ruby community provides support through mailing lists and forums for questions and bug reporting.
Related
Ruby: A great language for shell scripts
Ruby is praised for shell scripting due to its features like calling external commands, handling status codes, using types, functional constructs, regex matching, threading, and file operations. It's recommended for complex scripts alongside Bash.
The evolution of Ruby's Range class
The article details the Ruby Range class's evolution, its uses in programming, comparisons with other languages, and key updates, including endless ranges and methods for value testing and iteration.
Top Ruby Companies Around the World
The article highlights 51 public companies using Ruby, with a combined market cap of $361 billion and revenue of $66.7 billion, including notable firms like Airbnb and Shopify.
I'm Back, Ruby on Rails
The author reassesses Ruby on Rails, praising its stability, built-in features, and supportive community, while highlighting its advantages for rapid development and deployment, making it suitable for startups.
RubyGateway: Embed Ruby in Swift
RubyGateway is a framework for integrating Ruby code in Swift applications on macOS and Linux, supporting bidirectional API calls, easy installation, and comprehensive documentation, licensed under MIT.
- Many users express dissatisfaction with the mobile usability, noting issues like horizontal scrolling and poor accessibility.
- There is significant criticism of the color scheme, particularly the use of green, which some find inappropriate for a Ruby-themed site.
- Commenters highlight problems with typography and font rendering, making the documentation difficult to read.
- Some users appreciate the new code block design and syntax highlighting, but call for higher contrast and better overall aesthetics.
- Several users suggest looking at other documentation styles, like those of Rails or Laravel, for inspiration.
It doesn’t work very well on mobile. Though, I’m not sure that the old one did either.
There’s too much white space. Documentation should be compact so that you can fit as much as possible on the screen while remaining legible.
The colour.
If you thought it used to be red, you are probably thinking either of ruby-doc.org, which is an unofficial third-party site (but is older than docs.ruby-lang.org), or of the Rails docs.
Random example: https://docs.ruby-lang.org/en/master/ARGF.html#method-i-each
Love the new colour scheme, easy to read (on desktop) and feels more chill than reds and greys.
Personally I prefer the look of rubyapi.org over either of the official ones, but this new one kinda feels like a step backward from the prior one.
I really don't want to assume incompetence or ignorance at all since I'm sure someone worked really hard on this. But I'm genuinely puzzled by a lot of what's going on.
And green? How did that get approved?
I'm glad things are still moving in the Ruby community. I use it every day. But Elixir is winning the mind-share battle over Ruby at $dayjob these days. And their documents is second to none. One of the best that I've used.
I know there is devdocs [1], but unfortunately it need to implement scrapers and filters for each site specifically.
Talk about irony. I increased the font to 150% so I could read that very sentence, and it's literally impossible to do so, because the sidebar covers the text when you zoom in that far. And the only reason I zoomed in that far was because they used Lato-light rather than Lato-regular. Maybe Ruby isn't used for accessible web development.
And why the hell green? Ruby's not Python :(
I'll probably create custom CSS rules for the doc if this is the final version and be happy with it. I've been using a custom dark theme for HN for years and I'm happy with it. I'm glad we still have enough control over web pages to do that!
It looks like the mobile view is getting fixed [1].
- Its very hard to navigate around and easy to get lost with links.
- Mobile view is borderline unusable. Need to scroll horizontally to read a sentence.
- Cursor is a beam while hovering over the sandwich menu icon
ruby-docs.org is sadly gone https://web.archive.org/web/20230615061406/https://www.ruby-...
There is https://rubyapi.org and https://ruby-doc.org left from what I know
Most people just use rubyapi.org because it’s modern and looks good. It’s backed by the Ruby foundation.
These docs are just the “official docs” which I almost never even use anyways. Glad they don’t look like they’re from 2001 anymore but I’m likely to keep using rubyapi.org as it’s just way out ahead in looks and mobile support.
If i stumbled onto this site while looking for docs about a ruby method, i'd think I landed on the docs for some other programming language or fork of ruby. That's how off-brand this is - to the point of being disorienting as a user.
There are not a lot of things that create a brand around a programming language, and color is definitely one of them.
This is such a tasteless design decision for something meant to be official ruby documentation that I can't even appreciate any other changes that docs may introduce. And then the fact that it doesn't even work on mobile...
I am truly baffled anyone would think this is in good taste.
the last time I saw such a fumble with ruby related docs was back around 2014 when relishapp was the only place to get rspec docs. It's UX was such a painful mess that i just avoided it at all costs. Glad to see it's dead now.
- CPU usage and rendering overhead/waiting time is noticably higher than on the old version.
- The supposedly responsive functionality means that the sidebar hides ~half of main content on my default window size and resolution on desktop. I have to zoom out to be able to read at all.
#root { color: black; }
main { color: var(--text-color); }
Regular reminder to all designers that not everyone uses an Apple 50K Retina Ultra Whatever Display in a professionally lit studio apartment.Like what do you expect from me? I would be rendering these docs in a w3 emacs frame...
When that is done it should be a good start.
- sent from my iPhone
Hilarious!
Related
Ruby: A great language for shell scripts
Ruby is praised for shell scripting due to its features like calling external commands, handling status codes, using types, functional constructs, regex matching, threading, and file operations. It's recommended for complex scripts alongside Bash.
The evolution of Ruby's Range class
The article details the Ruby Range class's evolution, its uses in programming, comparisons with other languages, and key updates, including endless ranges and methods for value testing and iteration.
Top Ruby Companies Around the World
The article highlights 51 public companies using Ruby, with a combined market cap of $361 billion and revenue of $66.7 billion, including notable firms like Airbnb and Shopify.
I'm Back, Ruby on Rails
The author reassesses Ruby on Rails, praising its stability, built-in features, and supportive community, while highlighting its advantages for rapid development and deployment, making it suitable for startups.
RubyGateway: Embed Ruby in Swift
RubyGateway is a framework for integrating Ruby code in Swift applications on macOS and Linux, supporting bidirectional API calls, easy installation, and comprehensive documentation, licensed under MIT.