Too cool not to share - Easy config

Discussion in 'Resources' started by md_5, Jun 17, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Sagacious_Zed Bukkit Docs

    Bukkit is already dependent on apache commons-lang 2.3 and google guava 10.0.1
     
    Acrobot likes this.
  2. Offline

    md_5

    Good point. I still maintain the point about blowing up on more complex configs and being incredibly inefficient though.
     
  3. Offline

    Icyene

    md_5

    I swear I clicked 'Post Reply' 6 hours ago.

    As Sagacious_Zed already mentioned, Bukkit comes with Apache and Guava, and since it does make the code neater/smaller (maybe even more efficient!) I decided to use it. Sure, it would be trivial to rewrite it to not use it, but why reinvent the square wheel?

    True, it is somewhat inefficient, but configs are loaded so rarely that a couple milliseconds don't matter too much.

    Would you perhaps provide an example of a config it would fail on? It worked fine for my purposes, but I would be more than happy to make it work for all files :)
     
  4. Offline

    md_5

    Can't remember your exact yaml parsing, but it would fail on serialized objects, probably those with keys containing : or maybe
    Code:
    'blah:blah': 'ip:port'
    Uh probably more. Good work anyway, I'll put my work I have so far on github.
     
  5. Offline

    KeybordPiano459

    lol md_5 did you mean ip : port? It came out as a face :p xD
     
  6. Offline

    md_5

    Yeah those emoticons are annoying and I can't always be bothered with script tags (or don't check my posts are posting)
     
Thread Status:
Not open for further replies.

Share This Page