Incredibly sad to see @rubycentral platforming the openly racist white supremacist edge lord for the final RailsConf 👎🏽
Rubyist and computer scientist. London.
Incredibly sad to see @rubycentral platforming the openly racist white supremacist edge lord for the final RailsConf 👎🏽
@joeldrapper I understand what you mean, but I also think this is a straightforward, achievable, concrete thing that would make the situation better. If there’s someone out there who can be separately motivated (by money?) to actually improve the content and/or SEO of the official docs, that’d be great, but it feels a bit more hypothetical to me. Maybe I’m wrong!
@joeldrapper Because ruby-doc.org ranks well in web searches but the results are often unhelpful, especially for people who aren’t well-versed in navigating the Ruby API docs. For example, the top result I get when I search Google for “ruby net::http” is https://ruby-doc.org/stdlib-2.7.0/libdoc/net/http/rdoc/Net/HTTP.html which is ancient. Sending those searches to the official API docs — which are being actively worked on — would be a good first step towards improving the user experience.
Please, @rubycentral, buy ruby-doc.org and redirect it to docs.ruby-lang.org. I’ll gladly chip in to help pay for it. https://mastodon.social/@jamesbritt/114375521517175143
@denis Galaxy brain: act like you’re wearing trousers
@aristotelesbr Patterns look like expressions but they’re a different syntax. You can write the `id: …, name: …` hash pattern as `Person[id: …, name: …]` or `Person(id: …, name: …)` if you want to check the class of the object, but `Person.new(id: …, name: …)` isn’t valid hash pattern syntax. https://docs.ruby-lang.org/en/3.4/syntax/pattern_matching_rdoc.html#label-Matching+non-primitive+objects-3A+deconstruct+and+deconstruct_keys
@fnordfish Or this is kind of fun (and supports `limit`):
```
class String
def rsplit(...) = reverse.split(...).map(&:reverse).reverse
end
```
@olivierlacan Reassuringly, I think it’s human error: the fix (https://github.com/rack/rack/commit/4aa19786a0aad7ff2ca66eeaede4a257cc7b0726) is in v3.1.10, and the Ruby Advisory Database says v3.1.10 (https://rubysec.com/advisories/CVE-2025-25184/), but the rack/rack advisory mistakenly says v3.1.11 (https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg).
Er, I’d love to, except…
@floehopper Ooh, well spotted, this’ll let me remove six lines from my .railsrc!
If anyone is using Mocha on a Ruby or Rails codebase of a significant size (Shopify?!), I'd really appreciate it if you could try out the v3.0.0.pre.rc.1 Mocha release candidate and let me know how you get on. 🙏
@emma I call app Britain
@timriley Deffo.
@porras Nobody's mentioned it yet, so: Array#transpose is the opposite.
I’m streaming Still Wakes the Deep now: https://youtube.com/live/76NxMnScIQI
I’m streaming Astro Bot now: https://youtube.com/live/1GmjMouWIiw
The last time I streamed any video games was July 2022 and I miss it. Tonight I’m going to fire up the PS5 and stream the Astro Bot Winter Wonder DLC and, depending on how long that takes to finish, whatever else I fancy (maybe Still Wakes the Deep?). See you at 8pm UK time; I’ll post the YouTube URL here when it’s live.
If I was going to teach a backend web framework (like Django, Rails, etc) my (unequally sized) lessons would be:
1. The request-response process
2. HTML
3. Basic CSS
4. Basic client side JavaScript (optional)
5. The backend language (Python, Ruby, etc)
6. The framework itself
The number of people learning Django (or whatever) and having zero understanding of HTML is amazing.
Rubyists! Nokogiri v1.17.0 has been unleashed.
This is primarily a stability/bugfix release improving SAX parsers, fragment parsing, error handling, schema validation, and more!
It also introduces keyword arguments for many methods thanks to the RubyConf 2024 Hack Day participants! ❤️
https://github.com/sparklemotion/nokogiri/releases/tag/v1.17.0