That makes sense and I do think nushell has a legitimate place between simple zsh/bash scripts and more complex python ones for me. I think mostly I had issues rubbing against the functional nature of dealing with variables, but hearing your similar experience of grokking the mental model motivates me to try exploring a bit more again :-)
Also, I am surprised by how much it changed since I last tried it around version 0.87 or so! Perhaps I’ll wait for the API to settle down a bit and then strike out again.
I’m used to implementing C# LINQ (method syntax) queries, which I like a lot (for simple queries) as a functional style linear data transformation process.
It’s a bit different than classic procedural scripts, but most things and scripts operate on data either way, where it’s no worse and can be better in terms of scoping.
When the simple, direct implementation does not succeed, I tend to do it step by step. Query into a variable, then I can print out the variable, verify my assumptions, and then start from the variable, continuing with the next set of transformations. Using stored json files instead of just variables can also be helpful.
It could certainly change some more, given that it’s not a 1.0 stabilized API. Still, I find it comparatively stable. Specifically, the core stuff.
I’ve used Nushell at work to work with a mass of BSON files for managing “IoT” devices. After implementing a Rust plugin for BSON, Nushell was very useful, and everything else would have been much more of a hassle.
That makes sense and I do think nushell has a legitimate place between simple zsh/bash scripts and more complex python ones for me. I think mostly I had issues rubbing against the functional nature of dealing with variables, but hearing your similar experience of grokking the mental model motivates me to try exploring a bit more again :-)
Also, I am surprised by how much it changed since I last tried it around version 0.87 or so! Perhaps I’ll wait for the API to settle down a bit and then strike out again.
Thanks!
I’m used to implementing C# LINQ (method syntax) queries, which I like a lot (for simple queries) as a functional style linear data transformation process.
It’s a bit different than classic procedural scripts, but most things and scripts operate on data either way, where it’s no worse and can be better in terms of scoping.
When the simple, direct implementation does not succeed, I tend to do it step by step. Query into a variable, then I can print out the variable, verify my assumptions, and then start from the variable, continuing with the next set of transformations. Using stored json files instead of just variables can also be helpful.
It could certainly change some more, given that it’s not a 1.0 stabilized API. Still, I find it comparatively stable. Specifically, the core stuff.
I’ve used Nushell at work to work with a mass of BSON files for managing “IoT” devices. After implementing a Rust plugin for BSON, Nushell was very useful, and everything else would have been much more of a hassle.
There’s also !nushell@programming.dev, btw.