Ruby

vyr,
@vyr@princess.industries avatar

the logo looks like a tentacle to everyone, right? not just me?

jonny,
@jonny@neuromatch.social avatar

@vyr
Ya I thought thats just what it was? Rails dont have little sucker cups

alda,
@alda@topspicy.social avatar

@vyr I've always assumed it to be a ballistic rocket trajectory.

djbender,
@djbender@ruby.social avatar

I've been job hunting full time for 2 weeks now. It's exhausting! If you know of any place looking for a Senior/Staff Software Engineer, I have 15 years experience working with Ruby, Rails, and Javascript. More recently the Node.js stuff has been in React. I'm also interested in Rust, Go, and Elixir. Any leads are appreciated!! #ruby #rails #rubyonrails #RubyHire #fedihire #getfedihired

erlend,
@erlend@writing.exchange avatar

Any dev out there willing to do a simple plugin for ?

A handful of indie devs are pitching in with working examples of FedCM, an important new identity standard with direct implications for the : https://wrily.foad.me.uk/sign-in-with-big-tech-only-or-sign-in-with-whom-i-prefer

The developer of LastLogin.io has implemented FedCM on his end, but he needs the help of a Discourse plugin developer to test the complete login pipeline with his own community forum.

cc @Discourse

goto,

@thisismissem @angusmcleod neat! anything i can do to help?

thisismissem,
@thisismissem@hachyderm.io avatar

@goto @angusmcleod not right now 🙂

hsbt,
@hsbt@ruby.social avatar

Unfortunately, #ruby is dead again this year.

image/png
image/png
image/png

kalleboo,
@kalleboo@bitbang.social avatar

@hsbt @andi First, #PHP has to die

ntha,
@ntha@mastodon.social avatar

@kalleboo @hsbt @andi is also as dead as can be

image/png
image/png
image/png

esparta,
@esparta@ruby.social avatar

A little late but we are in the May 2024 SF Bay Area Ruby Meetup @ #NewRelic

The room is packed!!

First Kayla Reopelle with #OpenTelemetry and #Ruby, a great intro!!

camertron,
@camertron@ruby.social avatar

@esparta 👋

amirrajan,
@amirrajan@ruby.social avatar

Dream big, start small, KIFASS. Grab your free license of DragonRuby Game Toolkit and ship a game dammit. https://itch.io/s/123455/dream-big-start-small-kifass

#ruby #gamedev

tosbourn,
@tosbourn@masto.ai avatar

If I had a two pence piece for every time @andycroll's One Ruby Thing acted as my second brain, I'd be able to spend all day in a Brighton arcade on the 2p machines.

https://andycroll.com/ruby/

stevehill,

@tosbourn @andycroll There are 2p machines in Brighton?

tosbourn,
@tosbourn@masto.ai avatar

@stevehill @andycroll unless inflation has got to them I thought they were a staple of all UK beach arcades!

adarsh,
@adarsh@ruby.social avatar

Hello #SFBA #Ruby Fam:

The next #meetup is this Thursday at New Relic. I will be away at #RubyKaigi but I'm so thrilled to see the new organizers making this happen monthly! We already have host companies offering space for the future events.

https://www.meetup.com/sfruby/events/300869288/

wood,
@wood@hachyderm.io avatar

This year, @rubycentral announced that 2025 will be the last @railsconf. While I’m sad to lose a favorite Ruby conference, it’s for the best. The Ruby Central team will be able to focus on their core mission: supporting the Ruby language.

https://rubycentral.org/news/anewearforrubycentralevents/

Schneems,
@Schneems@ruby.social avatar

Ever find a tutorial that was broken is some subtle but deeply fundamental way?

Ever WRITE a tutorial that was broken in some subtle but deeply fundmental way?

I just released RunDOC 2.0. A tool for writing tutorials that run and embed the results into a markdown document. Check it out https://github.com/zombocom/rundoc

#ruby

Schneems,
@Schneems@ruby.social avatar

Want an example? I used rundoc for this CNB tutorial https://www.schneems.com/2024/05/01/build-a-ruby-on-rails-application-image-in-5-minutes-no-dockerfile-required/

All of the output in the tutorial is REAL output.

mackuba,
@mackuba@martianbase.net avatar

Current status: I opened about 100 links to articles and threads from Google results comparing #ruby, #golang and #rustlang and I'm planning to read them 🫠

(no, I'm not really considering Go, mostly just trying to convince myself that I'm not making a mistake starting to learn Rust and not Go 🦀😛)

mackuba,
@mackuba@martianbase.net avatar

@alexanderadam @CrystalLanguage Yeah, I've mostly ruled out Go from the beginning, I was just checking it out out of curiosity because the folks at Bluesky are using it for some more performance-critical server stuff (vs. Node/TypeScript that other stuff is written in).

(But I've just seen someone from the team post yesterday that it was using a lot of memory and spending most of the time on GC…)

mackuba,
@mackuba@martianbase.net avatar

@alexanderadam @CrystalLanguage I guess… I was already thinking about building a couple of pieces independently in Ruby and Rust and compare the performance on something larger than one function… I suppose I could try to throw in Crystal to the mix too 😅

denis,
@denis@ruby.social avatar
ctietze,
@ctietze@mastodon.social avatar

@denis Dear heavens.

Congrats!

I've been using this for 12 years on my website:

gd,
@gd@ruby.social avatar

It's so annoying to see developers calling failing tests "flaky".

Last week I found a factory that assigned a random age to a user instance, so no wonder a test that used the age in some bit of logic failed sometimes. That's not a "flaky test", that's a bug in the factory.

Today I saw a date parser bug be called a "flaky test". It was written on the 21st of April and worked fine until it began to fail today, the 1st of May.

zenspider,
@zenspider@ruby.social avatar

@penryu @gd hides briefly is generally great. Hides 99% of the time is a real pain.

penryu,
@penryu@hachyderm.io avatar

@zenspider @gd inability to repro definitely adds a dimension of difficulty. In some ways I found "briefly hidden" flaky test bugs more frustrating because they were fairly easy to reproduce, but led people to just rerun the tests a few times until they pass, rather than fix the underlying bugs.

monospace,
@monospace@floss.social avatar

"Tests provide the only reliable documentation of design. The story they tell remains true long after paper documents become obsolete and human memory fails. Write your tests as if you expect your future self to have amnesia. Remember that you will forget; write tests that remind you of the story once you have." (Sandi Metz, "Practical Object-Oriented Design")

monospace,
@monospace@floss.social avatar

@underlap Good point! A valuable practice I’d recommend for this purpose are Architectural Design Records (ADR): https://adr.github.io/

underlap,
@underlap@fosstodon.org avatar

@monospace Yeah, writing down the rationale for significant design decisions is a good idea.

IllestPreacha,
@IllestPreacha@post.lurk.org avatar

Poetic Carousel 2

#NaPoWriMo #NaPoGenMo #Ruby #Python

Blogpost and other poem: https://blog.illestpreacha.com/napowrimo24-poetic-matrices2

Poem 2

Poetic Stanza 1 :
[['b' 'a' 'u' 'm']
['d' 'g' 'f' 'q']
['o' 'i' 'k' 'h']
['j' 'n' 'y' 'p']]

Poetic Stanza 2:
[['b' 'd' 'o' 'j']
['a' 'g' 'i' 'n']
['u' 'f' 'k' 'y']
['m' 'q' 'h' 'p']]

Behold ancient utilities Manufactured
Deliberately guided for quenched
On Icy Kingdom Hills
Joining numerous yards, Present

Brining dubious ointments jarred
And grains inside Nil
Uniquely fractured, Keeping youth
Mindlessly quiet, hiding proof

#creativecoding #poetry #poem #ciphers #transposition #micropoem

juuh42dias,
@juuh42dias@mastodon.social avatar

5 Meetup GURU-GO/Ruby Meetup Goiás

https://t.me/guru_go

image/jpeg

juuh42dias,
@juuh42dias@mastodon.social avatar
tranxuanthang,
@tranxuanthang@fosstodon.org avatar

Hey and Mastodon!

I'm Thang and I'm a 26-year-old software engineer from Vietnam.

👍 What I'm good at: ,
📝 What I'm learning: , ,
🔜 What I'm planning to learn in the near future: Qt6 with C++ or Python (to overcome my Electron addiction)

I'm the author of LRCGET (https://github.com/tranxuanthang/lrcget), a small tool that helps finding synchronized lyrics, written in Rust and .

Thank you all for reading!

mike,
@mike@fosstodon.org avatar

@tranxuanthang Welcome aboard!

riffraff,
@riffraff@mastodon.social avatar

just watched @tenderlove's stream with Maxime on adding an optimization to for Array#pack and it's pretty cool, if you have ~1 hour it's a good way to spend it.

https://www.youtube.com/watch?v=YRSA36-LuZw

mackuba,
@mackuba@martianbase.net avatar

Hmm… ok, so this looks promising. The middle is Rake task loading records and passing them to regexps, the bottom one is a Rust program loading from SQLite itself.

I don't want to duplicate all the feed/model logic in 🦀, but maybe I can hire it to do some more of the work somehow? 🤔

mackuba,
@mackuba@martianbase.net avatar

BTW, I gotta say, the compiler is really good - it nicely guides me and tells me what I need to add to make it build successfully, even if I have no idea how to code in this language 😃🦀🦀🦀

mackuba,
@mackuba@martianbase.net avatar

Okaaaay… this might actually work!

The plan is: make Rust load posts from SQLite as "dumb" arrays, get the post text, pass it through some initial pre-check regexps, and return the list of record IDs to Ruby. Then Ruby gets this (relatively tiny) list, loads ActiveRecord models by ID and runs the full check on them. 😼

mackuba, (edited )
@mackuba@martianbase.net avatar

Oh man… I've been building several different versions of integration between and or JS whole evening… and I feel like this 😵‍💫 and ihavenoideawhatimdoing.jpg 🐶

But it's starting to work and it looks like it should be pretty fast ⚡

mackuba,
@mackuba@martianbase.net avatar

@straightshoota @alexanderadam Interesting, so I changed the regexps from /.../ to Regex.new("..."), without passing any UTF options, and that apparently already makes them as fast as before 1.8 - I was assuming that /.../ and Regex.new("...") are equivalent, are they not?

(and it I pass NO_UTF_CHECK, then they are even faster than pre-1.8)

mackuba,
@mackuba@martianbase.net avatar

@straightshoota @alexanderadam Oops, nevermind, I messed up the escapes (haven't converted \b to \b inside the strings)… Yeah, so now it works the same as the literal, and if I pass NO_UTF_CHECK then it works about the same as pre-1.8, so I guess that's what this is about.

cdarwin,
@cdarwin@c.im avatar

Georgia lawmaker runs secret election-conspiracy Telegram channel

A Fulton county commissioner in Georgia has been
operating a private Telegram channel for years,
propagating debunked claims about the 2020 election,
and spreading accusations of crimes by county employees,
including , an election worker defamed by Rudy Giuliani in the wake of Donald Trump’s 2020 loss.

, a Republican representing the relatively conservative cities of Fulton county north of Atlanta,
indirectly identifies herself as the creator and administrator of the Fulton County Elections channel on Telegram,
a mobile messaging platform,
in multiple posts to its page.

The channel uses the official logo of the Fulton county board of registration and elections.

The channel, created in May 2021, had 133 subscribers as of Tuesday night.

In a post from 14 February, the administrator of the page accused
Ruby Freeman,
a former Fulton county elections worker,
of misconduct,
despite a Georgia elections board finding that all of the conspiracy theories about her were “false and unsubstantiated”.
“We clearly see her double scanning ballots,” the channel administrator wrote about Freeman, a regular target of attention on the Telegram page.
“We see her incriminating Facebook posts. Yet, she is made to be a victim and given hero awards.”
https://www.theguardian.com/us-news/2024/apr/18/fulton-county-telegram-election-conspiracy-bridget-thorne?CMP=Share_iOSApp_Other

flavorjones,
@flavorjones@ruby.social avatar

I really loved this post by Kevin Newton and the Shopify team about the new Ruby parser, Prism:

https://railsatscale.com/2024-04-16-prism-in-2024/

So much Ruby history!

mackuba,
@mackuba@martianbase.net avatar

I've been playing with benchmarking some regexp matching code in several languages last week (I want to replace that part of code with something faster - I was thinking of Crystal or Swift). ChatGPT helped me write some versions :)

The results were… unexpected. & Crystal didn't do well, but JS & PHP did 🤔

mackuba,
@mackuba@martianbase.net avatar

Finally, I also had an idea to try (which I don't know at all), and together with GPT we've managed to write something working. Rust turned out to be the fastest (but only in release mode, debug is very slow).

Interesting that the new native regexp seems… super slow? I've only run it at 100 iterations instead of 10k, and it took a few seconds… 🤔

Here are all versions: https://github.com/mackuba/regexp-benchmark

samwich,

@mackuba If I'm reading the Instruments output correctly, it looks like the unicode-aware word boundaries ("\b") are very expensive for Swift's Regex.

dansup,
@dansup@mastodon.social avatar

Imagine getting paid to work on @Mastodon full time!

They are looking for devs!

Apply: https://jobs.ashbyhq.com/mastodon/de1e4d8a-5639-4b6a-86d7-97bd9c768b02

acute_distress,

@fredbrooker @dansup @Mastodon port it to php if you don’t like Ruby

acute_distress,

@fredbrooker @dansup @grishka things have moved on since 1998. Come join us

budu,
@budu@ruby.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • ruby
  • kavyap
  • ngwrru68w68
  • tacticalgear
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • khanakhh
  • everett
  • slotface
  • Durango
  • rosin
  • osvaldo12
  • megavids
  • normalnudes
  • cubers
  • GTA5RPClips
  • InstantRegret
  • cisconetworking
  • anitta
  • ethstaker
  • Leos
  • modclub
  • tester
  • provamag3
  • JUstTest
  • lostlight
  • All magazines