Ruby Weekly Issue 600: April 21, 2022

Ruby Weekly Issue 600: April 21, 2022

🎉 Somehow we’ve made it to issue 600 – thanks for your continuing support! Can we make it to 1000? Watch this space in April 2030.. 😁
Your editor, Peter Cooper

Ruby’s YJIT Ported to Rust — We briefly mentioned the proposal for this a few months ago, but things have moved fast and now a Rust version of YJIT has already reached parity with the C version! Look for this to come in 3.2. And if you’re asking.. why? Maintainability and management of complexity, mostly.

Ruby Core

⭐️  How to Create a Modern CRUD App with Rails and React — A thorough, and newly updated, tutorial covering building a fully functional CRUD app with Rails 7, SQLite, esbuild, React 18, hooks, React Router, and more. An ideal guide if you want to get a feel for all the moving parts involved in such an app.

James Hibbard

The Best Deployment Tool for Rails — Deploy Rails apps on any cloud, with native support for Rails conventions, full databases support, replication & backups, powerful access management & traffic control features. Try it today for free with an extra $100 in free credits with the code: RubyWeekly!

Cloud 66

Ruby 3.1 Introduces Variable Width Allocation for Strings — This is deep stuff that you don’t need to know, but it’s reassuring to know a lot of work is going into making Ruby more efficient. Variable Width Allocation is currently limited to Class and String types and reduces bottlenecks and total memory usage while still maintaining similar performance.

Murtaza Bagwala (Saeloun)

Code Ranges: A Deeper Look at Ruby Strings — If you think string representation and encodings are esoteric, wait until you read how Ruby uses code ranges to optimize scanning a string for valid, encoded characters.

Kevin Menard (Shopify)

Quick Bits:

  • Rubocop has turned 10 years old – congratulations. Bozhidar Batsov shares a little of the story so far and how he’s keen to see it last for another decade.

  • RubyGems 3.3.12 has been released. There’s also the usual monthly news update from Ruby Together.

  • For ▶️ episode 414, the Ruby on Rails Podcast takes the unusual step of having a guest (Drew Bragg) who turns the tables and interviews the usual host, Brittany Martin.

4 Senior ROR Engineers — Mastered ROR (6-8 years of XP)? Join Anka: The all-in-one solution to export products made of Africa globally. Great technical challenges, fast development opportunities, and a badass team.


Find Ruby Jobs Through Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It’s free for job-seekers.


📕 Articles & Tutorials

Custom Ranges in Ruby1..10 is one thing, but what about if you want to support range syntax on your own custom objects? You can do it by just implementing two methods.

Joël Quenneville

How to Fake Time in a Postgres Database — Mocking the time in Ruby itself isn’t too tricky (Timecop to the rescue) but what about when it comes to working with databases? Timecop can also help here, but there’s a lot more to think about.

Justin Searls

Testing Techniques: The ‘I/O Table’ — Covers some basic principles of good tests before focusing on improving maintainability by thinking about inputs and outputs and refactoring around that mental model.

Thiago Araújo Silva

Source link

Leave a reply

Please enter your comment!
Please enter your name here