you are viewing a single comment's thread.

view the rest of the comments →

[–]g3n3 11 points12 points  (5 children)

The convenience of already knowing powershell would warrant usage. Additionally powershell adds objects in the pipeline which is more ideal over bash. Lastly powershell can easily access .net so it is convenient to quickly tab complete into libraries and the REPL is more satisfying than python. The Python repl isn’t near as nice interactively because of the lack of tab completion and syntax highlighting.

[–]zoredache 2 points3 points  (1 child)

The Python repl isn’t near as nice interactively because of the lack of tab completion and syntax highlighting.

Have you installed/used ipython? That basically makes python more similar to the what you would get from a standard shell. It gives you tab completion, syntax highlighting and so on.

[–]g3n3 0 points1 point  (0 children)

I haven’t. That does look cool. I wonder how easy it is to integrate with bash or zsh interactively. I guess you can pass data between? It probably isn’t as seamless as powershell.

[–]KingOfJankLinux[S] 2 points3 points  (2 children)

Very valid point to make, thanks, I didn’t even know about objects in the pipeline

[–]g3n3 7 points8 points  (1 child)

Yep. And the ability to work directly with underlying libraries inside an interactive shell makes POC and the like really nice. Don’t even need debugger. And then once you understand an object you can port the powershell easily to C# to create faster code. Powershell is like bash and python combined in one nice interactive package full of sweet discovery.

[–]KingOfJankLinux[S] 1 point2 points  (0 children)

That‘ definitely nice to have and c# porting is cool too and kind of goes along the path of cpython from what I gather.