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.
Ruby website redesigned
91–100 of 224 posts
Re: Ruby website redesigned
#92I 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…
Re: Ruby website redesigned
#93Earlier quoted context omitted.
Yep, and for such cases it is usually very easy to make it work properly, if only a web developer put a little thought to it. We have most or all of the tools we need in HTML and APIs to make it work regardless. Like for example for the happy customer counter one could easily have a noscript fallback, that uses the number one already needs to retrieve to show the animation, but puts it there immediately. Then, iff JS…
The noscript would not be needed at all. The value could be the real one by default, then in js set to 0 and incremented
I guess I thought of noscript due to other cases I had recently, where I noscript-ed a whole workflow and displayed elements, that should never appear, when JS is running.
Re: Ruby website redesigned
#94Earlier quoted context omitted.
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.
What if I told you that you don't need javascript?
Re: Ruby website redesigned
#95I 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…
[flagged]
Re: Ruby website redesigned
#96Re: Ruby website redesigned
#97Earlier quoted context omitted.
> 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.
This page doesn't need JS. It doesn't need a loading indicator for said JS. It could just be html and css, otherwise unchanged.
Re: Ruby website redesigned
#98[1] https://github.com/ruby/www.ruby-lang.org/graphs/contributor...
Re: Ruby website redesigned
#99The Lighthouse report is telling. It scores 100% for Best practices and SEO, but 54% for Performance. Pages like these used to be caricatures of the modern web, but are now acceptable. DHH's statement doesn't help either.
Re: Ruby website redesigned
#100 - https://glot.io/snippets/he42jpfm27
- https://glot.io/snippets/he42trx6w6
- https://glot.io/snippets/he434b6ryj
Obviously Raku leans more to `{}` and `my $var` than Ruby - but otherwise I think it does a credible job. Obviously these are carefully chosen Ruby snippets to highlit its unique abilities in strings, "array math" and classes. On the string interpolation, I would say that Raku has the slight edge (and has the whole Q-slang for a lot of fine grained control). On the array math, I had to apply the (built in) Raku set diff operator ... so I guess that Ruby is a little more natural for this (rather quirky) feature. On the class stuff, again very close. Raku has much more powerful OO under the hood ... multi-inheritance, role-composition, punning, mixins, MOP, and yet is a delight to use in this lightweight way.