David's Avatar

David

@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

87 Followers  |  370 Following  |  48 Posts  |  Joined: 18.11.2024  |  2.1355

Latest posts by dcyoung.dev on Bluesky

dcyoung.dev/feed.xml

16.05.2025 11:08 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
๐ŸŽ“ How .excluding works in Rails Rails provides a convenient .excluding method for identifying a group of items while omitting another set.

You might get less performance from using `.excluding` than `.where.not` and here's why.

dcyoung.dev/shorts/how-e...

#RubyOnRails #WebDevelopment

16.05.2025 11:05 โ€” ๐Ÿ‘ 6    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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 ๐Ÿคฉ

07.03.2025 11:58 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Me wearing a Ruby t-shirt

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    ๐Ÿ“Œ 0

Example: 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    ๐Ÿ“Œ 0

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

17.02.2025 15:50 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I feel your pain, an asdf upgrade tried to take me down today!

11.02.2025 22:29 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I've had some good success with CUBE methodology.
piccalil.li/blog/cube-css/

11.02.2025 10:27 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
๐ŸŽ“ New Rails application with asdf I use asdf to manage my runtime versions (Ruby and Node). This makes life a lot easier when switching between multiple codebases and allows me to easily to switch machines due to the presence of a .to...

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    ๐Ÿ“Œ 0
Preview
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...

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

21.01.2025 12:59 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
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!

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

20.01.2025 11:12 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

15.01.2025 12:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

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

14.01.2025 10:44 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

14.01.2025 07:47 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

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

13.01.2025 15:17 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

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

09.01.2025 06:47 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Galileo AIGalileo Icon

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.

08.01.2025 14:21 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

08.01.2025 14:19 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0
Preview
Songs on Rails

Who is the genius behind the Songs on Rails YT Channel? ๐Ÿ˜‚๐Ÿคฃ
#RubyOnRails
youtube.com/@songsonrail...

26.12.2024 23:32 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Combined Mentions with ActionText (Part 2) We're back for part two of the Combined Mentions series. If you missed it, in Part One we setup our application and installed a basic implementation of Trib...

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 ๐Ÿ‘Œ

10.12.2024 09:15 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I've predicted that it'll also snow in May next year ๐Ÿคฆ

09.12.2024 13:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Most 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    ๐Ÿ“Œ 0

Cafes, 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    ๐Ÿ“Œ 0

Another app idea Food book.
A list of food outlets, their opening times and menus. ๐Ÿงต

06.12.2024 19:44 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Preview
My 2024 Wrapped โ€“ get yours 2024 Wrapped

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

04.12.2024 20:35 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

That's the dream ๐Ÿ˜ baby steps ๐Ÿ‘Œ

02.12.2024 13:16 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

Meal Planning app coming along nicely ๐Ÿ‘Œ
#RubyOnRails #webdevelopment
#buildinpublic

02.12.2024 09:08 โ€” ๐Ÿ‘ 7    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1

@dcyoung.dev is following 20 prominent accounts