Re:Ruby One-Liners
by bdcravens on Friday September 13, 2019 @10:32PM
(#20968570)
In theory, couldn’t you then compile a Rails app into a one-liner? (Seems the max line length varies, but is at least hundreds of thousands of characters in most OSes)
[ Parent
| on HN ]
You could, but it would be stupid to do so if it wasn't a trivial app, since nobody wants to support something like that, even if it's lifetime is measured in minutes or hours. It's a one-liner, just a pointless one.
That said, if rails has a super simple default startup that could serve a file, then it might be useful to start that as a one liner in select circumstances.
Re:Ruby One-Liners
by vinceguidry on Saturday September 14, 2019 @07:58AM
(#20970245)
Rails has generators for that. Invaluable for greenfielding projects in an iterative manner. Blow everything away and recreate with a single command.