
This is the account of the Scottish Ruby User Group which meets monthly in both Edinburgh and Glasgow
Edinburgh & Glasgow
Joined August 2009
- Tweets1.8K
- Following125
- Followers341
- Likes144
Pinned Tweet
Tickets for our first conference are now available! Head on over to haggisruby.co.uk
We've got the lovely @lylo the splendid Emma Barnes, the magnificent @MikeMcQuaid and more speaking at the first Ruby conference in Scotland in 10 years!
Lang may your lums reek
ScotRUG retweeted
With all the 2025 dates confirmed for the Ruby Conferences that were part of the Ruby Triathlon in 2023 and 2024, we're happy to launch a website for the initiative!
Plan ahead and join us for the next edition in 2025! 🚀 (More details coming soon)
rubytriathlon.com
ScotRUG retweeted
Finally happened. Ran out. Need more mentors at firstrubyfriend.org
Struggling in: Australia, Azerbaijan, China, Colombia, France, India, Indonesia, Netherlands, United Kingdom & even the USA.
Share widely.
ScotRUG retweeted
I just released Zeitwerk 2.7.
Now, you can define namespaces with manual constant assignments too (think, Namespace = Struct.new).
To the best of my knowledge, this completes the most important goal of the gem: to fully match Ruby. 🎉
Let me elaborate a bit on why that was not supported before, and how we have been able to remove that long-standing limitation.
First, let's take a step back to understand a tricky aspect of namespaces. Consider this Hotel namespace (in Ruby, both classes and modules can be namespaces):
# hotel.rb
class Hotel
include Pricing
end
# hotel/pricing.rb
module Hotel::Pricing
# Pricing related logic extracted to a mixin.
end
You cannot load any of the two files in regular Ruby, right? To load hotel.rb you need Hotel::Pricing in place, but if you try to load hotel/pricing.rb, you need Hotel!
But that works if the project is managed by Zeitwerk, and it worked with the classic autoloader too.
To support that use case, the :class event of TracePoint was instrumental, and it was the only technique I could think of in 2018.
It worked this way: When TracePoint notifies that Hotel has been created, the loader scans its subdirectories and defines autoloads (issues Module#autoload calls) for child constants, in particular for Hotel::Pricing.
The key observation is that happens precisely before the include line is executed. When the interpreter hits that line, the autoload is in place and autoloading hotel/pricing.rb is possible (because Hotel exists!).
Problem was, the event was not triggered for manual constant assignments (think Hotel = Class.new). So, while that was a corner case, unfortunately we could not achieve full parity with this technique.
The most important and common way to the define namespaces, using the class/module keywords, worked. But argghhhh.
But the suffering is over my friends!
In part motivated by this problem, @_byroot implemented Module#const_added. That callback is invoked in both situations! 🤘
Thanks to Module#const_added, the limitation has been finally removed. Also, Zeitwerk no longer uses TracePoint internally (/cc @yukihiro_matz).
Zeitwerk 2.7 requires Ruby 3.2 or later, and upgrading should be seamless for existing projects.
Don't worry if your app uses an older Ruby. Bundler realizes 2.7's Ruby version constraint is not satisfied, and ignores it in that case. Gemfile.lock will always get a version compatible with your app.
Same for gems that need to support Ruby versions older than 3.2, a version constraint for zeitwerk like ~> 2.6 will do the job. Client code will automatically use a compatible one.
Mission complete! 🎉
ScotRUG retweeted
🌟 Thrilled to announce @RubyEurope : European Ruby Community! 🚀
Our mission:
1️⃣ Revitalize meetups & foster connections
2️⃣ Support education
I'm so excited to embark on this journey with you all!
Plans coming soon - your ideas welcome!
Join us: on rubyeurope.com
ScotRUG retweeted
I made a useful (+ cool?) thing in celebration of our community.
usingrails.com
There will likely be bugs in the data (and the app) but I'd love to hear what you think of it. And if you see errors or your company is missing feel free to submit corrections.
The wonderful @euruko is over for another year. If you missed out, and you're on Europe we've got the excellent @friendlyrb happening this week in Bucharest! And in October, on the other side of the continent a new Conf! Haggis Ruby (haggisruby.com), in Edinburgh.
ScotRUG retweeted
@m_isabegovic and his team truly did an amazing job!
Btw you can still make it to @friendlyrb next week. Would be great to see you there! 🤗
ScotRUG retweeted
Published the slides from my @EuRuKo 2024 talk here:
speakerdeck.com/marcoroth/de…
#euruko #euruko2024
ScotRUG retweeted
Hey Ruby Pals!👋 - anyone I know heading to Haggis Ruby? I’ve got my ticket 🎟️ - haggisruby.co.uk - Edinburgh Oct 24th a new Ruby Conf from @scotrug 🏴
ScotRUG retweeted
This relaxed conversation between these three titans of our industry will close the event, it will last as long as it needs to - we will not interrupt it - and it will be available to all in person attendees, you don't want to miss it!
Special #EuRuKo announcement: @pragdave , @yukihiro_matz and @josevalim will share the stage at #EuRuKo2024 for a fireside chat. This session will close the event and it will be fully owned by Dave, who will tailor the session to his needs and wishes. Don't miss it! #Ruby 🐐
ScotRUG retweeted
If anyone wants to join @friendlyrb, which takes place in Romania just a week after @EuRuKo, you can get a 10% discount.
The code is FRIENDLYEURUKO, and it can be used when purchasing tickets here: tickettailor.com/events/frie…
More info at friendlyrb.com/
@adrianthedev is one of the organizers, I'm sure he can answer questions if you reach out
The friendliest #Ruby conference in Europe 🙌
ScotRUG retweeted
Whoa. Literally sat here speechless and processing this for a while. Explains *so much* about Google.
I'm sure there was a nugget of truth under the original diagnosis, but talk about throwing the glue out with the bureaucracy. Jesus.
Replying to @mipsytipsy
I can’t hear a reference to Schmidt without thinking of this: surfingcomplexity.blog/2021/…
ScotRUG retweeted
I know that @m_isabegovic has put a lot of heart and soul into this year's @euruko. Have a listen. It's going to be a great event for those lucky enough to attend! 😃
🎙️ Go behind the scenes of #EuRuKo2024 in the latest The Ruby on Rails Podcast episode! Get an insider look at what’s happening in the lead-up to the conference in Sarajevo. 🎧
Listen here: therubyonrailspodcast.com/52…
#Ruby #Rails #TechConference #Podcast
ScotRUG retweeted
The first release was actually 24 July 2004, but we can celebrate today because I just pushed the code of the first version of Rails to the GitHub repository.
github.com/rails/rails/tree/…
It was lost when we migrated from SVN to Git, but I did some archeology @schmijos help
ScotRUG retweeted
We have published all the recordings from the first BalticRuby conference. Everyone is welcome to watch them here: balticruby.org/archive/2024/…
#ruby #rails #balticruby
ScotRUG retweeted
If you have a complicated, weird, big rails app or are starting a business and building one and could have use in someone helping lay the right foundation, this is a good chance to have a former rails core dev help with all that!
ScotRUG retweeted
RubyConf 2024 co-chair @KinseyAnnDurham recently joined @Coding_Coders to share insights on the CFP and her work at @github! 🎙️
Tune in for all the details! 🎧
buff.ly/3WvA0QJ
#RubyConf #RubyDev #RubyCommunity
ScotRUG retweeted
Great talk by @nodunayo. 330 million requests per month currently on @thestorygraph. Rails scales!
youtu.be/TWi-cSHNr5s?si=Ivhk…
Meet keynote #speaker @nodunayo, Founder & CEO of The StoryGraph
Her app helps track and choose your reading based on mood, topic and theme. A former software engineer at Pivotal Labs and a Makers Academy alum, she loves dance classes and to read.
More: buff.ly/3W3S0BH






















