The nice people at #EuRuKo 2023 in Vilnius, Lithuania are looking for a conference committee, ideally in European time zones.
Interest form link here, please share if the spirit moves you.
If and when software developers are replaced in a few years by AI, what will YOU as a software developer do to survive if retirement isn't an option? #Tech #Technews #Ruby #Mastodon #softwareengineering
I just wrote this #ruby code:
I can't decide if I should feel dirty or proud. I'm leaning towards the belief that these are the consequences of some bad past decision and that I should probably repent. I'm not sure which god is appropriate for prayers of absolution in this case.
Today, after 18 years of using #Ruby
I learned you can stick a regexp & a match group number in an ... array form? and attach them to a string as a way of extracting text from it.
"foo_something_bar"[/(?:foo_)?(\w+)(?:_bar)/, 1] # => "something"
I _understand_ what's happening, i have NO idea how WHY this exists. freaking weird, and overly obscure if you ask me.
I much prefer
m = my_string.match(...)
Because Ruby allows the reopening of classes and modules, redefinition or modification of existing objects is really easy.
By embracing Reopening, and eagerly loading in a predictable way, we can make composable modifications from the filesystem, by placing our reopening files in the right place.
This the design decision that's been driving the work on Camping's new Reloader.
One of the hardest parts of being a #Ruby conference co-organizer and responsible for the speaker lineup: You get MANY more submissions than you have slots available and if you've been in the community for a while (almost 20 years for me) you know a lot of the people you have to reject personally.
Writing a #Lambda in #Ruby today. In my eight year career I've probably only ever written a handful of these! I suppose its because there's a lot of use cases when it makes sense to just use a method. #programming #webdev
Rails development || Ruby dev / Linux ops / CTO life
#owncast #streaming #linux #ruby #sysadmin #systemadministration #unix #devops #development #livecoding #codestreamhttps://live.opsitive.com
Suchst Du frische Impulse für deine #Ruby Projekte? ☕ Unser #Tech Kafi am 12. Juni ist die Lösung! Lerne, mit Rails #ViewComponent deinen Code besser zu strukturieren 🛠️. Triff Gleichgesinnte in Bern 🏢 oder online 💻. #Community 🚀
Cookpad to discontinue Ruby interpreter development - let's help Koichi and Mame land a new job or support them via GH sponsors
Remote Ruby - The GoRails Gang Takes Over
Reality Pro: Immerse yourself for 2 hours: $3499
RubyConfTH: Immerse yourself for 2 days: $92
Buy your tickets now at https://www.eventpop.me/e/15095/rubyconfth-2023
This Thursday we've got another awesome #Ruby Montevideo Meetup 🇺🇾, this time hosted by @RootstrapInc 🌟
We've got two fantastic speakers: Anto and Martin, and of course there will be 🍕&🍻
Super happy with the attendance! (~60 Rubyists 💎)
TIL: Deploying a Sinatra app to Render.com
Are you absolutely sure your `has_one` association really has one association?
^^^ Some of the Ruby string quoting syntax is pretty awful, but the %() variant is a quite nice way of embedding s-expressions directly in #Ruby code as per the above
(I'm sure there are ways to golf that sexp parser down quite a lot further; using 3.x+ single line methods would be a start)
📣 New report: In our study with RedHunt Labs, we scanned the top 1000 GitHub organizations for insecure dependencies in their source repositories.
You can download the report here: https://go.snyk.io/scanning-the-top-1000-orgs-on-github.html
Mastering Time Complexity in Ruby: A Comprehensive Guide with Code Examples and Tests
#Ruby geeks As i sat down to work this morning, preparing to give my daily standup, i switch #devgood to look at "Work" content and 💥
after much investigation i discovered that re-using a Pygments renderer in Redcarpet is dangerous and will eventually cause something in the underlying c libraries to go 💥 and take down your app. You can not catch this exception.
the 💥 does NOT seem to be related to the content of the thing you're rendering.
Solved with doing this _every_ time:
Learn the Language before the framework
- #python before #django
- #ruby before #rails
🔍 Improving the Search Experience with OpenSearch (ElasticSearch)
We recently helped the Trussell Trust transition from MySQL to OpenSearch, an open-source, scalable, and flexible alternative to ElasticSearch.
🚀 The result? A 5 to 10 times increase in search performance, reduced load on the application and database, and a smoother user experience.
🔗 Full story: https://bitzesty.com/2023/03/05/improving-the-search-experience-with-opensearch-elasticsearch/
So excited about this week's #Ruby #Meetup Frankfurt!
As a little treat: this is the view from the location, where we can have some gathering afterward 😎
Sign up and join us on Wednesday, 07.06.2023 at 6:30 pm @ portagon
Hello S.L. @serif 👋🏻 my name is Victor and I am the administrator here at Tooters.
I would recommend searching some hashtags relevant to your interests (I see you’re already doing so with #Ruby 😉), and following some of the people you find to help populate your timeline.
If you have any questions, or run into any issues I would be more than glad to help you. You can either @ mention me, send an email to firstname.lastname@example.org, or use the hashtag #Tooters.
Welcome to the fediverse! 🤓
Getting close with wrapping up my #ruby CLI DSL and liking how simple the syntax is while still allowing for composable and reusable commands and actions.
Hello Ruby Friends.
I've rewritten the Loader/Reloader to work as you would expect it to. It also now uses Zeitwerk to add autoloading.
I'm looking for opinions on a couple of ideas for Camping regarding initializers and pre/post loading scripts.
Github discussion is here: https://github.com/camping/camping/issues/146#issuecomment-1571701892
Created the next design for my "Good People Write Good Code" sticker series. Here are the Ruby, Python, PHP and TypeScript flavors.
Available as stickers and assorted merch on my @kartedrop Redbubble shop - https://kartedrop.redbubble.com
#stickers #design #ruby #python #php #TypeScript #programming #coding #developer
Upgrading from Selenium to Cuprite
Here's a blog post benchmarking compilers by “Hello, World!” and Ruby didn't fare well.
#MastoDev #FediDev #Programming #Assembly #Zig #C #Rust #Go #Java #Python #Ruby #Permacomputing
The decision to use Ruby for Mastodon was a poor choice, to put it mildly.
The diagram below shows relative energy consumption, with values normalized to the most efficient one. So C, as the most energy efficient, has the value 1.
Eyeloupe - The elegant Rails debug assistant (inspired by Laravel Telescope)
If you're responsible for one or many websites, it's sometimes recommended to do some security testing. A perfect tool especially for #wordpress sites is #wpscan. It's a free, for non-commercial use, #security/#vulnerability scanner written in #ruby.
no sé si realmente las aplicaciones #ruby / #rails son demasiado complicadas de configurar, o yo nomás no les termino de agarrar la onda.
Hoy es #consulDemocracy. A veces quisiera que _cada_ proyecto no asumiera una configuración super específica de todo, y que ofrecieran las partes con defaults sensibles y con la menos instrumentación posible, para que uno pueda construir desde ahí.
Ahh pero no, seguro tu también usas su sistema de despliegue y configuraciones super específicas
rsh - Ruby SHell (a shell written in pure Ruby; one file no dependencies)
In probably the most *extra* conference talk I’ve given (so far!), I looked back on my life as a Rubyist _and_ introduced the dry-rb/Hanami ecosystem while fully inhabiting the high fantasy world of Ultima IV. Together, we played and won “Rubinnia: Quest of the Rubyist!”
It was the opening keynote for the first @rubyconfth, and I think it turned out great. This was right before COVID upended everything. It feels like such a shame I haven’t been able to do it again!
A Friday email incident
New gem to construct row value queries in Rails
#ruby geeks. Need your 🧠 for a sec joining modern ruby:
with pry i could use ~/.pryrc to have custom functions autoloaded.
I can't find the "debug" (rdbg) equivalent. When i put ruby code in ~/.rdgbrc or ~/.rdgbrc.rb it complains with
"unexpected end-of-input, expecting `then' or ';' or '\n'"
which makes me think it's expecting bash syntax which is... WTF?! Also, i can find NO documentation on what anyone is expecting to be in this file or how we're expecting to do the ~/.pryrc equivalent.
How can I use accepts_nested_attributes_for & fields_for with a public_id/slug instead of the DB PK
Recommended way to implement Puma plugin configuration
TIL: Turbo Stream broadcasting needs default_url_options to be set
All right, StandardRb v1.29.0 is up and out!
A whole host of rules enabled to simplify your life and reduce code redundancy, like array constructors with arrays in them! regex constructors with regex in them! kablow! gone!
Standard-performance is now up to date with rubocop-performance as well, so enjoy those bugfixes.
#Ruby #Rails #RubyOnRails #StandardRails #RuboCop
📣 This week in Rails is out: HTML5 sanitizer enhancements for Action View, cleaner and more efficient routing with “path_params”, and more!
Swift for Ruby developers crash course
Você sabia que o Catarse foi feito com Ruby on Rails?
A timezone bugfix that took us through API and OOP design discussions
Karafka Framework 2.1 has been released with some cool features: Virtual Offsets, CurrentAttributes, and k8s support
📕 From Ruby to Elixir: Unleash the Full Potential of Functional Programming
#MyElixirStatus #Elixir #Ruby
Generating Secure Tokens on Your ActiveRecord Models
Living in France or Sweden and doing Ruby programming? If you are looking for a new job opportunity we have one opened at Nextory
Ever wondered how to port an existing Metasploit exploit to ronin-exploits? Well, we now have a guide for that!
#ronin #metasploit #exploits #exploitdev #ruby
GitHub Pages is still officially on an EOL #Ruby, in case you feel bad about not having gotten all your projects up to 3.x yet https://pages.github.com/versions/
🎧 Sind #Python, #Ruby und Co hinsichtlich ihrer Energieeffizienz noch zeitgemäß? @moonglum und @ci diskutieren dazu im Podcast.
I've released Hanamismith 0.12.0 (https://alchemists.io/projects/hanamismith) which picks up the latest changes to the #hanami view layer so it's easier for you to get started building your own view layer. Enjoy!
💡For more on Hanami Views, make sure to check out Episode 46 (https://hanamimastery.com/episodes/46-contact-form) by @hanamimastery for a closer look.
The video of my most recent #RailsConf presentation is now live!
It was definitely one of the most creative and unusual sessions we've done before. Has given me some ideas of new ways to engage an in-person audience while still conveying meaningful messages #ruby #rails https://blog.testdouble.com/talks/2023-05-30-lets-standardize-rails/
At RailsConf 2023, we conducted an experiment: could attendees do the hard work for us by voting on RuboCop rules so we could publish the Standard Rails plugin? Find out how we crowdsourced the toughest debates once and for all, saving your (and every other) team the time of having to do it all over again.
#Ruby #Rails #StandardRails #RuboCop
Short Ruby News - edition 44 covering week 21 of 2023
We're excited to announce our 4th keynote speaker! Ben Halpern is the creator of DEV @thepracticaldev and founder of Forem. Join him and 17 other amazing speakers in Bangkok this October. Tickets on sale now at https://rubyconfth.com/ #ruby #rubyconfth
Efficient JSON Serialization with Blueprinter for Ruby on Rails
At what point do you reach for keyword arguments in #Ruby? I have a little toy I am playing with that uses some more modern concepts. I am tempted to go for them whenever I have two or more arguments. What do you think? I created a gist to show what I mean.
Anyone read Agile Web Development with Rails?
Learn Hotwire by building the simplest possible Hotwire and Ruby on Rails app
it took me 10 days to migrate my 3 years-old website from NextJS to @bridgetown. it was a enjoyable journey and Bridgetown is a pleasure to work with!
I'm really happy with the result 🥰
A #ruby on #Rails mystery in 3 images. Solution in 🧵
controller has 2 actions, which i've called `first_action` and `second_action` just to distinguish them.
Rails will ALWAYS send you to `first_action` even when the route, and the `action_name` are `second_action`.
images: controller, debugger at breakpoint, routes
I stared at this for SO long before i figured it out while rubber-ducking it.