Todd A. Jacobs | Rubyist

63 Followers
163 Following
871 Posts

## Please Don't Nerf RubyLang Because #StyleGuides

Ruby has made some internal changes that remind me of the changes #RSpec made to clean up internals but uglified the code & made certain features simply stop working as expected.

Removing `foo rescue nil` is an exmaple. Some edge cases make this antipattern useful; replacing a one-liner with a complex method/chain is annoying. Mindful chainsaw-juggling gave expert #Rubyists superpowers. Not trusting power users is red #Kryptonite for code.

#HiveMind Question: I have ≈ 2.6B skills (give or take a couple billion) that are relevant to my work, but #LinkedIn has a hard limit of somewhere between 50-100 skills you can list on your profile.

I'm trying to figure out what to do about it. Due to length limits here, I posted a longer question with context over on LI.

NB: No LinkedIn login required to view the referenced post.

https://www.linkedin.com/feed/update/urn:li:share:7309276162147446785/

#hivemind #linkedin | Todd A. Jacobs

#HiveMind Question: I have ≈ 2.6B skills (give or take a couple billion) that are relevant to my work, but LinkedIn has a hard limit of somewhere between…

#RubyLang #hivemind: I have a passel of #SQL spaghetti that I'd like to turn into a set of #Rails models. I'm not finding a good SQL-specific #LLM that understands interrelated SQL files for #RAG that groks the newer features of #RoR 8+. I'd like #model_enums & seeds.rb support.

Know an LLM model that's any good at doing even 50% of the #boilerplate work? It doesn't have to be perfect; it just has to make it less tedious to extract the boilerplating.

Suggestions?

Other than supporting legacy systems or implementing cryptographic password functions that *should* be slow, why aren't your teams using GNU or BSD tar with #zstd compression and #xxHash or #Blake3 checksums yet? If time is money, please stop wasting either with legacy algorithms when there are faster, more secure, and more trusted options currently available.

Opinions on #unittesting are endless: test fixtures, test factories; test doubles, mocks, and stubs. The real problem is mistaking exhaustive #testcoverage for a sensible testing strategy. They aren't synonymous.

Testing core #RubyLang methods or coupling tests for a menu bar to DB calls both miss the point. The Pareto principle is to validate *your* logic, not whether Ruby or Rails work.

Tests that can't explain app-specific features or debug non-builtin code is *muda* waste. Just don't.

Not everyone adds image #alttext. I use it for both #accessibility & semantic #metadata.

Based on my prior experience as a disability advocate, I don't just describe the image contents. I also add a *raison d'être* for it, i.e. what does the image to convey in context?

My last post used: `Hand holding a pen, writing "Thank you!" in fancy calligraphy. Represents gratitude to my followers.` The first sentence describes the content; the second explains my semantic intent.

Anyone else do this?

I actually have accounts on multiple #Mastodon instances, with each account focusing on a different topic. I'm a #Rubyist, but I'm also a #cybersecurity consultant, a business owner, train service dogs, run a non-profit, sit on several boards, and write a lot. Oh, and I'm a gamer, too.

I separate accounts to keep my feeds relatively topical. It says something nice about the #RubyLang community that about 80% of my total #fediverse followers are on #rubysocial.

Thank you all for engaging!

Ever wish you could recreate the Thunderdome at work? Just make offhand comments to #RubyLang #programmers about any of the following:

1. #RuboCop and other style guides.
2. Frozen string literals.
3. Single vs. double quotes.
4. The value of `private` or `protected` methods.
5. The ternary operator.

For best results bring popcorn, a first aid kit, and a sturdy helmet. Kevlar athleisure wear is recommended but optional.

I like ebooks because I no longer have mountainous stacks of books all over the house. What if Amazon, Apple, or Adobe disable my DRMed ebooks & devices? All those books I "bought" become unreadable, transformed from a pocket library into a useless sunk cost.

This isn't like losing all your books to an unexpected house fire. A better analogy is patronizing a bookstore run by arsonists who will happily sell you every paperback book in stock before setting your house ablaze.

#DRM #ebooks

Having #strategicgoals with objectively-measurable #KPIs & #OKRs is important, whether they're business or personal. Even incremental improvements have value.

I'm very #metrics-driven, so you'd think being in the 99th percentile on multiple SE sites would be enough, but I plan to crack the top 0.10% on both sites by focusing on tags I haven't focused enough on lately to gain 0.12% and 0.02% respectively. Succeed or fail, it will be both fun & useful to track the targets.