Hacker News new | past | comments | ask | show | jobs | submit login

I thought everyone just searches for their exact needed pattern on SO



I just keep a "cook book" of common commands I've gathered from SO so I don't need to search each time to refresh my memory.


I'm pretty sure you meant this in a different way but it reminded me of another thing I see a lot with people.

They have these huge lists (written down in some tool or another) of commands to do specific things and they copy and paste them. It's heart wrenching to see them search for these sometimes (even if they find them) and then they copy and paste them. But they sometimes (many times) don't work or are super simple things. Like the `kubectl get pod` thing I mentioned, they might have that in one of those lists under some heading like "dev environment commands" or somesuch together with 10 or 15 others.

Because they never actually tried to understand the simple logic and meaning behind these command line tools and only ever copy and pasted, they get very easily tripped up by even the simplest things, such as replacing the parts that need to be adjusted for their specific situation, even if clearly marked, such as `kubectl -n <yournamespace> get pod` (or one that comes up even more often in troubleshooting sessions 'The command from the docs does not work and I made sure I copy and paste so I don't mistype it' and if you ask what they did it was `kubectl -n examplenamespace get pod`). Or they might have written down a command from the onboarding docs that combined multiple things into one command line. To fix issues with their environment, they have to basically nuke everything and start from scratch, because only then will their copy and pasted command actually work. They haven't learned to decompose these and use the parts individually or recompose them.


I agree that keeping a cookbook of stuff pasted from the internet without knowing the fundamentals is an anti-pattern.

For me (and probably for GP), my cookbook is stuff that took me more than a few minutes of tinkering or reading manpages to figure out, and it’s stuff that I use maybe once every couple weeks — not often enough to memorize, and annoying if I have to figure it out again.


Have you tried

curl cht.sh/ffmpeg




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: