Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderSome tips of my own: - It's almost always preferable to put `-u` (nounset) in your shebang to cause using undeclared variables to be an error. The only exception I typically run across is expansion of arrays using "${arr[@]}" syntax -- if the array is empty, this is considered unbound. - You can use `-n` (noexec) as a poor-man's attempt at a dry-run, as this will prevent execution of commands. - Also handy is `-e` (errexit), but you must take…
Just spent some time sending my scripts to this site for it to analyse and see what it does. I can see that while it wasn't be able to tell me of more efficient code to achieve my goal (wasn't really hopping for that), it did spot 1) one liners where some commands are not needed, 2) variables which are not used, 3) where I should use double quotes to prevent word splitting and 4) lines where my ssh was…
See also the version you can compile yourself and run in the terminal, written in Haskell: https://github.com/koalaman/shellcheck
Plugins for Sublime Text and Atom: https://github.com/SublimeLinter/SublimeLinter-shellcheck https://atom.io/packages/linter-shellcheck
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 3
- Total points
- 836
- Total comments
- 248
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
