Pinned
David
David
@dcyoung.dev
π Web/Software/Ruby on Rails Developer | π₯ Turning whisky into code in the scenic North East of Scotland π΄σ §σ ’σ ³σ £σ ΄σ Ώ | Collector of domain names https://dcyoung.dev https://braw.software
96 followers374 following53 posts
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...
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
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
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...
You might get less performance from using `.excluding` than `.where.not` and here's why. dcyoung.dev/shorts/how-e... #RubyOnRails #WebDevelopment
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...
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
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
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
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...
Meal Planning app coming along nicely π #RubyOnRails #webdevelopment #buildinpublic
Who is the genius behind the Songs on Rails YT Channel? ππ€£ #RubyOnRails youtube.com/@songsonrail...
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...
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! π€©
David reposted
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
mfc_podcast--web - a static version of mfcpodcast.co.uk as we move this off of WordPress
mains_of_glassaugh - codebase for mainsofglassaugh.farm. Farm shop website for our nearby friends
bookmarker - Bookmarking app with AI generated summaries, used to power dcyoung.dev/bookmarks
You are up to date.