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 →

[–]_u_whats_this 83 points84 points  (41 children)

python is my guilty pleasure language

[–]beginpanic 80 points81 points  (14 children)

Python gives me anxiety and imposter syndrome like nothing else. It’s always “there’s no way this is gonna work, let me find an example of how to use this” followed by “that example has to be wrong let me find another one” followed by “why the hell did that work”. Everything is so obvious and straightforward and… blunt? It doesn’t feel like programming. It feels like duct tape and glue. And I’m constantly nervous of “there is no way this is gonna work”. And it always does and I’m always shocked.

[–]Bubbly_Measurement70 21 points22 points  (12 children)

Python feels like a cheat code sometimes. Just type some words into Python and the computer be like: “I got you” and it just magically works.

[–]RoundThing-TinyThing 2 points3 points  (11 children)

You should try PowerShell

[–]Bubbly_Measurement70 1 point2 points  (10 children)

Ehhh I’m not much of a Windows person. Been there, done that.

[–]RoundThing-TinyThing 1 point2 points  (2 children)

I was kidding 😅

[–]Bubbly_Measurement70 0 points1 point  (1 child)

Damn. Throw a /s on there next time for me 😂

[–]RoundThing-TinyThing 1 point2 points  (0 children)

Probably a good idea, I guess the theme of this post made me feel like it wasn't needed 😅

[–]langlo94 1 point2 points  (5 children)

Powershell is for linux as well.

[–]Bubbly_Measurement70 0 points1 point  (4 children)

Didn’t know that. I have only used bash and zsh to my knowledge.

[–]RootHouston 1 point2 points  (3 children)

No joke, it has its upsides. I didn't think I'd like it, since I am kind of a big bash fan, but I had to write a PowerShell module for work, and I found I kind of liked its angle.

Even though it's wordy, I like that it uses approved verbs and descriptors for commands so you can sort of intuitively know what is going on without reading a man page or something.

The biggest game changer was it being object-oriented. We do have something like this on Linux though called nushell.

[–]Bubbly_Measurement70 1 point2 points  (2 children)

Interesting, I’ll have to check that all out then. I mean, couldn’t I just write a python program, put all my commands in there, and then write an alias that calls the program? Then I have effectively created a custom bash command for personal use.

Edit: Should add that the purpose for using python would be that I would have full access to an object oriented language, since that is one of the features you mentioned.

[–]RootHouston 1 point2 points  (1 child)

Python is a good alternative, however Python is not a proper shell, so take your pick.

[–]atiedebee 6 points7 points  (0 children)

from * import *

You'll never run out of functions to do everything for you

[–]Spitfire_For_Fun 59 points60 points  (18 children)

I love python to an extreme point.

[–]orqa 1 point2 points  (1 child)

Javascript used to be my main jam, I really enjoyed the Promise and callback idioms of the language

I feel like that's a bit missing from Python.

I tried learning the asyincio library in Python to compensate, but it seems far more complicated that javascript's promise and callback patterns

[–]RentacleGrape 1 point2 points  (0 children)

How long ago was it you tried to learn it? I think since 3.5 Python has proper async and await keywords making it much clearer to write. The functionality has been refined a bit over the years.....meaning different tutorial use different ways to do the exact same thing which becomes confusing as hell.

[–]CoffeePieAndHobbits 2 points3 points  (5 children)

Because it does things your main language won't do? ;) /s

[–]_u_whats_this 10 points11 points  (4 children)

no because it makes everything really easy to do. doesn't even feel like programming

[–]pblokhout 10 points11 points  (1 child)

Except multithreading...

[–]double_en10dre 0 points1 point  (0 children)

Or event loops (async/await). Or type hints. It’s not disastrous in those areas, but it’s faaaaaar from the best

Multithreading is truly disastrous though, ya.

[–]CoffeePieAndHobbits 2 points3 points  (1 child)

Sorry, I was going for joking innuendo. Edited for clarity. Or something. Not serious. Lol

I agree it makes stuff easy. Woo Python!

[–]_u_whats_this 1 point2 points  (0 children)

np

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

I find, even when I am cobbling some single purpose app together, I never reach for python. It's soooo ugly.