I mean, it's cool to have it store arrays and such in different format. But what if array magically becomes a string? I can't handle so many exception there. Or, I can, but I am lazy...

The configuration of huggle is meant to be edited by humans. And JSON is stable only until someone manually start changing it. One removed quote, and whole config file is broken.


On Sat, Jan 26, 2013 at 9:02 AM, Petr Bena <benapetr@gmail.com> wrote:
JSON is evil. I am already parsing it with another c# application. It's terrible, see yourlsef: https://github.com/benapetr/wikimedia-bot/blob/master/plugins/labs/labs/labs/Class1.cs#L218

maybe it's good for java, I don't know, but it seems to me like a good language for serialized data, not for configuration which is different in every version


On Sat, Jan 26, 2013 at 3:11 AM, Krinkle <krinklemail@gmail.com> wrote:
Yeah, I'd prefer JSON as well.

* Easier to read/edit
* Better support for different value types (arrays, booleans, strings, numbers)

Or a simplified form of JSON, YAML, which also supports inline comments
(or strip comments from the JSON before parsing, like for .jshintrc in JSHint).

-- Krinkle


On Tue, Jan 22, 2013 at 9:57 AM, Platonides <platonides@gmail.com> wrote:
On 22/01/13 15:08, Petr Bena wrote:
> huggle_xml.css

It's quite odd to store a xml with a css extension, and the wiki doesn't
support good editing of xml either.

Why not use JSON, storing it on huggle.js?

_______________________________________________
Huggle mailing list
Huggle@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/huggle


_______________________________________________
Huggle mailing list
Huggle@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/huggle