Live data from Hacker News

Ruby website redesigned

ruby-lang.org

61–70 of 224 posts

Re: Ruby website redesigned

#61
I used cursor over the past three weeks to update a 12 year-old Ruby on rails project. While it has been slightly updated throughout the years, this was my first proper modernization of the code base.

It’s been a real pleasure getting back into Ruby after so many years in typescript, python, and rust.

Happy to see the update. Real shame about the haters here, the Ruby community is a supportive and positive bunch that has shipped real products while others seem to worship at the altar of computer science alone… that’s about as counter snarky as I want to be here

Re: Ruby website redesigned

#62
post #49
post #45

Earlier quoted context omitted.

Sure: - images: none are visible above the fold - all should be lazy loaded (like it is done with all conference images) and the pragdave.jpeg one does not need to be that large; - JS: navigation toggle, including chevron rotation can be done in CSS using :has combined with checkbox/radio input. Similarly for header-navigation and theme-toggle (here combined with cookie store). Then toc.js - seems like something easy…

> Similarly for header-navigation and theme-toggle The theme toggle has three states. How do you model this with a checkbox?

It's possible to have a 3-states CSS switch/slider that controls site theme. Google it or ask AI assistant.

Re: Ruby website redesigned

#63
post #49
post #45

Earlier quoted context omitted.

Sure: - images: none are visible above the fold - all should be lazy loaded (like it is done with all conference images) and the pragdave.jpeg one does not need to be that large; - JS: navigation toggle, including chevron rotation can be done in CSS using :has combined with checkbox/radio input. Similarly for header-navigation and theme-toggle (here combined with cookie store). Then toc.js - seems like something easy…

> Similarly for header-navigation and theme-toggle The theme toggle has three states. How do you model this with a checkbox?

Why does a site even need a light/dark toggle, when you can just use prefers-color-scheme in CSS, and the user can select that in their browser settings?

(Also, technically, alternative stylesheets can be defined in HTML, except every browser except Firefox removed it: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...)

Re: Ruby website redesigned

#64

I wonder why Sandi Metz is missing in the testimonial section. One of the most influential persons in software analysis and design in the Rubyverse.

Sandi is also "moderately retired" -- hasn't done a speaking engagement in 5 years -- a blog post in longer...

Sometimes it's nice to just let people rest and get on with life.

Re: Ruby website redesigned

#65
post #46

So many Web designers put zero thought into how their page looks when it is not loaded or not scrolled exactly past the trigger. So many sites say "0 happy customers", because someone thought showing incrementing numbers is cool. On this page, it opens up with a "100%" loading indicator, for a site that appears to have no interactivity that would require JS, just to show a pointless animation.

I really like the 90s-esque aesthetic of sites like HN. Low bandwidth, minimal in an artistic way. I wish less sites would try to make them look like a wordpress from the early twenty aughts.

You don't even need to do a certain aesthetic to make your website fast. Just send your entire content in the HTML, instead of needing extra HTTP requests for JS and then more HTML before having all the stuff for your first render.

Re: Ruby website redesigned

#66
post #63
post #49

Earlier quoted context omitted.

> Similarly for header-navigation and theme-toggle The theme toggle has three states. How do you model this with a checkbox?

Why does a site even need a light/dark toggle, when you can just use prefers-color-scheme in CSS, and the user can select that in their browser settings? (Also, technically, alternative stylesheets can be defined in HTML, except every browser except Firefox removed it: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... )

[deleted]

Re: Ruby website redesigned

#67
post #63
post #49

Earlier quoted context omitted.

> Similarly for header-navigation and theme-toggle The theme toggle has three states. How do you model this with a checkbox?

Why does a site even need a light/dark toggle, when you can just use prefers-color-scheme in CSS, and the user can select that in their browser settings? (Also, technically, alternative stylesheets can be defined in HTML, except every browser except Firefox removed it: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... )

> Why does a site even need a light/dark toggle, when you can just use prefers-color-scheme in CSS, and the user can select that in their browser settings?

Good question, especially since the Ruby site already does this by default. Perhaps the argument is that one of the two color schemes may be designed so poorly that the user may want to manually switch to the other one.

Re: Ruby website redesigned

#68
post #63
post #49

Earlier quoted context omitted.

> Similarly for header-navigation and theme-toggle The theme toggle has three states. How do you model this with a checkbox?

Why does a site even need a light/dark toggle, when you can just use prefers-color-scheme in CSS, and the user can select that in their browser settings? (Also, technically, alternative stylesheets can be defined in HTML, except every browser except Firefox removed it: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... )

Because being able to switch from light to dark mode by clicking a single button is a useful feature, and while it would be nice if operating systems provided this out of the box, many (e.g., Windows) do not.
Post reply on HN