List of blogs, Gems, Libraries, and Packages I found interesting from the past week. Hopefully, you find something interesting also. 😁
Ruby
- Testing Objects with a Functional Mindset - Good read on taking a functional approach to test things to reduce non-deterministic behavior in your tests. https://thoughtbot.com/blog/functional-viewpoints-on-testing-objectoriented-code
- A Better React/Rails Architecture - Nice write up from Stichfix about why they are transitioning from a Rails/React monolith to a microservices architecture. https://multithreaded.stitchfix.com/blog/2021/01/06/a-better-react-rails-architecture/
- Rails 6.1 adds support for belongs_to to has_many inversing - https://bigbinary.com/blog/rails-6-1-adds-support-for-belongs_to-to-has_many-inversing
- When to use Factory Bot’s traits versus nested factories - Covers when to use traits versus factories to create descriptive tests by being more descriptive on what data you are creating. https://www.codewithjason.com/factory-bot-traits-vs-nested-factories/
- A Webpacker guide is finally in the official Ruby on Rails guides! - https://edgeguides.rubyonrails.org/webpacker.html
JavaScript
- EStimator.dev: The Modern JavaScript Savings Calculator - Cool little site to tell you how you can further optimize your JS so your site loads faster. https://estimator.dev/
- 13 JavaScript One-Liners That’ll Make You Look Like a Pro - Forget the whole "Pro" thing, there are a couple of really nice functions you can use or refactor to in your codebase to have more descriptive code. https://medium.com/dailyjs/13-javascript-one-liners-thatll-make-you-look-like-a-pro-29a27b6f51cb
- Focus Rings - A centralized system for displaying and stylizing focus indicators anywhere on a webpage. https://github.com/discord/focus-rings
- GUI tool to generate React-Table code for your projects - This generates a scary blob of code but the tool seems super useful and I am sure it gets less scary ones you put everything in their own component files. https://www.akashmittal.com/gui-utility-to-generate-react-table-code/
- react-freezeframe - "Pause" gifs until they hover over. https://github.com/ctrl-freaks/freezeframe.js/tree/master/packages/react-freezeframe
Top comments (0)