Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
i have to say that, after being forced to have intimate knowledge of both technologies, that i find CMD to be superior to powershell both as shell and as scripting language.
that is not to imply that either of them is anything but complete and utter shite, only barely above javascript. -
retoor45078d@tosensei nothing beach a python installed lib icw bash. Python supports functions to be added to she shell autocomplete. It's called console_scripts. Kinda the idea of extending the dotNET terminal with C# command integration. But way more older and awesome. Python is the ultimate bash extension. It.Makes.Me.Wild.
-
@retoor in theory, maybe.
In practice, it‘s a nightmare because you first need to install the correct version of python and the correct dependencies that the script is using to resolve the errors before you can run that damn script.
Scripts should run out of the box. -
retoor45078d@Lensflare python3, first version straight of the bat will support 99.9% code used in scripts. You're not gonna use asyncio probably. Also, that's a while available now. The only theory here is needing the right python version, in reality you don't. Python3 is installed on any decent operating system by default.
-
@retoor I regularly have to deal with python scripts as part of some tool or dependency of something that I need to use. And many of those scripts don‘t care about python3.
They will use some random 2.x version and I need to install it.
That’s not 0.1% but like 50% -
retoor45078d@Lensflare the people that use tools using still python2 are more like 1%.never happens to me. What tools are that? Sounds like you should find replacements.
-
@retoor the last time was when I set up swift on a linux vm. I don‘t remember the details but some of the tools that set up the environment needed python.
Ok it‘s less frequent than it sounds, but I‘m annoyed every time that python is involved, because of some versioning issues.
It‘s just my personal experience.
Swift as a scripting language is much better, imo. I‘m using it for personal stuff even on Windows. There are no versioning issues and dependencies are installed automatically on demand.
Unfortunately it‘s too obscure and unknown in the dev world. -
retoor45078d@Lensflare wow, dissapointed a bit by your reasoning, that swift uses python2 for tools makes swift the issue, not python. Python2 is eol. Dead, gone. Doesnt exist. Swift is outdated. That's dem truth.
-
@retoor I don‘t remember exactly but I think python isn‘t needed by swift directly. It was just a bunch of stuff that I needed to install first in order to install swift, and that stuff had some python dependencies. There might be alternative ways to install them, but that was the one that I found and that worked.
-
if i can't understand the bloody syntax I just write a python script lol
like anything with regex.
python.
bash and its fucky bs of expanding wildcards is annoying and i hate having to escape every goddamn thing. -
if i can't understand the bloody syntax I just write a python script lol
like anything with regex.
python.
bash and its fucky bs of expanding wildcards is annoying and i hate having to escape every goddamn thing. -
@retoor I refused to use python 2. lack of parenthesis made the code look sloppy.
-
retoor45078d@AvatarOfKaine only the print statement right? Yeah, that was always weird. But there's a big chance that the print statement is a bit different implemented because it's one of the first thing you do not depending on other functions so it always works. At least, that's what I did in my language.
-
@retoor yeah well that was enough :P I saw that and though of sh LOL i like punctuation in my code if not my writing
-
@retoor If I want to store a command for reuse I write a program, initially in a clumsy scripting language and the second time I need to modify it I switch to a proper language. On Linux or cross-platform, JS then Rust, on Windows, PowerShell then C#.
-
retoor45078d@AvatarOfKaine the original retoor left long ago, Broke neck on the return button. Was catshit crazy anyway. retoor achieved to be the most mentioned developer at devRant while being one of the lesser appreciated according to drstats. Sad story huh. retoor is like the avatar, Reincarnates often with new personality and will be gone when the world needs retoor the most. Anyway, fire nation for life!
-
@retoor I tried to learn Nushell but it doesn't really improve things over JS and it has way worse DX, yet it also can't spawn arbitrary programs like a shelll, so I didn't really see the value add.
-
retoor45078d@lorentz there's only one elite shell and that's retoor's AI shell! It can do everything, I can even ask it if my chrome cast is online (it always is, but still, it does automatically a mdns query if you ask it.). I can just say "list all files that contain the letter `a` and sort by name desc".
What you see in screenshot is that it first proposes the code and requires me to say something like DO IT! or in this case 'run' to execute. I should disable the confirm, but it's so funny to get things executed by ssaying "You know what you have to do.". If an app is not found, it offers you to install, it will, you have to enter the sudo password. After installation "You know what you ahve to do" and it executes it. It understands you.
Nicely done the syntax highlighting and markdown huh?
Written in language of Angels (C). I can pipe files to it for review.
Microsoft thats not a terminal, that five dotnet's in a powershell trenchcoat!
rant