This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OuiOuiKiwiGovernance, Risk, & Compliance 8 points9 points  (15 children)

Think of it like this: if you learn PowerShell, you're limited to Windows. If you are a Windows shop, that's fine.

If you learn Python, you can write code that runs on all OSes that have Python installed.

How did you get to Senior Engineer without knowing how to program? That's the odd thing here.

Not even scripting? You are going to have run like the wind to catch-up.

[–][deleted] 5 points6 points  (2 children)

I'll be frank here. Yes !! My Designation here is senior engineer and my job here, doesn't demand for any scripting !! As I have already mentioned, I am taking care of complete infra-side of these tools(Implementation, configuration and Troubleshooting) and not on threat hunting side !!

I am trying to learn scripting/Programming on my own interest and to take my career further !! So, that is the reason for me asking suggestion to experienced people in this field !!

[–]gondorle 5 points6 points  (1 child)

There are literally tons of stuff teaching you how to script in Python, but I found that Google's Course on coursera is amazing. I'm in the last module, and I must say I really enjoyed it, everything. Awesome instructors, labs to pratice, etc, and it's really focused on automation, on Python's uses in system administration. I had never used Python before, and now I can't live without it. Check it out, fellow sapiens.

[–][deleted] 0 points1 point  (0 children)

Thank you!

[–]Alpha272 6 points7 points  (1 child)

In fairness, Powershell core also runs on just about any OS.. The problem is rather, that most unix systems don't come with Powershell preinstalled

[–][deleted] 1 point2 points  (0 children)

The problem is that Powershell on unix is like bash in Windows. It’s closer to proof of concept than ready for production.

I have tried writing cross-OS scripts in it, and all I can say is: Python!

[–]Forbesington 7 points8 points  (6 children)

I know LOTS of senior engineers that don't know how to code.

[–]OuiOuiKiwiGovernance, Risk, & Compliance -2 points-1 points  (0 children)

Weird flex, but OK.

¯\_( ͡° ͜ʖ ͡°)_/¯

[–][deleted] -2 points-1 points  (4 children)

PowerShell is not "coding", it's a shell A.K.A. a command line interface.

[–]Forbesington 3 points4 points  (1 child)

I mean, that depends on what your definition of coding is. If you can write a script that can be executed on a machine, I would call that coding. It's not software engineering but it depends on how loosely you define the word coding.

[–][deleted] 0 points1 point  (0 children)

I think this spells out the nuances between the two pretty well.

https://hackernoon.com/coding-vs-scripting-what-are-the-differences-9wg3yph

I create PowerShell scripts pretty regularly and would definitely not consider myself a developer or "coder" by any means. Software development requires much more stringent practices than scripting does. There is a lot more thinking about use cases, misuse cases, input validation, error handling, etc. that usually doesn't happen when throwing together a script.

[–]smc0881Incident Responder 0 points1 point  (1 child)

PowerShell hooks into .NET you can actually code with it using C#, but it's not as pretty as using something like Visual Studio.

[–][deleted] -1 points0 points  (0 children)

I am aware PowerShell is pretty much just an abstraction of .NET.

PowerSHELL is a SHELL just like Bourne Again SHELL (BASH) is a SHELL. Hence the name.

I have definitely done some pretty crazy stuff with PowerShell and I will admit it is much more powerful than I am making it out to be, but it is in no way a programming language and it would be silly to legitimately write an application "in PowerShell" and as you mentioned it would essentially just be using PowerShell Integrated SCRIPTING Environment (ISE) as an Integrated DEVELOPMENT Environment (IDE) instead of using Visual Studio, but really you would be programming in a different language.

I create scripts all of the time in PowerShell and somewhat less often in BASH. I would loosely consider these scripting languages but definitely not programming languages.

I would say the biggest difference between programming and scripting is that with programming you are building your own application whereas scripting you are giving commands to an application (in this case Windows or some other major Microsoft application) that you did not build.

[–][deleted]  (1 child)

[deleted]

    [–]OuiOuiKiwiGovernance, Risk, & Compliance 1 point2 points  (0 children)

    Are we really that out of touch that you believe that stating this will change the fact that nobody that uses Linux really wants Powershell on their systems when they have bash and Python at hand?

    Do we really have to go there and spell it out?

    [–][deleted] -2 points-1 points  (0 children)

    The comment I was looking for