frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ruby Solved My Problem

https://newsletter.masilotti.com/p/ruby-already-solved-my-problem
71•joemasilotti•2h ago

Comments

iagooar•2h ago
Ruby has a lot of these hidden gems (pun intended).

I wouldn't be as much in love with programming, if it wasn't for Ruby. And although I use many other programming languages these days, Ruby will forever have a special place in my heart.

matltc•1h ago
Agreed. Was looking around for STL files so I could print a ruby and put it on my desk.

Glad to see it's getting love on here recently.

amerine•1h ago
I love this idea!! Any luck finding an STL or at least a 3d model I can convert and copy your idea?
jonah•1h ago
A quick search returned this: https://sketchfab.com/3d-models/gemstone-pack-68c4ec3dd23247...

Not _exactly_ the same cut, but might be good enough for you?

netghost•14m ago
A long while back I wrote a bunch of articles covering some of the standard library: https://snakeshands.com/series/ruby_standard_library/

Ruby, and Ruby on Rails is a treasure trove of little handy bits you can use if you just know where to look. I really miss some aspects of ruby (I just don't have a chance to use it these days).

c-hendricks•1h ago
title is actually "Ruby already solved my problem"
throwaway81523•1h ago
Thanks, that helped. My unspoken question when I saw the title was "does that mean you now have two problems?".
adverbly•1h ago
If you ignore performance and mathematical elegance and safety and just look at how much a language lets you get away with from a productivity standpoint, I think Ruby is a pretty standout winner and nobody else even comes close really...

Very clear APIs and syntax(with the possible exception of blocks which can be weird because they aren't quite functions), and tons of raw metaprogramming powers.

You can argue it sacrifices too much of the other things to deliver on these things, but it's hard to argue against it doing well at what it optimizes for!

jnovek•1h ago
I love writing Ruby. It’s one of the most pleasant and elegant languages I’ve used… but the footguns it comes equipped with rival those of Perl.
fhars•1h ago
Does Base https://github.com/garybernhardt/base still work with current versions?
lloeki•1h ago
> it’s built into Ruby!

Nitpick: technically `Gem::Version` is part of `rubygems`, and while `rubygems` is (typically) packaged with Ruby, it's actually entirely optional, so much so that `rubygems` actually monkeypatches† Ruby core's `Kernel` (notably `require`) to inject gem functionality.

MRuby has none of it, and CRuby has a `--disable-rubygems` configure flag.

Back in 1.8 days, you even had to manually require `rubygems`!

† https://github.com/ruby/rubygems/tree/4e4d2b32353c8ded870c14...

dragonwriter•7m ago
Nitpicking your nitpick, but Ruby’s standard library has three components:

* default libraries (these are maintained by the Ruby core team, delivered with Ruby, and upgraded only as part of Ruby version upgrades.)

* default gems (these are maintained by the Ruby core team, delivered with Ruby, not removable, can be required directly just like default libraries, but can be updated separately from Ruby version upgrades.)

* bundled gems (these are gems that are delivered and installed with Ruby, but which can be upgraded separately or removed.)

Rubygems is a default gem. [0] It used to not be part of the standard library, but it has been since Ruby 1.9, released in 2007.

[0] see, https://stdgems.org/

skrebbel•1h ago
Unrelated side note, but I haven't written any Ruby in maybe 15 years or so and dammn I forgot how elegant the language is at its core. The author's AppVersion class is so nicely done, it's nuts how succinct eg the compare implementation is.

Having done mostly TypeScript and Elixir lately, I had forgotten things could be so succinct yet so clear. The combo of modern (to me) Ruby's lambda syntax (in the .map call), parentheses-less function calls, the fact that arrays implement <=> by comparing each item in order, that there's an overloadable compare operator at all, having multiple value assignments in one go... It all really adds up!

In any other language I can think of real quick (TS, Elixir, C#, Python, PHP, Go) a fair number of these parts would be substantially more wordy or syntaxy at little immediately obvious benefit. Like, this class is super concise but it doesn't trade away any readability at all.

Having learned Ruby before Rails became commonplace, with its love for things that automagically work (until they don't), I had kinda grown to dislike it. But had forgotten how core Ruby is just an excellent programming language, regardless of what I think of the Rails ecosystem.

vault•12m ago
Like you, I remember 15 years ago when I decided to solve Project Euler in Ruby, a completely new language to me. I still remember the joy I was feeling when I started coding with this new language. So elegant! So natural! Like it was made to fit my brain. It's a pity I ended up working professionally with entirely different stuff.
js2•8m ago
Challenge accepted:

    from dataclasses import dataclass
    
    @dataclass(frozen=True, order=True)
    class AppVersion:
        major: int = 0
        minor: int = 0
        patch: int = 0
    
        @classmethod
        def from_string(cls, version_string: str):
            return cls(*[int(x) for x in version_string.split(".")])
    
        def __str__(self):
            return f"{self.major}.{self.minor}.{self.patch}"

Keep on fishing, while my app logs your catches

https://apps.apple.com/de/app/fishid-cam-fang-log-mit-ki/id6753859615
1•Appventurer•48s ago•1 comments

Show HN: Pingu Unchained an Unrestricted LLM for High-Risk AI Security Research

https://pingu.audn.ai
1•ozgurozkan•2m ago•0 comments

2025.45: Frothiness and the Future

https://stratechery.com/2025/frothiness-and-the-future/
1•feross•5m ago•1 comments

PgPointcloud – A PostgreSQL extension for storing point cloud (Lidar) data

https://pgpointcloud.github.io/pointcloud/
1•steve-chavez•6m ago•0 comments

New Talking Postgres Podcast Ep33 about Postgres and VS Code with Rob Emanuele

https://talkingpostgres.com/episodes/building-a-dev-experience-for-postgres-in-vs-code-with-rob-e...
1•clairegiordano•8m ago•0 comments

EU, China Said to Join Brazil-Led Carbon Market Coalition (COP30)

https://www.bloomberg.com/news/articles/2025-11-07/eu-china-said-to-join-brazil-led-carbon-market...
1•standardUser•12m ago•0 comments

The Relentless Pursuit of the Vorschlag

https://vomtag.com/entry/The-Relentless-Pursuit-of-the-Vorschlag
1•saltysalt•13m ago•0 comments

Warpstock 2025 (OS/2, ArcaOS)

https://www.youtube.com/channel/UCNKJf6d69jWt4AD41yEgawQ
1•todsacerdoti•13m ago•0 comments

The Privacy Manifesto

https://zac1258019.substack.com/p/the-privacy-manifesto
1•rapawel•15m ago•0 comments

An AI model compressed an encyclopedia into an image

https://readmultiplex.com/2025/10/20/an-ai-model-just-compressed-an-entire-encyclopedia-into-a-si...
1•delichon•16m ago•0 comments

YouTube Removes Windows 11 Bypass Tutorials, Claims 'Risk of Physical Harm'

https://news.itsfoss.com/youtube-removes-windows-11-bypass-tutorials/
8•WaitWaitWha•18m ago•2 comments

Mastodon 4.5

https://blog.joinmastodon.org/2025/11/mastodon-4.5/
4•birdculture•18m ago•0 comments

Website Monitors Bus Drivers Who Exceed Speed Limits in Helsinki

https://2fast2hsl.live/
1•jnieminen•23m ago•0 comments

Democrats name their price on ending government shutdown

https://www.axios.com/2025/11/07/senate-democrats-proposal-end-government-shutdown
1•SilverElfin•23m ago•0 comments

An abandoned tent has spurred a hiking mystery in New Hampshire

https://www.boston.com/news/local-news/2025/11/06/abandoned-tent-hiking-mystery-new-hampshire/
2•mykowebhn•24m ago•0 comments

We Used To Actually Own Our Computers.

https://www.youtube.com/watch?v=hF0NKvmQmVA
5•sarimkx•24m ago•0 comments

The File Search Tool in Gemini API

https://blog.google/technology/developers/file-search-gemini-api/
1•tsenturk•26m ago•0 comments

Computational Turing test shows systematic difference between human, AI language

https://arxiv.org/abs/2511.04195
1•anigbrowl•29m ago•0 comments

Cartolina: 3D Terrain Cartography for the Web

https://cartolina.dev/
1•gaws•30m ago•0 comments

The Medici Method

https://www.palladiummag.com/2025/11/07/the-medici-method/
2•sebg•30m ago•0 comments

Rovina's Choice

https://www.newyorker.com/culture/the-new-yorker-documentary/the-shutdown-of-usaid-has-already-ki...
2•perihelions•31m ago•0 comments

Scientists study plant with highest known heat tolerance in Death Valley

https://www.sfgate.com/bayarea/article/calif-scientists-groundbreaking-study-death-valley-2114361...
2•mykowebhn•33m ago•0 comments

Petri AI Testing 'Closes' possible solution without looking

https://github.com/safety-research/petri/issues/20
1•Utharian•34m ago•0 comments

ChineseNationals from UMich lab charged for smuggle biomaterials into US

https://www.justice.gov/usao-edmi/pr/three-chinese-national-scholars-university-michigan-laborato...
3•737min•35m ago•2 comments

AI Tools that I've Seen in the Wild

https://aplaceofmind.notion.site/AI-Tools-that-I-ve-Seen-in-the-Wild-2a40a6eeb81d80a89530daa4d741...
1•behnamoh•36m ago•0 comments

VLC's Jean-Baptiste Kempf Receives the European SFS Award 2025

https://fsfe.org/news/2025/news-20251107-01.en.html
19•kirschner•37m ago•0 comments

Convert static forms to Ajax'ed forms instantly

https://github.com/sleekcms/ajaxed-forms
1•yusufnb•37m ago•0 comments

Best Reranker for RAG: We tested the top models

https://agentset.ai/blog/best-reranker
1•tifa2up•39m ago•0 comments

Open Source in 2026 Virtual Event – Jan 13

https://www.punch-tape.com/events/open-source-in-2026
2•raeroumeliotis•41m ago•1 comments

James Watson, who co-discovered DNA's double helix shape, dies at age 97

https://apnews.com/article/james-watson-obituary-dna-double-helix-nobel-c1f6d589f2d0d4751859168f9...
6•WaitWaitWha•41m ago•1 comments