Ruby
As I gradually re-write all of my Perl scripts to Ruby, I’m increasingly convinced that it’s an excellent little language and Unix citizen. The standard library is excellent.
It sure has its quirks, but learning a couple handfuls of Ruby means being able to quickly make some really handy utilities - especially if it’s what I’m calling "Utopian Software".
-
ruby-print-columns - printing x number of things from a list per line
-
ruby-json - read a json file
-
ruby-system - running external commands from Ruby
-
ruby-imports - including and requiring code from other files
-
ruby-as-calculator (WIP)
-
ruby-shell-scripts (WIP)
-
ruby-ordered-hash - a reminder to self that ruby does preserve insert order
-
chapterwords.rb - a script for daily word counts
-
SVG Minifier in Ruby tiny utilities rule!!!
Update 2023: I’m increasingly just using shell scripts these days…
Update 2024: LOL, back to Ruby for everything. Also, check out my book review for programming-ruby-3.3.
Fun one: SVG Sourcecode Shapes (A Little Ruby Script)
External:
-
https://ruby-doc.org/core-3.1.1/ (3.1.1 Core class/method documentation)
-
https://ruby-doc.org/stdlib-3.1.1/ (3.1.1 Standard Library documentation)