gvwilson,
@gvwilson@mastodon.social avatar

Should I teach bash, fish, or Nushell to data scientists who want to go beyond the basics of shell scripting? There seems to be a clear spectrum from "ubiquitous but m'gawd" to "this is the future but m'gawd in a different way".

klmr,
@klmr@mastodon.social avatar

@gvwilson I’d also recommend teaching Bash but otherwise I would lean heavily towards zsh: still POSIX sh compatible but a lot saner than Bash. And it is the default shell on macOS, and very widely available beyond that, and comes with extensive documentation.

dpprdan,

@gvwilson teach'em good #bash basics because it's ubiquitous and encourage them to use their language of choice (#Python, #RStats, #Julia) for the more complex stuff.
bash basics = including things to setup more advanced Docker images, see e.g. https://github.com/rocker-org/rocker-versioned2/tree/master/scripts

henrikbengtsson,

@dpprdan @gvwilson I 2nd Bash; it's widely used and supported basically everywhere.

Anyone writing a Bash script should know about and use https://github.com/koalaman/shellcheck - it's an incredible tool and you learn lots of Bash from just using it - removes endless trial'n'error guessing that otherwise sticks around for years

tshirtman,
@tshirtman@mas.to avatar

@gvwilson I'm a fish user, and love it, but not sure if would push it as default, for what they need to do, wouldn't python be a better fit? Any script longer than 5 lines sound be in a better language than bag IMHO.

mhoye,
@mhoye@mastodon.social avatar

@gvwilson Nushell for the structured data. People who want to go beyond the basics don't want to be dealing with basic problems over and over again on the way there.

gvwilson,
@gvwilson@mastodon.social avatar

@mhoye yeah, I'm having fun playing with it myself, but there are a lot of rough edges and I don't know if it's fair to inflict those on people for whom these tools are a means to an end. On the other hand, bash...

mhoye,
@mhoye@mastodon.social avatar

@gvwilson "This has a few rough edges, let's stick to the bucket of rusty razor blades I'm familiar with" is a less than compelling argument though.

gvwilson,
@gvwilson@mastodon.social avatar

@mhoye I strongly agree, and maybe my struggle to switch over personally is a case of "my hands have been typing bash for decades", but I'm also trying to be mindful of "if you ask the person next to you for help, will they be able to?"

mhoye, (edited )
@mhoye@mastodon.social avatar

@gvwilson I feel as though showing students that learning new and better tools rather than sticking with the rusty ones you're familiar with even if you have to admit ignorance and learn together, in front of the class, has at least three valuable lessons in it that are significantly more important than the tool itself.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines