Re:What is the best language/framework to write CLIs in 2018?
by vgy7ujm on Thursday May 03, 2018 @08:27AM
(#16985316)
Perl or Go for sure.
[ Parent
| on HN ]
Re:What is the best language/framework to write CLIs in 2018?
by wawhal on Tuesday May 08, 2018 @02:30AM
(#17019224)
Never used Perl. Would love to learn it.
Just went through the overview. Looks like a high-level scripting language which inherits a lot from C.
After all the research, I am still highly inclined towards Golang. Since you said "Perl or Go", you seem to have used Golang. How does Perl compare with it?
Re:What is the best language/framework to write CLIs in 2018?
by vgy7ujm on Tuesday May 08, 2018 @07:01AM
(#17020077)
Perl has decades worth of high quality libraries to do heavy lifting. https://metacpan.org
You can get away with easy scripting for creating significant programs.
UNIX commandline and Perl is a match made in heaven.
Using Golang will demand significantly more effort when doing more complex stuff but will give you concurrency, easier deploys/multi-platform support and better performance if doing CPU intensive stuff.
Re:What is the best language/framework to write CLIs in 2018?
by vgy7ujm on Tuesday May 08, 2018 @07:03AM
(#17020087)
I use Go for what I previously maybe used C for.
Thanks to the quick compile time and good tooling Go almost feels like a scripting language when developing but especially for UNIXy stuff it can't replace Perl for me.
Re:What is the best language/framework to write CLIs in 2018?
by vgy7ujm on Tuesday May 08, 2018 @07:23AM
(#17020170)
For learning I would highly recommend the following books:
Beginning Perl by Ovid.
Modern Perl by chromatic.
There are a lot of other good Perl books but some of them are getting old and it is better to already know a bit before reading so one can separate good from dated etc.