August 25th, 2024

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 articleLink Icon
FrustrationConfusionDisappointment
Ruby's official documentation just got a new look

Ruby 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.

AI: What people are saying
The comments on the Ruby documentation reveal a mix of opinions and concerns regarding its recent redesign.
  • 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.
Link Icon 45 comments
By @zarzavat - 4 months
It feels unfinished.

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.

By @rob - 4 months
Nothing like making green the primary color on your "Ruby" website and spending zero minutes checking it on mobile to notice that every page horizontally scrolls.
By @ameliaquining - 4 months
To everyone commenting about it being green: This isn't a new change, it's always been like that. https://web.archive.org/web/20141203122328/http://docs.ruby-...

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.

By @nomilk - 4 months
Lots of (justified) negative observations. But I love the way the code looks (which, by far, is the most important thing for documentation of code).

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.

By @ilikepi - 4 months
This seems to be a reskin of the prior RDoc styles, which are visible in prior Ruby versions (e.g https://docs.ruby-lang.org/en/3.3/). Despite the rather bold green, the overall look of the primary content feels very subdued. I think a big part of it is how low-contrast the code blocks are. In the prior style, code blocks used a pretty high-contrast syntax highlighting scheme; comments were very distinct, which is important as these demonstrate return values. In the new style, it's quite difficult to distinguish comments (medium gray) from identifiers (dark gray).

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.

By @jimworm - 4 months
I wouldn't mind if ruby copied the rails docs style exactly (https://api.rubyonrails.org/), and I'm pretty sure rails wouldn't mind either.
By @jeremymcanally - 4 months
There are a lot of odd choices here. Is there a mailing list thread or something where this was worked out? I couldn't seem to find one on a quick scan, but I don't know where these discussions happen these days.

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.

By @jspash - 4 months
Accessibility-wise it has problems. Font-size, colour, contrast to name a few. And overuse of bold. When everything has emphasis, nothing does.

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.

By @blahgeek - 4 months
What we really need is a common downloadable documentation format so that we can more easily build tools to read documentation of all languages and libraries in one place with unified interface, instead of jumping between tens of browser tabs each with a different (new) look.

I know there is devdocs [1], but unfortunately it need to implement scrapers and filters for each site specifically.

[1] https://devdocs.io/

By @bachmeier - 4 months
> Ruby is an interpreted object-oriented programming language often used for web development.

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.

By @retrac98 - 4 months
This either hasn’t been tested on a mobile device or the developer decided mobile devices weren’t important enough to properly support at launch. Bad look either way.
By @strzibny - 4 months
Oh no, much prefered the old look.

And why the hell green? Ruby's not Python :(

By @vinc - 4 months
If I change the color hue of all the CSS variables from green to red, and make the text a bit darker and larger it's not so bad. With a light gray background on the sidebar to provide some contrast with the main content like the Rust doc does I quite like it.

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!

By @tapanih - 4 months
I like the new code blocks more! The syntax highlighting is more standard. I found the red comments on a grey background difficult to read in the old theme. However, I would still want to see higher contrast in the text.

It looks like the mobile view is getting fixed [1].

[1] https://github.com/ruby/rdoc/pull/1162

By @porgarmer - 4 months
- Why is this dark green?

- 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

By @Alifatisk - 4 months
So what alternatives is there to the official docs?

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

By @oglop - 4 months
People not in the Ruby unity probably don’t realize Ruby takes a very liberal approach to its docs.

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.

By @usernamed7 - 4 months
Why is it green? It shouldn't be green. Ruby docs should be red.

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.

By @lawgimenez - 4 months
The font is not good for my bad eyesight with severe astigmatism.
By @baggy_trough - 4 months
That's nice, but what I'd like is if I type the name of a major class, like "File", that the File class be on top, not some obscure method/module that contains "File" as a substring.
By @Taig - 4 months
There is a lot wrong here. But my favorite messed up detail is how my cursor changes to text mode when I hover the hamburger button on the top left.
By @3np - 4 months
Two regressions I noted right away (chromium):

- 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.

By @biql - 4 months
Sadly, the typography looks too neglected for the time when there is such an abundance of templates and fonts.
By @majewsky - 4 months
Here's a user stylesheet to make it slightly more readable:

  #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.
By @pmdr - 4 months
Not the best redesign, but probably the most upvotes and comments on a Ruby related post lately, so yay?
By @mkl95 - 4 months
I remember this kind of UX being prevalent in the early 2010s or so. Fortunately most docs have moved on.
By @elif - 4 months
This reminds me of all the times a manager asked if I (backend dev) could 'just do a little interface for xyz'

Like what do you expect from me? I would be rendering these docs in a w3 emacs frame...

By @matteason - 4 months
Is the font rendering any better on other platforms? On Windows it's so poorly hinted that the top and bottom of the lowercase 's' are disconnected
By @nilslindemann - 4 months
* Ugly font rendering * Underscores in page names * No 'next' and 'prev' buttons.

When that is done it should be a good start.

By @pawelduda - 4 months
Don't like it, don't know what problems it was supposed to solve
By @rootedbox - 4 months
Doesn’t work on mobile

- sent from my iPhone

By @alabhyajindal - 4 months
Looks terrible. Very sad.
By @yunwal - 4 months
Up there with Tropicana and Gap for senseless rebrands
By @cute_boi - 4 months
They should probably get idea from Laravel docs.
By @aa_is_op - 4 months
It's called Ruby, but the color theme is green.

Hilarious!

By @Themainfn - 4 months
the font looks stuck at 99%
By @dudeinjapan - 4 months
The main font color for Ruby is... green?
By @flufluflufluffy - 4 months
The vomit-green color is my favorite part. Like, they didn’t even try for a forest-green, or lime-green, nope. went straight for vomit
By @stevenfoster - 4 months
Big nope.
By @wiseowise - 4 months
Not optimized for mobile in 2024, seriously?
By @jacamera - 4 months
No dark mode? Seriously?