Page 1 of 1

stress [dev]

Posted: Sat Mar 02, 2013 11:53
by xyz
stress is a jQuery-like library for Minetest. More info/documentation here.
Experimental implementation
Some examples (working ones):

Code: Select all

_("default:dirt"):on("place", function(me)
    me:name("default:dirt_with_grass")
end)

Code: Select all

_({0, 0, 0}, {1, 1, 1}):name("air")
Also see an example mod.

To use stress in your mods just depend on it — add

Code: Select all

stress
to depends.txt

Try not to distribute stress with your mods, instead, link to my github repo.

Posted: Sat Mar 02, 2013 12:13
by 4aiman
Great job, xyz! Can be handy to shrink mods.
But is that really necessary? I mean, modders community grew so large, 'cause of Lua being easy to learn. This *stress certainly makes it harder to read any code therefore stopping many peoples from learning it's features and syntax. That may result in *stress being unused by a good part of modders.
On the other hand, a converter to *stress would be great.
Anyway, that just my thoughts, no need to reply.

Posted: Sat Mar 02, 2013 12:21
by xyz
4aiman wrote:Great job, xyz! Can be handy to shrink mods.
But is that really necessary? I mean, modders community grew so large, 'cause of Lua being easy to learn. This *stress certainly makes it harder to read any code therefore stopping many peoples from learning it's features and syntax. That may result in *stress being unused by a good part of modders.
On the other hand, a converter to *stress would be great.
Anyway, that just my thoughts, no need to reply.
I was actually trying to make the syntax more simple than bare lua API. Well, it seems I failed at that.

Posted: Sat Mar 02, 2013 12:52
by 4aiman
It is simpler but just not for all. Please, keep working on this!