News for hackers. Stuff that matters.
Re:Vega: A Visualization Grammar by hliyan on Sunday September 06, 2015 @12:10AM (#10176796)
I'm sorry, I seem to be missing your point.

   [configuration files] lack expressiveness. 
   They are hard to make generic and lend themselves 
   to repetition and fragility
That's exactly what I would say about an imperative scheme, also from experience.

   I'd say that composition wins over configuration
That too, makes not sense to me.
Re:Vega: A Visualization Grammar by cjhveal on Sunday September 06, 2015 @12:26AM (#10176822)
I'd say we're in agreement w.r.t. the first point. While configuration files seem to be declarative in that they describe the properties of something rather than the steps to build it, they fall prey to many of the same issues that make imperative code inelegant.

As to the second point, the prime example I had in mind was the difference between Grunt/WebPack and gulp. Grunt encourages gigantic configuration files while gulp provides a set of primitives which can be programmatically manipulated and composed to produce the desired effect.