this post was submitted on 03 Aug 2023
147 points (97.4% liked)

Asklemmy

43916 readers
1546 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] KyuubiNoKitsune@lemmy.blahaj.zone 11 points 1 year ago (8 children)

Probably the most unpopular opinion here but PowerShell.

My main reason is that it's extremely easy to learn and is a good intro to object orientated programming.

People bash it but it's extremely easy to inspect objects, get any properties and methods associated with that object or class, walk through all the properties of the object and transform that into whatever you need.

It has a very fast turnaround time when developing code as you can run tiny snippets at a time and understand their outputs before moving to the next bit.

I'm not a Dev and end up having to write python from time to time and I hate it. At one point I just needed to understand an object in a variable and I couldn't do it, the command dir exists but it didn't give me any of the info I needed. There's a function in PowerShell called Get-Member (alias: gm) that you can pipe anything to and it will show you all those details of the object.

It helped me tremendously when I was just starting out.

Its super powerful, it can do anything C# can do because it's built on it, you can also run inline C, C# and C++ code with on the fly compilation.

It's also OSS and cross platform.

[โ€“] dbilitated@aussie.zone 3 points 1 year ago (1 children)

I write code in C# but I love PowerShell. it's just elegant even if the syntax can be a bit clunky

[โ€“] Hallainzil@lemmy.world 4 points 1 year ago

The syntax is often terrible (how it handles escape characters, for instance) but there's usually a well-meaning backwards compatibility reason for that. It's also flawed in many many other ways (classes, package management, variable scoping just to name a few).

But god damn if I can't bash (no pun intended, har har) out code to do most things very quickly in it. It's a fantastically accessible language, and it's a lot more powerful than it gets credit for.

load more comments (6 replies)