3 ms·
Colour me impressed. I thought you needed fancy (relatively) modern stuff like Ruby for decent in-language DSLs, but clearly Bash can do the trick, too. I wond
by skrebbel 15y ago
Colour me impressed. I thought you needed fancy (relatively) modern stuff like Ruby for decent in-language DSLs, but clearly Bash can do the trick, too.
I wonder how decent a programming language you could turn bash into using tricks like these.
- laughinghan 15y agoYou can in fact write a web framework for Bash using tricks like these: Bash on Balls has a HTTP parser and router, a model layer that implements OO similarly to this, even a templating language, esh http://news.ycombinator.com/item?id=2781019 http://news.ycombinator.com/item?id=2781019
- niklasl 15y agoAnd if you're stuck in the Microsoft ecosystem there is DOS on Dope: http://secretgeek.net/dod_intro.asp http://secretgeek.net/dod_intro.asp