What tools do you use to develop modules?
Posted: Sun Jun 09, 2019 7:11 am
I spent the last weeks and months digging into Lua, the t-engine and module development. After all this time I think I finally get the hang of it. Personally I think that an engine mostly coded in Lua is in theory quite flexible and easy to extent but also really hard to learn.
As a newbie I often have to face some difficult questions when looking at the engine. For example:
1. Where does this variable come from?
Since you can define, add and delete variables basically anywhere in Lua I find it really hard to figure out what variables a function expects. There are some nice comments that explain basic function parameters but as soon as a parameter contains a table it basically is a guessing game which variables have to be in the table.
2. Where does this function come from?
Basically the same problem but with the increased difficulty of interfaces and class inheritance. I often have to search through several classes, interfaces and files to find the right function that I am looking for.
This topic is not meant as a complaint. It think these are the problems you have to face when using a language like Lua but it makes me wonder if there are suitable tools that are helpful. So, my basic questions is: what kind of tools, if any, do you use to understand class hierarchies or expected table variables better? I am currently using a plain text editor and "grep" to search for strings but I think I could do better.
As a newbie I often have to face some difficult questions when looking at the engine. For example:
1. Where does this variable come from?
Since you can define, add and delete variables basically anywhere in Lua I find it really hard to figure out what variables a function expects. There are some nice comments that explain basic function parameters but as soon as a parameter contains a table it basically is a guessing game which variables have to be in the table.
2. Where does this function come from?
Basically the same problem but with the increased difficulty of interfaces and class inheritance. I often have to search through several classes, interfaces and files to find the right function that I am looking for.
This topic is not meant as a complaint. It think these are the problems you have to face when using a language like Lua but it makes me wonder if there are suitable tools that are helpful. So, my basic questions is: what kind of tools, if any, do you use to understand class hierarchies or expected table variables better? I am currently using a plain text editor and "grep" to search for strings but I think I could do better.