We love reading, watching, and listening in order to keep our skills sharp and our perspectives fresh. Here are some of the resources we learned from this month.
Improved Absolute URL Detection in React Router Link Component
Link component is an important aspect of React Router's tooling, but historically we have had to fall back to anchor tags when linking outside of our app. React Router has addressed this in version 6.8. Now, we can use the
Link component for absolute URLs as well as internal links. It supports
mailto: URLs as well!
Don’t Sleep on Ruby & Rails
You might be forgiven for thinking, at first glance, that this is yet another podcast glorifying someone’s favorite framework/language to the exclusion of all other technologies. So imagine my surprise when I popped in my headphones and heard a detailed, balanced, and fun conversation devoid of the rancorous tribalism so common in these discussions. One of the main takeaways: when combined with Turbo and Stimulus, Rails is pretty capable of filling some of the niches previously occupied exclusively by SPA frameworks.
Finding the Current Timestamp in PostgreSQL
We’ve been thinking about Postgres a lot at The Gnar. So we were of course naturally drawn to an article discussing the quirks of retrieving the current timestamp. Apparently, finding the current timestamp isn’t as straightforward as invoking the
now() function. This article details three different ways to retrieve the current timestamp in Postgres –
clock_timestamp() – and the use cases for each.
The State of React Native 2022
Welcome to another Gnarly Learnings that includes ✨ “The State of [SOME TECH]”. ✨This time, it’s the first-ever installment of the State of React Native. This guide is pretty comprehensive but my favorite part is the clear ranking of tools that are used for different slices of an app (e.g. Routing, State Management, Styling) based on retention, interest, usage, and awareness. If nothing else, this would be a great resource for anyone interested in evaluating libraries for use in their React Native project.
Exploring Async Ruby
I had heard of the async gem prior to reading this article but had trouble coming up with a solid example in which I might use it. This article covers one engineer’s journey into and through asynchronous Ruby using an app to dynamically generate markdown. The article includes concise pros (scalability, minimal required code changes) and cons (poor documentation, incompatibility with certain libraries) to assist you in determining if this gem would be right for you.
Learn more about how The Gnar builds software.