Todd A. Jacobs · @todd_a_jacobs
23 followers · 250 posts · Server ruby.social

While using a single, complex seems like a time-saver to some people, it also makes breaking down transformations and validations into discrete, testable steps a lot harder. In , many String and Array methods are faster than their regexp counterparts, too.

I generally prefer to see code that is more testable rather than a really complex regexp that attempts to validate, capture, and transform within a single expression. YMMV.

stackoverflow.com/a/77069482/1

#regexp #rubylang

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
23 followers · 250 posts · Server ruby.social

@robbkidd Heck no! makes me happy. is an example of a language I consider soul-sucking. I feel the same way about TBH, although is less evil than many of the popular JS frameworks.

I'm just looking to pick up a new language that is commercially viable but neither painful nor a commodity skill. That's obviously going to solicit very opinionated answers, though.

#rubylang #java #javascript #es6

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
23 followers · 250 posts · Server ruby.social

@skryking Personally, I will stick with until it's abandoned or a future version jumps the shark. Professionally, neither Ruby nor Rails is currently "new and shiny," and isn't really as commercially viable a skill as it used to be.

These things cycle. was a career dead-end until it re-emerged as the language of choice for NLP, various ML tools, and data sciece. Ruby's killer app was Rails, but that's not as highly sought these days as it once was.

#rubylang #pythonlang

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
23 followers · 250 posts · Server ruby.social

@ruby_discussions As much as I dislike promoting anything or Oracle related, I have to say that a lot of my code (so long as it doesn't require forking) runs ~1 gazillion times faster on than even with enabled. It's now my default for certain types of performance-oriented code, especially for threading.

#java #rubylang #truffleruby #cruby #YJIT

Last updated 1 year ago

RPA · @rpaweb
22 followers · 29 posts · Server ruby.social

One of the talks that officially starts the user-group in Santa Marta (x.com/rubysantamarta). I'm really excited! September 4th, 3.30pm @ Unimagdalena. Over the course of this week I'll be posting a video officially launching the user-group.

#ruby #rubysantamarta #rubyonrails #rubylang #webdev #development #usergroup #rubygems #devcommunity

Last updated 1 year ago

RPA · @rpaweb
22 followers · 29 posts · Server ruby.social
Todd A. Jacobs · @todd_a_jacobs
19 followers · 173 posts · Server ruby.social

@noelrap Thanks for providing this as a service to the community. I'll be catching the Thursday session!

#rubylang

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
19 followers · 173 posts · Server ruby.social

If you aren't already following @evilmartians you really should. They produce some really amazing , especially for . If you haven't used their or polyfills with older Rubies you're really missing out!

github.com/ruby-next/ruby-next

#foss #rubylang #rubynext #transpiler

Last updated 1 year ago

RPA · @rpaweb
22 followers · 29 posts · Server ruby.social

August started pretty hard, work-wise, so, I'm delayed with the article, and, if I didn't publish it yet is because I don't want to release something that I'm not entirely satisfied with. I'm a "do it well or not at all" guy.

#ruby #rails #rubylang #rubyonrails #devcommunity

Last updated 1 year ago

RPA · @rpaweb
22 followers · 29 posts · Server ruby.social

Exploring Genetic Algorithms with Ruby is in shortruby.com this week. It's still amazing how much interest this has generated in the community. I'm very grateful @lucian! 🙏🏼

#ruby #rails #rubylang #rubyonrails #genetics #algorithms #development #devcommunity #developers #dev

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
17 followers · 156 posts · Server ruby.social

@rpaweb Too right! I get annoyed at the number of recruiters who think and are synonyms.

#rubylang #rubyonrails

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
17 followers · 156 posts · Server ruby.social

@rpaweb needs more love. It's designed to appeal to Rubyists, and is more like than , but it's _not_ Ruby and has its own set of challenges. Elixir is interesting, but other than asdf does it even have a widespread version manager ecosystem?

Either could be good secondary topics, but interpreted vs. compiled is more generally useful to more people, I think. YMMV.

#crystallang #rubylang #golang

Last updated 1 year ago

RPA · @rpaweb
13 followers · 19 posts · Server ruby.social

Sneak peek of the new DEV article:

"People must understand that Ruby is more than web development. Is above it. People think Ruby is Rails and is not. Actually, it's the other way around."

"Without Ruby there's no Rails. But Ruby as a language has more in its arsenal."

#ruby #rails #rubylang #rubyonrails #devcommunity #webdevelopment #ror #rubygems #developers

Last updated 1 year ago

RPA · @rpaweb
13 followers · 19 posts · Server ruby.social

My article is in and I'm in shock. I never ever expected to reach the repercussion the article has gained. I am beyond grateful for everything, and with all of you that have read, liked and shared, and spread the word! 🙏🏼

rubyweekly.com/issues/664

#rubyweekly #ruby #rubylang #rubyonrails #devcommunity #article #genetics #algorithms #development #trending #trendingtopic #rails

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
15 followers · 145 posts · Server ruby.social

On StackOverflow, sometimes people want sed or awk solutions. I like *nix tools too, but just provides so much more power and flexibility that I can't help offering Ruby alternatives when I *know* there will be edge cases. I prefer to teach people to fish instead of just handing them a guppy.

The answer most likely exceeded the depth of the OP's interest, so we'll see if it collects any upvotes from the community.

stackoverflow.com/a/76759548/1

#rubylang

Last updated 1 year ago

RPA · @rpaweb
13 followers · 19 posts · Server ruby.social
RPA · @rpaweb
13 followers · 19 posts · Server ruby.social
Todd A. Jacobs · @todd_a_jacobs
13 followers · 121 posts · Server ruby.social

TIL that you can run from the to Opal transpiler. How well this works when serving from a CDN cache or S3 bucket is...well, undefined for me at the moment. But it looks like a really neat idea to play with!

github.com/opal/opal/blob/mast

#sinatrarb #rubylang #javascript

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
13 followers · 119 posts · Server ruby.social

Who you follow is your business. For myself, I try to follow as many coders and book authors as I can on this account, but if you know someone in the community I really ought to follow, suggestions are welcome.

Even if I don't accept all suggestions—I curate my feeds vigorously—I always appreciate personal recommendations, esp. those that say "why." Feel free to DM instead of reply-all if you don't want to make your suggestions public. As a security-minded person, I totally get that!

#rubylang

Last updated 1 year ago

Todd A. Jacobs · @todd_a_jacobs
13 followers · 118 posts · Server ruby.social

@noelrap I mentioned your upcoming 3.2 book in a recent answer. Not sure if the topic is already covered in the book, but thought the OP's question about the behavior of Proc.new without a block changing in Ruby 3.0+ was interesting enough to mention if you're looking for additional material for your "Ruby Changes" appendix.

If it's not on topic for your book, that's fine. Just thought I'd pass it along.

stackoverflow.com/q/76658788/1

#rubylang #stackoverflow

Last updated 1 year ago