Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: zeugma

Not to bash Bash but PowerShell let’s you access just about the all of the .Net functionality directly without having a bunch of little quirky little utilities.


17 posted on 01/12/2018 7:23:53 AM PST by ImJustAnotherOkie
[ Post Reply | Private Reply | To 10 | View Replies ]


To: ImJustAnotherOkie
PowerShell let’s you access just about the all of the .Net functionality directly

True and valid point. how dotNet libraries are invoked is often absurdly baroque but usually PowerShell can handle invoking with the correct types. In fact if the library is complete the types can be imported into PS with just a reference. However when you get down to that level you might as well be programming in C#.

One has to be careful not to abuse this too much. For example I once wrote some amusing PS code for generating C# code based on parameters and creating a signed assembly to then stuff into SQL Server directly for use as a function called by scripts invoked in a distributed environment. This was a performance optimization for scrubbing multi-billion row tables in a live system, IIRC. My excuse? it was a death march. Amusingly I also invoked the SAS motto to help characterize the rationale for the risk acceptance meeting..."who dares, wins".

20 posted on 01/12/2018 8:22:41 AM PST by no-s (when democracy is displaced by tyranny, the armed citizen still gets to vote...)
[ Post Reply | Private Reply | To 17 | View Replies ]

To: ImJustAnotherOkie
Not to bash Bash but PowerShell let’s you access just about the all of the .Net functionality directly without having a bunch of little quirky little utilities.

Sorry, I don't see the point of having yet another completely incompatible shell. Why not just join the rest of the world and make tools that play well with others?

22 posted on 01/12/2018 8:47:36 AM PST by zeugma (I always wear my lucky red shirt on away missions!)
[ Post Reply | Private Reply | To 17 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson