@dcyoung.dev.bsky.social
๐ 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
You might get less performance from using `.excluding` than `.where.not` and here's why.
dcyoung.dev/shorts/how-e...
#RubyOnRails #WebDevelopment
Yeah it's really nice. Will see how the print holds up after a few washes but didn't crack when gently stretched ๐
Looking forward to more designs ๐คฉ
Me wearing a Ruby t-shirt
Upped my geek level thanks to @andycroll.bsky.social and rubytshirts.com ๐๐
07.03.2025 10:44 โ ๐ 9 ๐ 1 ๐ฌ 1 ๐ 0Example: You add a new column to your database and you want to fill it with some computed value. You calculate a score for each post based on interactions. You have a service `PostScorer.score_post(post)` that returns a number that you want to store in your new `posts.score` column.
17.02.2025 15:53 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0What'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...
I feel your pain, an asdf upgrade tried to take me down today!
11.02.2025 22:29 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0I've had some good success with CUBE methodology.
piccalil.li/blog/cube-css/
Haven't quite got to what I update in Kamal but this is my WIP dcyoung.dev/shorts/new-r...
23.01.2025 09:38 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Enjoyed 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
This a web app, viewed on my phone through the browser ๐
I haven't consider any sort of mobile app, would probably go PWA to start with.
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
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
We've been using the recipe and shopping list feature for a few months now ๐only introduced the planner over the weekend so we'll see how it goes ๐
13.01.2025 21:56 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Meal 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...
I'm sure there's a "better" way, but if we've gotten this far with Homebrew I'm sure we can keep going ๐
09.01.2025 06:51 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0All my projects run on the same postgres version so Homebrew does the trick.
If I have a project on an older version, I'll upgrade - even if that's just making it run locally.
That being said none of my projects do anything "fancy" at the database level.
You could get a jumpstart by using some AI tools like www.usegalileo.ai
Has worked well enough to kick off some of my projects - doesn't replace a real human designer though.
Now I want to collate my thoughts, check my commits and write up what worked for me.
I'm running a few apps on a single Hetzner box, recently using SQLite, but I do have a couple of postgres apps too.
I've been doing this a lot recently, mainly to get better at Kamal and Docker things. Got my latest app deployed very quickly with only a handful of hiccups ๐
07.01.2025 21:12 โ ๐ 2 ๐ 0 ๐ฌ 1 ๐ 0Who is the genius behind the Songs on Rails YT Channel? ๐๐คฃ
#RubyOnRails
youtube.com/@songsonrail...
Hey, I ended up backing out of Richer Text, the embeds were a bit too much for my use-case.
I did come across a couple of minor issues, would be happy to chat or raise them on GitHub, whichever you prefer.
I did find your blog post afomera.dev/posts/2022-1... this is what I needed thank you ๐
I've predicted that it'll also snow in May next year ๐คฆ
09.12.2024 13:56 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Most of these places use Facebook to keep their customers up to date, however the feedback is rubbish and it tends to show up days later than needed.
06.12.2024 19:47 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Cafes, restaurants and takeaways in my area often have inconsistent opening times, and sometimes different locations (food vans)
06.12.2024 19:46 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Another app idea Food book.
A list of food outlets, their opening times and menus. ๐งต
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...
That's the dream ๐ baby steps ๐
02.12.2024 13:16 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Meal Planning app coming along nicely ๐
#RubyOnRails #webdevelopment
#buildinpublic