Difference between revisions of "Talk:Formspec json"
Jump to navigation
Jump to search
m (changed diction or syntax or something like that) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | ==== Readability ==== | ||
I know formspec isn't perfect for sure ... but imho this simple example already shows WHY NOT use json for formspecs ... there's no chance to actually read that code. You always have to decode that non saying json character string. (sapier) | I know formspec isn't perfect for sure ... but imho this simple example already shows WHY NOT use json for formspecs ... there's no chance to actually read that code. You always have to decode that non saying json character string. (sapier) | ||
+ | |||
+ | * I have changed the display of the page and slightly altered the format. It is now a lot easier to read, does this seem better? (ShadowNinja) | ||
+ | |||
+ | == Lua instead of JSON == | ||
+ | |||
+ | Wouldn't it make more sense to use Lua syntax instead of JSON = JavaScript = yucky unreadable colons? Not like this game uses Lua or anything, and not like Lua was originally created to be a configuration language... It can still be text - it doesn't have to be a lua table - just not JSON. | ||
+ | [[User:Electrodude512|Electrodude512]] ([[User talk:Electrodude512|talk]]) 05:06, 23 September 2014 (MSK) |
Latest revision as of 01:07, 23 September 2014
Readability
I know formspec isn't perfect for sure ... but imho this simple example already shows WHY NOT use json for formspecs ... there's no chance to actually read that code. You always have to decode that non saying json character string. (sapier)
- I have changed the display of the page and slightly altered the format. It is now a lot easier to read, does this seem better? (ShadowNinja)
Lua instead of JSON
Wouldn't it make more sense to use Lua syntax instead of JSON = JavaScript = yucky unreadable colons? Not like this game uses Lua or anything, and not like Lua was originally created to be a configuration language... It can still be text - it doesn't have to be a lua table - just not JSON. Electrodude512 (talk) 05:06, 23 September 2014 (MSK)