📝Daily
Day 63
Tony Duong
Aug 12, 2026 ・ 1 min
#engineering#ruby#rails#multithreading#performance#connection-pool#puma
Today, I:
- learned about Ruby's
andvs&&— same boolean idea, but different precedence (&&binds tighter thanand, so mixing them in assignments/conditionals can surprise you) - learned about multithreading in Rails for IO-bound work (HTTP requests, file reads) from this Medium post — can speed those up in-process instead of always shipping them to async jobs
- reminded myself that in Ruby ternary / conditionals,
[]and""are truthy — everything is an object, and onlynilandfalseare falsy - (re)learned how threads, workers, processes, and the DB connection pool relate — wrote it down simply in Rails Threads, Workers, Processes, and the DB Connection Pool (ELI5)