4 ms·
Why do you even set yourself such a goal? Just learn to use it when you need it, or when you have a task, where you suspect that it might be faster done in bas
by cel1ne 10y ago
Why do you even set yourself such a goal?
Just learn to use it when you need it, or when you have a task, where you suspect that it might be faster done in bash.
- throwanem 10y agoReading a book on it can give you a better idea of which tasks might be faster done that way, so that when you run into one, you're better equipped to recognize it as such than you might otherwise be.
- cel1ne 10y agoThat is actually very correct. I remember reading a book about the Shell and bash 15 years ago. It was the only book I read about the topic, but it helped me a great deal to develop an intuition about what it can do. Didn't prevent me though from getting sometimes lost in crafting complex scripts, where manual work or a java-program would have been faster.
- throwanem 10y agoWell, that's sort of the problem with bash scripting - its range of capabilities, combined with its atrocious syntax and various limitations, makes it something of an attractive nuisance, where you end up in a rabbit hole of "how do I do this in bash" while doing it in anything else would be more productive. Maybe the most important thing to learn about shell scripting is when not to use it. Alas, if the book that teaches that skill has been written, I have yet to run across it.
- SEJeff 10y agoThe shell is a tool, as is a proficiency in C, Python, Java, Golang, etc. The more tools you can successfully wield, the more you can build. Just because you're not super proficient in the shell doesn't mean someone else might be the same, so you shouldn't simply dismiss it. It is simply another tool to use and your "when not to use" question can literally be used with ANY technology. As an exercise, try replacing bash / shell scripting with SQL or C or Python. This is the fallacy in your argument :)
- throwanem 10y agoI don't believe I did "simply dismiss it". But perhaps I was insufficiently clear in saying that bash is relatively unusual in making it tricky to identify the point at which to stop trying to force it through hoops and use something more powerful and easy to work with instead.
- cel1ne 10y ago[Meta: Why I think you have been downvoted] > " Just because you're not super proficient [...] As an exercise [...] This is the fallacy in your argument " This assumption of missing knowledge and handing out of an "exercise" in logical thinking comes across rather patronising. Also I'm not sure where the argument was, that you found a fallacy in. Thank you for your contribution, nevertheless. I too believe that the decision on whether to use a tool or not, depends on your knowledge about it.
- moomin 10y agoThere's also a simple scheduling issue. Learning takes a while, and often the problem you're trying to solve is urgent.
- coldcode 10y agoIt can also show you the opposite, understanding something better might make you realize it's not as useful as you thought before, or might not be applicable to your needs.
- wccrawford 10y agoOne could see that as a different way of achieving what the parent poster said. You set a smaller goal that you can achieve (learn to do the task you need done right now) instead of the nebulous task of "learn the bash shell". They chose to read a book and gain everything in the book (regardless of whether they'd use it or not) and you chose to get something done. In defense of their side of things, there will be important things in that book that they might never think to try to learn and that might not come up during internet searches for specific problems. Both sides have merit, IMO.
- cel1ne 10y agoI tend to read books after I've tinkered with something for a couple of weeks, to fill in the blanks. But what I actually wanted to point out is that learning bash doesn't seem to have a giant appeal to OP. If it had, he wouldn't put it off on a todo-list. If you don't feel like to sit down and learn and entire topic for the fun of it, it's better to do it piece by piece.
- jen729w 10y agoI just want to be better at it. I like learning things.