Full Stack Ruby on Rails Weekly Bookmarks

Share this post

Full Stack Ruby on Rails Weekly Bookmarks - #40

dcyoungdev.substack.com

Full Stack Ruby on Rails Weekly Bookmarks - #40

Slightly combined

David
Mar 8, 2023
Share
Twitter avatar for @jh3yy
jhey ๐Ÿ”จ๐Ÿปโœจ @jh3yy
Future UI && CSS Tip! ๐Ÿ”ฎ Use anchor positioning to tether an element to multiple anchors ๐Ÿค“ .link { left: anchor(--a1 center); bottom: anchor(--a2 center); } With some "magic", you could define links and let the browser draw them for you๐Ÿ”ฅ @CodePen link && expl. below! ๐Ÿ‘‡
8:19 PM โˆ™ Feb 21, 2023
622Likes89Retweets

5 super useful CSS properties that don't get enough attention

๐ŸŽ“ Start writing CSS with more confidence with one of my courses: https://kevinpowell.co/courses๐Ÿ”— Linksโœ… Full list of filter effects: https://developer.mozi......


Twitter avatar for @gregnavis
Greg Navis @gregnavis
๐Ÿ’ก Ruby tip: when defining methods, it's easy to teach Ruby to tell the difference between - no argument passed - argument equal to the default value passed โฌ‡๏ธ Code speaks louder than words, so let's jump right in! First, an example motivating the whole thread ...
1:36 PM โˆ™ Feb 21, 2023
45Likes4Retweets

Questionable new ways of running a retrospective

My teamโ€™s Managing Director and advisor on the project Iโ€™m working on, Kirsten, has noticed how reluctant I am in...


Twitter avatar for @ilrock__
Andrea ๐Ÿ‘จโ€๐Ÿณ @ilrock__
๐ŸŒถ๏ธ Hotwire tips 4/30 ๐Ÿช„ JS-less modals One of the most common use-cases that I would always use JS for are modals. I would create a simple stimulus modal controller and use that across my app. We can now go js-less using turbo frames ๐Ÿ–ผ๏ธ This is how you can get it done ๐Ÿ‘‡
1:41 PM โˆ™ Feb 22, 2023
54Likes5Retweets

Introduction of Rails Engine with basic example.

What is RailsEngine? A Rails engine is a self-contained piece of functionality that can be...


Twitter avatar for @tobias_petry
Tobias_Petry.sql @tobias_petry
โšก๏ธ Database Tip Did you know there are alternative ways of storing trees in a database with simplified querying and much easier tree management? Materialized paths are easier to query than parent_id relationships and easier to update than nested sets. sqlfordevs.com/tree-as-materiโ€ฆ
Image
3:34 PM โˆ™ Feb 22, 2023
256Likes51Retweets

Storing Ephemeral UI State with Kredis for Rails | AppSignal Blog

Let's dive into how Kredis works and how you can use it to store short-term UI state.


Twitter avatar for @hopsoft
Nate Hopkins @hopsoft
If you properly design the Rails' ActiveRecord model layer (relationships, scopes, etc...) so many things in your application will become much simpler.
6:55 PM โˆ™ Feb 23, 2023
101Likes6Retweets

Stop using eager loading in your Rails application; use this instead.

Itโ€™s a popular internet recommendation to use eager loading in Ruby on Rails applications to eliminate the N+1 query problem....Making the Most of Your Logs in Rails | AppSignal Blog

It's easy to get going with logging with Rails, but not so easy to master it. Discover how you can...Making the Most of Your Logs in Rails | AppSignal Blog

It's easy to get going with logging with Rails, but not so easy to master it. Discover how you can...


Twitter avatar for @bjessbrown
Jess Brown @bjessbrown
In #rails, you know about .find_each when looping through a large set of records, but did you know about in_batches? TIL:
Image
11:02 PM โˆ™ Feb 23, 2023
51Likes5Retweets

Making the Most of Your Logs in Rails | AppSignal Blog

It's easy to get going with logging with Rails, but not so easy to master it. Discover how you can...


Twitter avatar for @excid3
Chris Oliver @excid3
Does anyone else struggle with the "-able" naming for polymorphic relationships like "notifiable"? I'd rather it was just "belongs_to :record, polymorphic: true". Makes my brain work less this way.
10:07 PM โˆ™ Feb 23, 2023
148Likes2Retweets

Remote Synthesis | The Price Developers Pay for Loving Their Tools Too Much

Developers are passionate about their tools - sometimes to a fault. There is value in being open to change and...


Twitter avatar for @kirill_shevch
Kirill Shevchenko @kirill_shevch
Factory Method is a specialization of the Template Method pattern that combines different classes with common functionality. Each class responds to the same method, but each has a different implementation. Also, this is a good illustration of the SOLID open/closed principle.
Image
1:33 PM โˆ™ Feb 24, 2023
108Likes13Retweets

A Guide to PostgreSQL Views

Understanding PostgreSQL views and materialized views is essential to fully grasp one of the most popular features in Timescale that...


Twitter avatar for @ilrock__
Andrea ๐Ÿ‘จโ€๐Ÿณ @ilrock__
๐ŸŒถ๏ธ Hotwire tip 10/30 ๐Ÿช„ Multi-step forms These have always been a bit fussy to work with. The biggest challenge is always around handling partial form validation without saving a record to the db. My favourite approach comes from @JasonSwett . Let's build it with hotwire ๐Ÿ‘‡
4:18 PM โˆ™ Feb 28, 2023
98Likes11Retweets

Configuring Rails Environments

Despite its strong opinions and powerful conventions, Rails is a highly flexible and configurable framework. If you donโ€™t like something,...


Twitter avatar for @stevepolitodsgn
Steve Polito @stevepolitodsgn
๐Ÿ“ข Informal Poll Based on the screenshots below, what CSS framework (if any) do you think I used for these sites? - Tailwind - Bootstrap - Semantic UI - No framework (Custom CSS)
Screenshots of the homepages of three different websites.
Image
Image
12:18 PM โˆ™ Feb 26, 2023

Share
Top
New

No posts

Ready for more?

ยฉ 2023 dcyoung.dev
Privacy โˆ™ Terms โˆ™ Collection notice
Start WritingGet the app
Substackย is the home for great writing