▲ | ajkjk 13 hours ago | ||||||||||||||||||||||||||||||||||||||||||||||
I can't believe that in 2025 it is still hard to find documentation for basic functionality in languages as ubiquitous as, say, Python. If I google something simple I get 100 junk sites of garbage (GeeksForGeeks, W3Schools, etc), a bunch of AI-generated crap, a bunch of archaic out-of-date stuff, the official documentation which is a wall of dense text, some tutorials that mention the basics, a bunch of shitty bootcamp blogspam (they make you write blog posts about crap to get your brand out there, you know), some stackexchange posts with twenty different answers from 2010, etc. And I'm thinking of, like, Python here, cause that's what was pissing me off this week. God help you if what you're looking for is made by Apple. Sure we're using AI to look up documentation now but that should never have been necessary. Just like now we use AI to google things because google is so shitty. It's not that AI is great, it's that search engines and documentation are more dogshit than ever and AI is a bandaid. also it is amazing to me that shells still exist in more-or-less the same form. dear god can I just get a terminal that runs something like Python directly? | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | skydhash 13 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
> I can't believe that in 2025 it is still hard to find documentation for basic functionality in languages as ubiquitous as, say, Python. That’s why we get familiar with the documentation manual and bookmark the web version. Then there’s offline documentation browsers (dash, devdocs,…). > it is amazing to me that shells still exist in more-or-less the same form Bash and ZSH are quite good for their use cases (running command). and there are shell like fish that leans more towards interactive use instead of automation. Python’s primitive are not very good for launching commands. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | jolmg 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
> also it is amazing to me that shells still exist in more-or-less the same form. dear god can I just get a terminal that runs something like Python directly? There's no reason why you can't set Python to be your shell. Here you go:
You'll likely find that it's not that great as a shell language. Shell languages are made to be primarily used interactively. With Python, you'll have a lot of extra syntax to type all the time. They're also made to glue other programs together. I don't think you'll find it as convenient to use the output of one program as the input of another in Python. Job control will also not be as convenient. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | jpitz 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Like https://xon.sh/ ? | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | 1vuio0pswjnm7 10 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
"also it is amazing to me that shells still exist in more-or-less the same form. dear god can I just get a terminal that runs something like Python directly?" But what does this have to do with programming Is this suggesting that operating a computer via a shell is "programming" (It's possible to administer a computer running UNIX by using a shell, without knowing any programming languages^1) "dear god, can i just get a terminal that runs soemthing like Python directly?" Assuming "dear god" is a figure of speech, who would be the person(s) responsible for delivering on this request Many years ago, during experimentation, I changed the program launched by init to a program other than a Bourne shell by editing one line of init.c That "shells still exist in more-or-less the same form" is probably one of the reasons I like them so much 1. Assuming one believes the shell is not a programming language | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | chrash 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
> also it is amazing to me that shells still exist in more-or-less the same form. dear god can I just get a terminal that runs something like Python directly? i’ve been maining `nushell` for about 1.5 years now, and it’s basically this. a real programming language that is designed as a command runner and output parser. i have a ton of scripts that parse output from common commands like `git` and facilitate a ton of shell-based workflows: https://github.com/covercash2/dotfiles/tree/main/nuenv | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | ddimitrov 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Shells are much better than python at managing and orchestrating process execution. Also the pipes and filters model is simple and powerful when it fits your problem, which for me is many times a day. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | edudobay 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
What kind of Python information were you having trouble finding? I do have this problem as well, I've just started a job with Ruby and it took too many searches until I could find the official docs for some kind of syntax. For Python I feel it's easy to find stdlib docs, but can be hard to find some specific things about the language itself in the official docs - sometimes it's too technical and I wish there was a more pragmatic middle ground. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | goodoldneon 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
PEPs are often great documentation. They definitely don't cover everything, but they can be helpful | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | layman51 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
I understand why GeeksForGeeks is garbage but I don’t get why W3Schools is garbage. Anyone know why? | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | msgodel 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Python has amazing documentation. Between the built-in help() function and the official documentation (which is hosted on their site) it's hard to find anything better. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | taeric 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Python is a funny one to include there, as you should be able to just `help(foo)` to get the documentation. You can flat out run `help()` to get an interactive help session. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | ranger_danger 13 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
be the change you wish to see | |||||||||||||||||||||||||||||||||||||||||||||||
|