Show newer
Esparta :ruby: boosted

JShelter 0.10 was released today! Several new protections and bug fixes can be found in this release that will help protect your privacy while browsing. u.fsf.org/3lb #JShelter #SoftwareFreedom #FreeJS

Salubrious Ruby: Don’t mutate what you don’t own, by Tim Riley

> When we’re writing a method in Ruby and receiving objects as arguments, a helpful principle to follow is “don’t mutate what you don’t own.”

timriley.info/writing/2022/04/

----

Tim is 100% correct - IMHO

Esparta :ruby: boosted

To help some of the newcomers make connections: name 5-7 things that interest you but aren't in your profile, as tags so they are searchable. Then boost this post or repeat its instructions so others know to do the same.

#Cooking
#Baking
#Gaming
#Books
#Fermenting
#Parenting
#Biking

Una de las ventajas de los modos de publicación es que tus toots pueden ser enviados con varios tipos de alcance:

- public: default y bastante obvio
- unlisted
- followers-only
- direct

Por ejemplo este toot no va a ser visto en el timeline público, pero como te menciono tu puedes ser notificado y todos los demás no tienen que _joderse_, @porras

You probably didn't notice but one of the cornerstones of the ruby development has been changing for good: mail gem
rubygems.org/gems/mail

A few days ago this PR by Deivid Rodriguez was accepted by the maintainers and it's all good news 🎉
github.com/mikel/mail/pull/147

Basically the mail gem moved their minimal ruby version to 2.5 from a very old ruby 1.8.

I get the idea of supporting more systems, but supporting a 20 year-old ruby version has been dragging the project for a while - IMO.

Welcome to the new & returning ruby.social users. Hope we can engage better this time.

Please try to follow up other peers, create your and pin your toot.

Remember this is not a "new twitter" the idea is kind of different. You can check @feditips to get more insights about how the federation works and how to have a better integrated environments.

P.S. there's no edit feature, but you can delete & redraft as I did with this toot.

Esparta :ruby: boosted

New people, welcome to Mastodon and the Fediverse!

Here's how to get started:

1. Find some people to follow over on @FediFollows, and through Trunk (communitywiki.org/trunk)

2. Find out your Mastodon/Fediverse address so you can share it with friends (mstdn.social/@feditips/1072482)

3. Invite people to join you on here by telling them to go to joinmastodon.org and click on "Get Started". It doesn't matter if they join a different server because the servers talk to each other (here's a bit more of an explanation mstdn.social/@feditips/1070214)

4. Find out what the Fediverse is (mstdn.social/@feditips/1070440)

5. Find out why Mastodon being on so many different servers/instances is a really good thing (mstdn.social/@feditips/1070837)

6. If you see anything nasty, you can report it to your friendly server admin (mstdn.social/@feditips/1065401)

7. You can (sort of) verify your account if you own a website (mstdn.social/@feditips/1062741)

If you have any questions, @ me or DM me!

#MastoTips #FediTips #Mastodon

Well, Vagrant is broken using ruby 3.1. Sadly the fix I proposed didn't make the cut:

ruby.social/@esparta/107440750

Now ruby core maintainers have to backport it:

bugs.ruby-lang.org/issues/1857

nobody said support & maintain an open source programming language would be easy.

Ruby on Rails has released v. 7.0!!

This time I had the honor & privilege to contribute with 8 commits.

I'm so grateful for maintainers and contributors who

rubyonrails.org/2021/12/15/Rai

There's an interesting bug happening on Ruby's standard library where this code triggers an exception (and it shouldn't, IMO):

IPAddr.new('::1').freeze.to_range

and here's my attempt to fix it:

github.com/ruby/ipaddr/pull/36

Got a lot of fun recalling the networking algebra just for the sake of having tests to support the patch - there were no test for `to_range'

Looks like we will have yet another security-related release for ruby.

A patch has been merged to the main branch:

github.com/ruby/ruby/pull/5239

But the Hacker1 entry is still not public yet;

hackerone.com/reports/1306859

AppSignal: To concern or not concern

blog.appsignal.com/2020/09/16/

After 6 years of using Rails I'm still not sold of use concerns to simplify mixins.
Surely has their use cases but there's definitely better ways: containers, dependency injection, abstractions, or even plain modules.

"It's a concern when you start using Rails' concerns"

Esparta :ruby: boosted

I'm looking for a Video Editor #OSS.
Which one do you recommend?

#askfediverse

New live coding of exercism.io with track: Matrix

This was particularly nice to do with & memoization

twitch.tv/videos/7272912

You may not be aware of this, but there's a lot of coordinated efforts to a better documentation of Ruby core classes & the standard library.

People like Burdette Lamar, Eric Holden (drbrain) and others has been nailing it going method by method doing a better docs.

Today Jeremy Evans proposed a "Method Documentation Guide" for this:

github.com/ruby/ruby/pull/3999

It's really nice to see this happening, if you are privilege enough to help, please do. The ruby ecosystem need your help.

Esparta :ruby: boosted

Me, the genius: I think I'll use asdf-vm in this old RaspberryPi
Me, the genius, a few minutes later, realizing it would take more than 20 minutes the `asdf install Ruby 2.7.1`

Esparta :ruby: boosted

Next time you think your data is not valuable remember these images.
This is what I can track in my local network. Nice graphs and metadata I got without any fancy nor expensive technology: around $0 since it's produced by my EdgeRoute X & PiHole.
Imagine this kind of data aggregated by your ISP or "no logger ever" VPN provider.

Esparta :ruby: boosted

Not sure how developers can sleep having code like this:

return input.scan(/^\d*/) && $&.to_s

So, the reader/maintainers should read it says:

> Return the prefix of the string consistent of only numbers, otherwise an empty string. Note: no empty spaces allowed at the beginning of the input.

Yes, I do #hateRegex

Show older
Ruby.social

A Mastodon instance for Rubyists & friends