3 ms·
The Enumerable APIs, regex handling, low-bullshit functional approach, and great REPL make it a pretty nice scripting language. I've done quite a few Advent of
by epiccoleman 3y ago
The Enumerable APIs, regex handling, low-bullshit functional approach, and great REPL make it a pretty nice scripting language. I've done quite a few Advent of Code puzzles with it, and it always feels like such a nice multitool for chewing up the input files into workable formats.
It's not the first tool I'd reach for, I'm still a filthy bash hacker at heart, but I could definitely see using it for the right problem.
It's also just fun to write, which is valuable in its own way.
- cutler 3y agoWhat you've described is functional-style/dry Ruby.
- epiccoleman 3y agoWell, no, what I'm describing is Elixir. If your point is that the potential use cases overlap too much with Ruby, I mean, fine, write Ruby. I like Elixir more. I'm not picking either language for pure performance, but rather for ergonomic purposes, so we're into kinda subjective territory.