3 ms·
> Everything stored in a single 700-line bash script, how cool is that?! ;) A good rule of thumb: If your bash script is over 100 (sane) lines it's an indicat
by arpstick 12y ago
> Everything stored in a single 700-line bash script, how cool is that?! ;)
A good rule of thumb:
If your bash script is over 100 (sane) lines it's an indication that what you are doing is probably best not done with shell scripts.
But... to each their own.
- carlesfe 12y agoI agree in that a shell script is not the best platform for a blogging engine. However, 1. It has literally zero dependencies (other from bash, of course) which is kind of the goal of bashblog 2. If you examine the code you will notice it's clean. The engine is about 200 lines, the rest are HTML and CSS templates. 3. I don't agree that a shell script should be less than 100 lines, more or less. A single function? Of course. But a whole module? I disagree. As long as the code is clean, understandable and consistent, I don't see why not! What I'm trying to say is that the mantra of "shell scripts should be used only to copy files and run make" isn't correct. Shell programming is a thing, and I believe bashblog is a good example of that.