One of the things that Ruby is really good at doing is sometimes called "string munging." Basically the ability to easily parse various kinds of input into a usable form, do something with it, and possibly output some info. It's a great scripting language.
This is very similar to some of the JS examples in the string processing versus, but with an emphasis on scripting (Ruby's domain). I think this will be particularly welcoming for system administrators who have a background in Ruby that need to learn C++ (or those who have operated in a similar role and maybe are transitioning).
I'm thinking of building a program and parsing the input from the ls command into some internal data-structures might be a good bit of code to showcase the dfiferences and provide lots of good teaching moments.
One of the things that Ruby is really good at doing is sometimes called "string munging." Basically the ability to easily parse various kinds of input into a usable form, do something with it, and possibly output some info. It's a great scripting language.
This is very similar to some of the JS examples in the string processing versus, but with an emphasis on scripting (Ruby's domain). I think this will be particularly welcoming for system administrators who have a background in Ruby that need to learn C++ (or those who have operated in a similar role and maybe are transitioning).
I'm thinking of building a program and parsing the input from the
ls
command into some internal data-structures might be a good bit of code to showcase the dfiferences and provide lots of good teaching moments.