Live data from Hacker News

Ruby website redesigned

ruby-lang.org

51–60 of 224 posts

Re: Ruby website redesigned

#52

I like the new design, however, I strongly believe the website could've been optimized further and used much less JS. Opening the website with JS turned off makes the code examples not load and the front page freezes as "0%" loading. What does it do exactly? It just fetches[1] to another part of site and retrieves static text[2] to be displayed. This part could've been kept as part of the html, no need for this artif…

> used much less JS

The homepage loads 9.7kB of JS. Navigating to every single link in the main nav results in no additional JS being loaded.

The site is fine.

Re: Ruby website redesigned

#53

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.

Had the same exact thought. That DHH was included and Sandy was not really surprised me.

Re: Ruby website redesigned

#54
post #41

Earlier quoted context omitted.

As polyglot developer, I am also for a no-fluff approach and vanilajs for the win. One of the reasons Next.js is attractive to me, is exactly they have rediscovered why so many of us have stayed with SSR.

> no-fluff … Next.js Hmm. We can agree to disagree on the definition of fluff.

Sure, if you ignore the SSR and SSG part, which sadly most nodejs stuff lacks.

Additionally, Next.js should only be used when SaaS product vendor doesn't allow for any other option, which sadly is the case when making themselves sellable to magpie developers, while riding VC money until the IPO takes off.

I rather deliver, than do yak shaving, but at least can deliver only HTML and CSS if I chose to.

Re: Ruby website redesigned

#57
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 could be done with :indeterminate state (so key in a cookie would be absent or removed when switching), but I'd probably would do it with radios instead

Re: Ruby website redesigned

#59

I like the new design, however, I strongly believe the website could've been optimized further and used much less JS. Opening the website with JS turned off makes the code examples not load and the front page freezes as "0%" loading. What does it do exactly? It just fetches[1] to another part of site and retrieves static text[2] to be displayed. This part could've been kept as part of the html, no need for this artif…

Darkmode toggle can be (and usually is) achieved by CSS.
Post reply on HN