Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by ironmagma on Thursday June 25, 2020 @03:02PM
(#23644232)
As bad as Ruby is, it’s still better than Bash and you can do all the same effortless execution of random commands in your script like you would in bash. If one can’t be bothered to write it in a real language like Rust or even Python, you could at least do Ruby.
[ Parent
| on HN ]
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by cortesoft on Thursday June 25, 2020 @03:09PM
(#23644295)
What makes python more of a real language than ruby?
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by ironmagma on Thursday June 25, 2020 @03:11PM
(#23644320)
It’s more mainstream for tools like this.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by rad_gruchalski on Thursday June 25, 2020 @03:44PM
(#23644706)
Please explain. Have you heard of chef? That is ruby and it can be beautiful. Chef > Ansible. Chef server is meh.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by ironmagma on Thursday June 25, 2020 @04:49PM
(#23645535)
The point wasn’t that Python is better than Ruby, they are about the same IMO. The point was they are both better than Bash, and Ruby actually makes it super convenient to write bash-like scripts, so there’s no excuse to not be using Ruby.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by e12e on Thursday June 25, 2020 @03:59PM
(#23644911)
Eh.. Puppet? [ed: and chef..]
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by ironmagma on Thursday June 25, 2020 @04:55PM
(#23645600)
Python and Ruby are both functionally equivalent in my book. The difference is prevalence; for systems tools, Python is more common because it comes installed by default with more Linux distros and in my experience anyways, is faster to respond to breaking upstream issues and build failures, which is almost certainly just due to more widespread usage. I have nothing against Ruby, it’s a pretty language and does what you need and has good metaprogramming support. Just saying for a tool you want lots of people to adopt, it’s more mainstream to choose Python.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by e12e on Thursday June 25, 2020 @08:13PM
(#23647326)
Right. I just can't think of a more mainstream tool in this space than puppet - that's why I thought your statement seemed odd.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by ironmagma on Thursday June 25, 2020 @08:19PM
(#23647367)
Yeah, I was thinking more broadly about systems utilities rather than specifically state management.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible
by easygenes on Thursday June 25, 2020 @04:56PM
(#23645605)
Ruby has fallen by the wayside in recent years largely because its lunch has been eaten by Python and JavaScript, but mostly by happenstance, not as a result of the merits of the language itself. Ruby has comparable speed and arguably more robust niceties for building complex software vs. Python. See, e.g.,
https://leanpub.com/combinators
https://computationbook.com/
https://www.toptal.com/ruby/ruby-metaprogramming-cooler-than...