29 Tweets about
Rails
A topic by Tony Ennis

This is an appreciation tweet for @rails. Such an enduring great technology. If you鈥檙e interested, now is better than ever to start using it.

Saved to Rails
3 months ago

Tired: 芦聽Ruby on Rails is sooo dying in 2023聽禄 Hired: RoR is the most in-demand skill in 2023. Source: HIRED State of Software Engineering 2023 pic.twitter.com/fnWmcLSvh3

LiliVerrot tweet image
Saved to Rails
3 months ago

馃М Ruby's Enumerable#tally is so underused It's great for quickly exploring your data without writing a bunch of loops and counters pic.twitter.com/141i9n8BXJ

_swanson tweet image
Saved to Rails
7 months ago

馃挕Rails tip: logs can be tagged with contextual information (current_user_id, account_id, etc.) to make operations and debugging easier. 馃憠馃徎Use the tagged method to apply tags to a block of code or ... 馃憠馃徎don't pass a block and get a new (tagged) logger Next tweet: tag pattern pic.twitter.com/TEACf2YR5h

gregnavis tweet image
Saved to Rails
8 months ago

馃挕Rails tip: Rails has a TON of settings. Below are three settings that may come in handy in most projects: 1锔忊儯Raising an error when batch processing replaces ordering 2锔忊儯Warning when fetching too many rows 3锔忊儯Async destruction via a dedicated queue What should I discuss tomorrow? pic.twitter.com/tjgXgOpoYR

gregnavis tweet image
Saved to Rails
8 months ago

In Ruby, there's a misconception about Bang 馃挜 methods(map!, upcase!, gsub!, ...) that the ! exists because it mutates the variable. The Bang(!) in a method is a code convention to warn you that their behavior differs from their normal version (example: map! for map). 馃憖馃憞 pic.twitter.com/M3AIX94pOc

th1agofm tweet image
Saved to Rails
8 months ago

Method chaining in Ruby is an interesting idiom for building DSLs(Domain Specific Languages). I remember when I first saw code().like().this(), my first reaction was "Oh, this is cool!" and felt the need to learn how to do it. 馃 Here's a short and simple explanation: 馃憞 pic.twitter.com/aDxoKmzvLS

th1agofm tweet image
Saved to Rails
8 months ago

Rails tip: you can easily track slow DB queries without any additional gems pic.twitter.com/xMfmsBF7nO

kukicola tweet image
Saved to Rails
8 months ago

馃挕Rails tip: building queries with Active Record is easier when you treat it as a DSL on top of SQL. 鈿狅笍Stop fighting the framework! Step zero: understand SQL Step one: understand how Active Record constructs map to SQL I'll cover the basics today, advanced stuff tomorrow. pic.twitter.com/vvPlw84ncO

gregnavis tweet image
Saved to Rails
8 months ago

Where does everyone usually put their POROs? I know a lot of Rails apps have a services folder (not my preference). I sometimes organize by design pattern. That gets kind of silly sometimes though. Is lib an appropriate place for POROs?

Saved to Rails
8 months ago

Rails provides a `Configurable` concern that lets you add configuration options on classes. It uses `OrderedOptions` behind the scenes, so you can use the method-like syntax. pic.twitter.com/3iWiPciWLl

ak_rails tweet image
Saved to Rails
8 months ago

馃У (3/4) Finally, I just read the slides and am watching a talk by Cameron Dutro (@camertron) entitled 鈥淎dvanced Arel: When ActiveRecord Just Isn't Enough鈥. The talk was given 8 years ago, but is still 100% relevant today. I cannot recommend it enough to anyone using Rails + SQL

Saved to Rails
8 months ago

鈿★笍 Database Tip Tag searching can be done wholly differently: You can store the tag primary keys in a JSON array and effectively search for overlapping tag ids or missing ones without very complex joins. A single where instead of multiple (slow) joins to do the same thing. pic.twitter.com/XrLACz33NE

tobias_petry tweet image

Did you know that you can create a single-file Rails application? You shouldn't unless you are experimenting with something, but here is how it can be done: 馃У 馃憞

Saved to Rails
10 months ago

When I joined GitHub I remember thinking that I'd be learning fancy/unique Rails patterns needed for scale. Instead I learned "just use default rails". model/view/controller is good. twitter.com/taylorotwell/s鈥

Ruby on Rails is coming back! If you're on the Javascript train, you're probably tired of new releases. But this one's gonna rock the boat. Here's why... 馃憞馃У

Saved to Rails
8 months ago

No idea how to implement a new Ruby on Rails feature, model, controller, or migration? How to write a proper test? Here's a list of 216+ Rails Apps you can use as a reference, and how to easily find what you need.馃挘 hexdevs.com/posts/massive-鈥

about 1 year ago

With @rails 7, @railshotway (HoTW鈿★笍Re hotwire.dev), Stimulus, Strada, @bridgetownrb, @render and things like this - I believe @rubylangorg is about to have a renaissance. I can't imagine building Web2 applications in anything else right now. LFG. twitter.com/andrewculver/s鈥

Saved to Rails
over 1 year ago

Ruby object count rules of thumb: <10,000 = don't sweat it 10k->100,000k = might matter if you loop, but also don't worry about it 100k->1mil = reducing objects would speed this up considerably 1mil->10mil = This is increasing your process' memory + is v. slow >10mil = 鈽狅笍

Saved to Rails
over 1 year ago

Reusable Turbo-iOS Project Configured Entirely From Your Rails聽App including app colors, navbar buttons, tabbar tabs, triggering backend javascript, toggling functionality whether user is logged in. #rails #rubyonrails #turboios #iosdev dev.to/dalezak/reusab鈥

almost 2 years ago

My grandma 馃懙馃徎 has Alzheimer鈥檚, she has trouble remembering what to do during the day. I鈥檝e created an always-on iPad app using Turbo-iOS that shows her what鈥檚 on her schedule. Events are added using a simple shared Google calendar and pushed to the iPad using websockets. pic.twitter.com/wrRNlqcv5B

BramJetten tweet image
almost 2 years ago

馃拵 Ruby tip馃拵 Did you know that ActiveSupport gives you a module that allows you to easily make any class or module configurable? And Rails controllers already have that included by default. 鈫 Example 鈫 #ruby #rails #rubyonrails pic.twitter.com/jalAyAAXba

websebdev tweet image
about 2 years ago

馃М Quickly explore your data with Ruby Enumerable methods `uniq` and `tally` boringrails.com/tips/explore-d鈥 pic.twitter.com/tVAWQVwnmM

_swanson tweet image
about 2 years ago

Total comp for Rails senior devs, based on ~40 of my followers (USD): BRIC/South America 30k-60k, flyover USA 90k-140k, EU $100-130k, UK $125-150, USA Remote and NYC $150-200k, SF $200-250k.

about 2 years ago

Coinbase, Airbnb Shopify, GitHub all initially built on Rails, two of them on Heroku Others like them: Groupon, ask.fm, Zendesk, Urban Dictionary (a fascinating story in itself given the traffic it does) all Rails & some Heroku twitter.com/jfahrenkrug/st鈥

Rails examples

Read More
Hide

Tailwind CSS for Rails allows you to use Tailwind without setting up the entire JavaScript build pipeline, but still take advantage of purging for production. github.com/rails/tailwind鈥

about 2 years ago

Dropzone + ActiveStorage + CableReady 馃ぉ Blogpost anyone? pic.twitter.com/rPEK8QGDx1

Saved to Rails
about 2 years ago