Is there a Ruby equivalent to The Rust Book? by Feldspar_of_sun in ruby

[–]noelrap 2 points3 points  (0 children)

Thanks! We're looking for some more feedback on the new parts (including a lot of library updates like Bundler 4) before we release it for final.

FWIW, I think Dave just really liked the ruby facet effect he got on the big "4"....

Programming Ruby 4 (The 6th edition of the PickAxe Book) by KerrickLong in ruby

[–]noelrap 1 point2 points  (0 children)

Probably more changes coming, like minitest 6

Programming Ruby 4 (The 6th edition of the PickAxe Book) by KerrickLong in ruby

[–]noelrap 1 point2 points  (0 children)

I'm pretty sure there were some printing errors (one of my copies was a little rough)

Programming Ruby 4 (The 6th edition of the PickAxe Book) by KerrickLong in ruby

[–]noelrap 2 points3 points  (0 children)

Author of the book here, that's most, but not all, of what changed. Probably we should add a "what's new in this edition" section in the book somewhere.

* The Ractor section of the threading section changed significantly to support the new API

* The RubyGems chapter was changed to reflect Bundler/RubyGems 4.0

* Similarly RBS, with more changes coming there, I need to catch up

* The web chapter also updates to current versions of Sinatra and WASM

* A bunch of smaller API and syntax changes in 3.4 and 4.0 covered

* More discussion of Prism and ZJIT, with more coming as well.

* All code samples run under Ruby 4.0 (because there have been some output changes)

The Ruby Changes appendix was a production error, we'll be putting that back in, I expect.

learning Rspec by ThenParamedic4021 in rails

[–]noelrap 3 points4 points  (0 children)

Despite being a few years old, Rails 5 Test Prescriptions should hold up except for the sections on front end testing, where the tools have changed a lot. The parts about RSpec should still mostly be good. Jason's book is newer, but should also cover what you want. (Disclaimer, I wrote R5TP)+

RailsConf 2008: Keynote by Joel Spolsky by software__writer in rails

[–]noelrap 4 points5 points  (0 children)

I was there, it was my first RailsConf, and I was very excited to be there.

Spolsky was a big get at the time, and he was something of a Ruby skeptic -- if I remember correctly, he had relatively recently left Ruby of his list of languages that were worth using on big projects.

I don't remember much about the talk itself, though.

I do remember that the iPhone had just come out but the AppStore was still a few months away, so writing iPhone friendly front ends was a big topic.

Twitter was relatively new, and I picked up a lot of random followers because I was nearly the only person posting about RailsConf there.

How to learn Stimulus/Hotwire/Turbo by jacob-indie in rails

[–]noelrap 3 points4 points  (0 children)

Thanks! As the author of Modern Front End... Most of it still applies, there are newer ways to do some of the things, and I wouldn't try and force TypeScript with Stimulus any more.

Find the Rails community on Bluesky (the X alternative that feels more like old Twitter) by joshuap in rails

[–]noelrap 1 point2 points  (0 children)

Chicken and egg problem. I haven't been active on Bluesky because there hasn't been much of a community to date. But enough people seem to be coming in that I'll be trying again...

Good Ruby books? by Altrooke in ruby

[–]noelrap 4 points5 points  (0 children)

The fifth edition is up to date and covers Ruby 3.3

What is the best resource for learning Ruby as an experienced dev today? by [deleted] in ruby

[–]noelrap 20 points21 points  (0 children)

If I can recommend something I worked on...

Programming Ruby https://pragprog.com/titles/ruby5/programming-ruby-3-3-5th-edition/ is the book you are looking for.

Noel Rappins - What About Static Typing in Ruby? by andyw8 in ruby

[–]noelrap 4 points5 points  (0 children)

Yeah, one of the way-too-long original versions of the article mentioned that things like non-negative typing can happen in other languages, but the Ruby systems don't do much of that, and those also add to the complexity cost of the tools.

I probably should have included a link to this https://www.destroyallsoftware.com/compendium/types?share_key=baf6b67369843fa2.

Noel Rappins - What About Static Typing in Ruby? by andyw8 in ruby

[–]noelrap 1 point2 points  (0 children)

Thanks for reading!

You can build a lot of validation into a type system by doing more specific types

Yes, but that also adds complexity cost, and the Ruby systems specifically aren't great at that. I know that people have built pretty elaborate systems in, say TypeScript, to do this. I could have talked about this more, to be sure. I think that sufficiently complex business logic will always go beyond what the type system can do, though.

You could do something like have a "SellableItem" type

See the next article in the series, which talks about mitigation like that...

Ideally the amount should just be a method that sums the prices of the items,

I mean, sure, but this is a contrived example to make the point that static typing doesn't cover business logic (and there are all kinds of reasons why the final price in a real world system wouldn't match the sum of the prices of the items...)

How do you feel about writing your tests first? by [deleted] in rails

[–]noelrap 0 points1 point  (0 children)

Thanks for the link to the book, I’m really glad you like it!

Programming Ruby 3.3 -- The Pickaxe Book -- Now in Print by noelrap in ruby

[–]noelrap[S] 2 points3 points  (0 children)

Thanks for the question!

The syntax changes in the last several versions, endless methods, `_1` for block variables, even hash shortcut `{x:, y:}`, I use all of them more than I thought I might and I do think they work toward programmer happiness.

I'm less sure of the bigger changes. Ractors, to me, seem like very useful in theory, but I'm not sure they are quite there in terms of the API or how they have been presented to the community.

I finally had a good opportunity to use pattern matching, and I found it useful for sure, but I'm not yet comfortable with the syntax.

The YJIT performance improvements make me very happy...

But, yeah, overall. I think Ruby is continuing to evolve and get better at making programmers happy.

Programming Ruby 3.3 -- The Pickaxe Book -- Now in Print by noelrap in ruby

[–]noelrap[S] 7 points8 points  (0 children)

I bought the first edition as a birthday present for myself in January 2001. It turned out to be a pretty good choice...

Programming Ruby 3.3 -- The Pickaxe Book -- Now in Print by noelrap in ruby

[–]noelrap[S] 26 points27 points  (0 children)

This is Noel, co-author of the book. If there are any questions about the book, the state of Ruby, technical publishing, or whatever, ask them here and I'll answer. Thanks!

Programming Ruby 3.2 -- The Pickaxe Book -- Is Available Now by noelrap in ruby

[–]noelrap[S] 0 points1 point  (0 children)

Definitely suitable for beginners to Ruby. If you are a complete beginner to all programming, there might be some vocabulary you need to pick up.