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

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...

💡 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. ...

dcyoung.dev

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...

Bild

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

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...

rubyvideo.dev

Looking for fellow Rails devs - extra points if they're in the North East of Scotland 🤞🏴󠁧󠁢󠁳󠁣󠁴󠁿