Sign in

David

@dcyoung.dev
95 followers 374 following 53 posts

🚀 Web/Software/Ruby on Rails Developer | 🥃 Turning whisky into code in the scenic North East of Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿 | Collector of domain names dcyoung.dev braw.software

PostsRepliesMedia
David @dcyoung.dev · 18/06/2026
has_secure_password isn't just for passwords. Pass it a custom attribute and it'll hash a pin code just fine. Built a passwordless auth system using that and generates_token_for. Magic links and pin codes from one model. dcyoung.dev/shorts/authe...
dcyoung.dev
💡 Authentication Tokens in Rails Without Devise
Magic links are great. You click a link, you're signed in. No password to remember, no password to leak. For most sign-in flows they're probably the ideal solution. ...
000
David @dcyoung.dev · 18/12/2025
Just wrote up how I set up SQLite backups for a Rails app using Litestream and Cloudflare R2 Litestream streams your database changes to S3-compatible storage in near real-time, and the litestream-ruby gem handles the Puma integration nicely dcyoung.dev/shorts/setti... #rubyonrails #webdevelopment
040
David @dcyoung.dev · 12/12/2025
Reading Roundup is live. Prototyping in code, Rails view performance, custom elements, vanilla CSS, and building elegant Ruby API clients. Quick reads worth your time. Full issue here: dcyoungdev.substack.com/p/reading-ro... #RubyOnRails #WebDevelopment #SoftwareDesign
dcyoungdev.substack.com
Reading Roundup: Prototyping, Rails Views, Custom Elements, and Elegant APIs
Here’s a short roundup of articles I read this week. Quick takeaways below so you can scan fast and dive deeper where it helps.
020
David @dcyoung.dev · 08/12/2025
API token code got you spooked? All that SHA256 hashing and secret key management scattered everywhere? I found a cleaner way using `has_secure_password`, `authenticate_by` and `authenticate_or_request_with_http_token` in Rails. Full writeup: dcyoung.dev/shorts/api-t...
010
David @dcyoung.dev · 16/05/2025
You might get less performance from using `.excluding` than `.where.not` and here's why. dcyoung.dev/shorts/how-e... #RubyOnRails #WebDevelopment
dcyoung.dev
🎓 How .excluding works in Rails
Rails provides a convenient .excluding method for identifying a group of items while omitting another set.
081
David @dcyoung.dev · 07/03/2025
Upped my geek level thanks to @andycroll.bsky.social and rubytshirts.com 🎉🎉
Me wearing a Ruby t-shirt
191
David @dcyoung.dev · 17/02/2025
What's your preference when it comes to data migrations in a Rails app? I've used the data_migrate gem in the past with mixed success - I think it stopped working for me after an upgrade (gem or Rails) Let's discuss the pros and cons. #RubyOnRails github.com/ilyakatz/dat...
github.com
100
David @dcyoung.dev · 21/01/2025
Enjoyed this talk about the Shape of Service Objects. I like the separation of work explained and the visual representation of a Service Object is great 😍 - off to find some code to analyse + refactor 🧐 www.rubyvideo.dev/talks/the-cu... #RubyOnRails
rubyvideo.dev
The Curse of Service Objects
Service Objects were a mistake. It has nothing to do with OOP. It has little to do with ideas of Fowler, Evans and Martin. I analyzed a plenty of open repositories, videos and articles, and in this ta...
000
David @dcyoung.dev · 20/01/2025
Rubocop gem update adds a check to ensure Strong Params expect is being used. @gorails.com have a great video explaining why this an important change gorails.com/episodes/how... #RubyOnRails #webdevelopment
gorails.com
How to use params.expect in Rails 8+ (Example) - GoRails
Rails 8 introduces a new expect method for permitting parameters that fixes a few of the issues with require and permit. Let's take a look!
010
David @dcyoung.dev · 14/01/2025
Rails `class_names` aka `token_list` helper is great for define #CSS classes in view components or partials. Docs: edgeapi.rubyonrails.org/classes/Acti... #RubyOnRails #CodeExample
050
David @dcyoung.dev · 14/01/2025
Not a new #AppIdea for me but, an Instagram like clone for specific events like weddings. Guests share photos and videos to an event's timeline. Could also handle RSVPs. #RubyOnRails #webdevelopment #buildinpublic
040
David @dcyoung.dev · 13/01/2025
Meal Planner app finally got it's meal planning functionality Allows us to add recipes to a day of the week. Already using this to plan this week's meals 😋 #RubyOnRails #webdevelopment #buildinpublic bsky.app/profile/dcyo...
250
David @dcyoung.dev · 26/12/2024
Who is the genius behind the Songs on Rails YT Channel? 😂🤣 #RubyOnRails youtube.com/@songsonrail...
youtube.com
Songs on Rails
020
David @dcyoung.dev · 06/12/2024
Another app idea Food book. A list of food outlets, their opening times and menus. 🧵
210
David @dcyoung.dev · 04/12/2024
Quite a wild year of music for me this year! Top 0.5% of Less Than Jake listeners 🤘🎺 I listened for 27,638 minutes in 2024. What about you? #SpotifyWrapped open.spotify.com/wrapped/shar...
open.spotify.com
My 2024 Wrapped – get yours
2024 Wrapped
010
David @dcyoung.dev · 02/12/2024
Meal Planning app coming along nicely 👌 #RubyOnRails #webdevelopment #buildinpublic
260
David @dcyoung.dev · 01/12/2024
Implemented a <dialog> powered by HOTWire - not quite as smooth as I want it to be but pretty good start 👌 #rubyonrails #hotwire #webdevelopment
040
David @dcyoung.dev · 28/11/2024
Really enjoyed learning about @goodenough.us on the Startup Different podcast this week. The idea of having a "bad ideas" Slack channel is right up my street! 🤩
010
Reposted by David
Jan Dudulski @jan.dudulski.pl · 25/11/2024
Recent @shortruby.com includes a reminder from RubyCademy that you can run bundler in onefile scripts. Let me also remind that you can run tests such way too
1103
David @dcyoung.dev · 24/11/2024
If you're a software builder what projects do you have sitting in your laptop? 🧵
800
David @dcyoung.dev · 23/11/2024
We're in the very early stages of a new #startup idea. An online storefront for your company branded merch, that only your team have access to. Would your startup find this useful? #buildinginpublic
321
David @dcyoung.dev · 22/11/2024
Looking for fellow Rails devs - extra points if they're in the North East of Scotland 🤞🏴󠁧󠁢󠁳󠁣󠁴󠁿
130