Lurker News

Comments (173) 27 threads

Earlier comments
tzury2 replies#
As a rule, if you can write your code in a file, and run it as a script, it is better than writing scrolls between

    <
The why is obvious.
jonahx1 reply#
It's not obvious to me that the benefits outweigh the benefits of a single, easily readable file.
d-z-m#
Some would disagree that heredoc'ing your scripts makes them easily readable.
mattigames1 reply#
Some people like their personal full-programs inside a single-file, I think the appeal is that after opening you only have to keep scrolling to continue reading the other "files", or that if you need to attach it to an email or something similar you are sure it has no dependency on other files, but yeah the trade-off is not worth it.
devoutsalsa#
And keeping it one file means you're reducing risk of a breaking change in the external script.
keepamovin#
Can we figure out a way to throw an exec into the shebang so the Docker process replaces the bash One?
teknopaul#
Simple file based solution. That's not abuse that's unix.

Well; thats Unix before Pottering and Microsoft.

Load more comments