Tom Stuart

Rubyist and computer scientist. London.

Tom Stuart boosted:
Tekin Süleyman 🍉tekin@ruby.social
2025-05-29

Incredibly sad to see @rubycentral platforming the openly racist white supremacist edge lord for the final RailsConf 👎🏽

Tom Stuarttom@ruby.social
2025-04-22

@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!

Tom Stuarttom@ruby.social
2025-04-22

@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 ruby-doc.org/stdlib-2.7.0/libd 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.

Tom Stuarttom@ruby.social
2025-04-22

Please, @rubycentral, buy ruby-doc.org and redirect it to docs.ruby-lang.org. I’ll gladly chip in to help pay for it. mastodon.social/@jamesbritt/11

Tom Stuarttom@ruby.social
2025-02-23

@denis Galaxy brain: act like you’re wearing trousers

Tom Stuarttom@ruby.social
2025-02-22

@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. docs.ruby-lang.org/en/3.4/synt

Tom Stuarttom@ruby.social
2025-02-18

@fnordfish Or this is kind of fun (and supports `limit`):

```
class String
def rsplit(...) = reverse.split(...).map(&:reverse).reverse
end
```

Tom Stuarttom@ruby.social
2025-02-15

@olivierlacan Reassuringly, I think it’s human error: the fix (github.com/rack/rack/commit/4a) is in v3.1.10, and the Ruby Advisory Database says v3.1.10 (rubysec.com/advisories/CVE-202), but the rack/rack advisory mistakenly says v3.1.11 (github.com/rack/rack/security/).

Tom Stuarttom@ruby.social
2025-02-15

Er, I’d love to, except…

Upgrade rack to fix 1 Dependabot alert in Gemfile.lock

Upgrade rack to version 3.1.11 or later. For example:

gem "rack", ">= 3.1.11"All versions of rack

142 VERSIONS SINCE JANUARY 11, 2013:
3.1.10 February 12, 2025 (109 KB)
3.1.9 January 30, 2025 (109 KB)
3.1.8 October 14, 2024 (109 KB)
3.1.7 July 11, 2024 (109 KB)
3.1.6 July 02, 2024 (108 KB)
3.1.5 July 02, 2024 (108 KB)
3.1.4 June 22, 2024 (108 KB)
3.1.3 June 12, 2024 (108 KB)
3.1.2 June 11, 2024 (108 KB)
3.1.1 June 11, 2024 (108 KB)
3.1.0 June 11, 2024 (108 KB)
Tom Stuarttom@ruby.social
2025-01-31

@floehopper Ooh, well spotted, this’ll let me remove six lines from my .railsrc!

Tom Stuart boosted:
2025-01-29

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

#ruby #rubyonrails #rails #testing

Tom Stuarttom@ruby.social
2025-01-13

@emma I call app Britain

Tom Stuarttom@ruby.social
2025-01-08

@timriley Deffo.

Tom Stuarttom@ruby.social
2024-12-24
A thread on Hacker News: “Ask HN: Programmers who don't use autocomplete/LSP, how do you do it?”
Tom Stuarttom@ruby.social
2024-12-19

@porras Nobody's mentioned it yet, so: Array#transpose is the opposite.

Tom Stuart boosted:
Tom Stuarttom@tomstu.art
2024-12-18

I’m streaming Still Wakes the Deep now: youtube.com/live/76NxMnScIQI

Tom Stuart boosted:
Tom Stuarttom@tomstu.art
2024-12-16

I’m streaming Astro Bot now: youtube.com/live/1GmjMouWIiw

Tom Stuart boosted:
Tom Stuarttom@tomstu.art
2024-12-16

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.

Tom Stuart boosted:
Phil Gyfordphilgyford
2024-12-16

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.

Tom Stuart boosted:
2024-12-08

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! ❤️

github.com/sparklemotion/nokog

#ruby #xml #html5

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst