4 ms·
Bash. There is no actually used language that can do as much with as few keystrokes, not even perl. Who needs quotes for strings anyways.
by furgooswft13 5y ago
Bash. There is no actually used language that can do as much with as few keystrokes, not even perl. Who needs quotes for strings anyways.
- nomorecommas 5y agoI agree it's very quick and easy to just get shit done in Bash. When I go back to my code after a few weeks I can't stand looking at it.
- PaulHoule 5y agoI can’t ever remember how to write loops in bash or the command line flags of xargs so I sometimes indulge in guilty metaprogramming pleasures like ls -l | awk … | bash even though it is notoriously unsafe. I guess a lot of younger folks know xargs but not awk.
- nomorecommas 5y agoWell ... awk is great, but only up to a certain level of complexity. The standard language has only global variables. It's got no real support for functional style. There's no standardized library system. Oh, and it can't reliably distinguish STDERR from STDOUT. So there are a bunch of kludges to get around all the deficiencies, which results in awk programs which look like a retarded dialect of C. IMHO the best parts of awk are regex literals, natural pipeline participation, and familiar/simple syntax. Sitting down to write a complete program in awk start to finish though ... no thanks.