Weekly bookmarks - Issue #27
Hey guys! I’m currently building an app using DDD principles with the rails_event_store gem. It’s been pretty straightforward for now but l’a be curious to have feedback from people that have been using this approach. Is there something I should be careful or aware of? Thx 🙏
💡 Rails tip: Active Record makes it easy to manipulate compound objects stored in multiple columns. Works great in many scenarios:
✅ Addresses
✅ Currencies
✅ Settings
✅ Tax IDs (ID type + ID value)
✅ Many others
Let's have a look some code ⬇️
A big climate problem we can actually solve
It looks like Revue is shutting down by the end of the year. 😢
Any recommendations for a newsletter service?
My requirements:
• No-frills link adding
• Simple (boring) email theme
• Email-only subscribe via HTTP form
• Option to turn off open-tracking
• Paid is OK
💡 Rails tip: Rails generates names like post[tags][] (storing an array of tags). This works most of the time, but sometimes you may need to generate such name in a custom component.
Fortunately, it's easy with field_name!
There are limits though ⬇️ https://t.co/UF4Lb9RtGt
Drastically reduce memory usage (>50%) in Ruby / Rails / Sidekiq workers with 1 env variable #ruby #rails https://t.co/nxXR9nZAKf
You might have extended classes in Rails, but do you know you can also extend Rails associations?