this post was submitted on 20 Jun 2024
24 points (100.0% liked)
Operating Systems
3800 readers
1 users here now
All things operating system related, from Windows to Mac to Linux distros and the more obscure.
Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Don't follow tutorials, understand them. I'm so tired of seeing useless uses of cat because some asshole writing a tutorial 20 years ago decided to illustrate how pipes work with a good ol
cat file | grep string
as if grep didn't take a file name as an argument.The more time I spend being mad about this the more I notice people using horrible practices in tutorials because they're too lazy to setup a legit use case.
A new user sees this and thinks this is how grep works.
Loops are another common one. People going around not knowing you can pass a glob to a shell for loop. Because the tutorial they read was lazily written and they didn't bother to understand the bits of what they were being shown, only how to reproduce/mangle the command until they manage to get close enough to what they want out of it.
I'm absolutely going to do my best to understand and not copy/paste without doing that. I don't like doing things to my computer that I don't know what is happening, so that makes sense to me! I already ran into that issue plenty of times with my servers, so I'm trying to go all in now.
thank you!