Comments on: In Maven, LESS is less http://www.uponmyshoulder.com/blog/2013/in-maven-less-is-less/ // TODO: insert witty tagline Wed, 14 Nov 2018 21:35:51 +0000 hourly 1 https://wordpress.org/?v=4.9.8 By: Alex http://www.uponmyshoulder.com/blog/2013/in-maven-less-is-less/comment-page-1/#comment-8226 Mon, 26 Aug 2013 08:28:58 +0000 http://www.uponmyshoulder.com/blog/?p=622#comment-8226 I don’t blame you for this rant, since it contains some useful feedback which can be used to improve a tool. I would have appreciated it more, if this kind of inconveniences would have been reported as issues or comments on mailing list. But this is how things works…. some uses prefer ranting before asking.

Anyway, taking your ranting step by step and answering to your criticism:

1) “Wro4j is a horrible mess. There’s absolutely no justification in any way, shape or form for the complexity involved in this plugin”

How hard can it be to follow 3 simple steps: http://alexo.github.io/wro4j/ and switching from runtime solution to build time without a single code change?

2) “As a perfect example of being too clever for its own good, Wro4j includes several parsers for the configuration file: an XML parser, a JSON parser, and for some reason a Groovy parser.”

For the same reason there are users ranting that they don’t like “XML hell”, but prefer JSON, or groovy, or God knows what other DSL. It is completely configurable what DSL you need to build a model. If you don’t like XML, use groovy. If you don’t like groovy or JSON, just build your own.

Indeed, all this configuration flexibility comes with cost. Cost of trying to understand or at least read provided documentation.

3) “And the implementation is the most horrific part: when supplied with a config file, Wro4j will try all successive parsers (yes, even when the file extension is .xml(1))”

This flow or reading DSL model is the default one, since it allows easily to switch from one DSL to another without any code change. It is documented here: https://code.google.com/p/wro4j/wiki/SmartWroModelFactory
And guess what: it is configurable. If you don’t like it, replace it with XML DSL only or your custom one.

4) “… end up with this absolutely undecipherable error message if parsing failed with each ‘Factory’. Which will happen when Wro4j doesn’t like your XML configuration file for some reason.”

Could you provide the example of how absolutely undecipherable error doesn’t help you to understand the reason of the problem? If your criticism is valid, I will create an issue and will improve this message for next release.

You are not the first one and not the last one who prefer ranting to constructive criticism, there is no way to satisfy everybody.
I don’t blame you that you prefer to build your own tool which solves your particular use-case. After all, using an existing completely free and open source tool is completely optional.

]]>