Masthash

#ruby

adarsh 🚲
14 hours ago

Friends:

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.

https://forms.gle/bVhnauxZFwm5LiM97

#ruby @euruko@birdsite.slashdev.space @euruko@bird.makeup

Zane
15 hours ago

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

masukomi
16 hours ago

I just wrote this #ruby code:

value.match(/^{{(.*)}}$/)&.[](1)

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.

masukomi
18 hours ago

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
"foo_something_bar".match(/(?:foo_)?(\w+)(?:_bar)/)[1]
or even
m = my_string.match(...)
val=m[1]

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.

#RubyCamping #Ruby #ItsTheLittleWheels

Michael Kohl
20 hours ago

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.

Zane
20 hours ago

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

Puzzle ITC
21 hours ago

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 🚀

https://www.puzzle.ch/de/blog/articles/2023/06/06/tech-kafi-ruby-viewcomponent

Ruby Weekly
22 hours ago

Cookpad to discontinue Ruby interpreter development - let's help Koichi and Mame land a new job or support them via GH sponsors

https://twitter.com/_ko1/status/1665991721472397312

Discussions: https://discu.eu/q/https://twitter.com/_ko1/status/1665991721472397312

#programming #ruby

Mandar Vaze (desipenguin)
1 day ago

@crawshaw I have been writing #ruby for over a year (python for several years before that)
When I go back to #python , I'm gonna have to look stuff up 🤦

Ruby Weekly
1 day ago
RubyConfTH
1 day ago

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

#ruby #rubyconfth

santib
1 day ago

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 💎)

https://www.meetup.com/es-ES/ruby-montevideo/events/293866432/

Ruby Weekly
2 days ago

^^^ 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)

Snyk
2 days ago

📣 New report: In our study with RedHunt Labs, we scanned the top 1000 GitHub organizations for insecure dependencies in their source repositories.

⚠️ Results for the #Java, #JavaScript, #Python & #Ruby repositories are presented separately in the report:

You can download the report here: https://go.snyk.io/scanning-the-top-1000-orgs-on-github.html

Flow chart for scanning the top 1000 GitHub organizations for insecure dependencies in their source repositories.
masukomi
2 days ago

#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:

Mandar Vaze (desipenguin)
2 days ago

Learn the Language before the framework

- #python before #django
- #ruby before #rails

https://microblog.desipenguin.com/post/language-before-framework/

Matthew Ford :bitzesty:
2 days ago

🔍 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/

#opensearch #ruby #rails #search

achris
2 days ago

Any advice for a good documentation or book to study how Ruby on Rails works under the hood and the best way to use it? #ruby #ror #rails

Ruby Frankfurt Meetup
2 days ago

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

https://www.meetup.com/frankfurt-ruby-meetup/events/293020225/

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 victor@tooters.org, or use the hashtag #Tooters.

Welcome to the fediverse! 🤓

Brooke Kuhlmann
2 days ago

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.

A screenshot of the Ruby syntax for my CLI DSL which uses a single block to define all commands and actions for the CLI.
A screenshot of my Tocer gem using the new CLI DSL to produce CLI usage information on the terminal.

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

#ruby #RubyCamping #ItsTheLittleWheels

⚛️Revertron
3 days ago

@ich Okay, #Ruby is the worst.

Kevin Williams
3 days ago

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

Circular sticker design with the phase, "Good People Write Good Ruby" in red.
Circular sticker design with the phase, "Good People Write Good PHP" in purple.
Circular sticker design with the phase, "Good People Write Good TypeScript" in a two tone blue.
Circular sticker design with the phase, "Good People Write Good Python" in blue and yellow.
3 days ago

Here's a blog post benchmarking compilers by “Hello, World!” and Ruby didn't fare well.

https://drewdevault.com/2020/01/04/Slow.html

#MastoDev #FediDev #Programming #Assembly #Zig #C #Rust #Go #Java #Python #Ruby #Permacomputing

3 days ago

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.

#MastoDev #FediDev #Programming #C #Rust #CPP #Java #Lisp #Haskell #Go #JavaScript #Python #Ruby #Permacomputing

The diagram shows relative energy consumption, with values normalized to the most efficient one. So C, as the most energy efficient, has the value 1.
PHP Weekly
3 days ago

Eyeloupe - The elegant Rails debug assistant (inspired by Laravel Telescope)

https://github.com/alxlion/eyeloupe

Discussions: https://discu.eu/q/https://github.com/alxlion/eyeloupe

#laravel #php #programming #rails #ruby #webdev

Daniel Bretschneider
3 days ago

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.

https://t.co/zZ0QhpCnIM

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

Ruby Weekly
3 days ago

rsh - Ruby SHell (a shell written in pure Ruby; one file no dependencies)

https://github.com/isene/rsh

Discussions: https://discu.eu/q/https://github.com/isene/rsh

#linux #programming #ruby #unix

Tim Riley
3 days ago

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!

#ruby #conference #talks

A modification of the title screen of the 1985 computer role playing game Ultima IV, adjusted to say “Tim Riley presents Rubinnia: Quest of the Rubyist”.
Ruby Weekly
4 days ago
masukomi
4 days ago

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

Ruby Weekly
4 days ago

How can I use accepts_nested_attributes_for & fields_for with a public_id/slug instead of the DB PK

https://github.com/rails/rails/pull/48390

Discussions: https://discu.eu/q/https://github.com/rails/rails/pull/48390

#programming #rails #ruby #webdev

Ruby Weekly
4 days ago
Camilo
5 days ago

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.

🔗 https://rubygems.org/gems/standard/versions/1.29.0
#Ruby #Rails #RubyOnRails #StandardRails #RuboCop

Ruby Weekly
5 days ago

📣 This week in Rails is out: HTML5 sanitizer enhancements for Action View, cleaner and more efficient routing with “path_params”, and more!

https://world.hey.com/this.week.in.rails/html5-sanitizer-path_params-and-more-484b0376

Discussions: https://discu.eu/q/https://world.hey.com/this.week.in.rails/html5-sanitizer-path_params-and-more-484b0376

#programming #rails #ruby #webdev

Ruby Weekly
5 days ago
Ruby Weekly
5 days ago

Karafka Framework 2.1 has been released with some cool features: Virtual Offsets, CurrentAttributes, and k8s support

https://mensfeld.pl/2023/06/karafka-framework-2-1-announcement/

Discussions: https://discu.eu/q/https://mensfeld.pl/2023/06/karafka-framework-2-1-announcement/

#devops #kubernetes #programming #ruby

Jeremy
6 days ago

Living in France or Sweden and doing Ruby programming? If you are looking for a new job opportunity we have one opened at Nextory

https://career.nextory.com/jobs/2881351-ruby-on-rails-developer

#job #ruby #france #sweden #remotework

ronin-rb
1 week ago
Simmon Li (he/him)
1 week ago

I am really enjoying leaning into Turbo and Hotwire.

My one blindspot is still how I can trigger or receive/process Turbo stream messages via Stimulus controllers.

Anyone have any resources on this specifically?

#ruby #rails #turbo #hotwire #hotrails

Ryan Baumann
1 week ago

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/

INNOQ
1 week ago

🎧 Sind #Python, #Ruby und Co hinsichtlich ihrer Energieeffizienz noch zeitgemäß? @moonglum und @ci diskutieren dazu im Podcast.

👉 https://www.innoq.com/de/podcast/128-Energiefresser-dynamische-Programmiersprache/

Hanami Mastery
1 week ago

Have you already submitted your questions for @hanami core team for our #050 episode?

https://tally.so/r/nPRokb

This will be our special one, where you can ask anything - I'll address top questions during the call! #ruby #web #hanami #dry #rom-rb

Brooke Kuhlmann
1 week ago

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.

#ruby

Justin Searls
1 week ago

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/

Test Double
1 week ago

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.
https://link.testdouble.com/lets-standardize-rails-once-and-for-all
#Ruby #Rails #StandardRails #RuboCop

RubyConfTH
1 week ago

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

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.

https://gist.github.com/purinkle/0f6fe8d5393c0c64d1fe2e69abe60213

achris
2 weeks ago

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 🥰

#ruby

https://achris.me

masukomi
2 weeks ago

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.

a screenshot of the controller
a screenshot of the debugger stopped at a breakpoint.
a screenshot of the routes.