Thank you! I just looking for getting programming skills alongside of gamedev. But gamedev is first for me. I did find info that Lua isn’t popular in commerce (outside of gamedev). However, I did find some popular Lua projects on GitHub and got an interest: “What can I do with Lua?”
Also, defold-kinematic-walker extention was written in Lua without C/C++. In couse of it, I decided that I need good understanding of Lua. Also I bought paper book from Lua developer (unfortunetly only 2006 year of publishing was available in my region).
In conclusion, I think, I was doing in incorrect order. Firstly I need to learn Defold manuals and practice at basic things.
I’ll admit most of my defold problems are with my own code. As the code complexity grows, there’s no avoiding that the developer makes more mistakes in lua than strongly typed languages.
I love the built in editor for lua, but the worst part of defold dev remains the fact that I make a lot of typos as I go and these things would normally be caught as I type them in other languages.
I’d rather not use a non-lua language like haxe or typescript just to solve the native problems of lua, so if you have some advice for people using lua, please do share!
For me, I got less mistakes in untyped languages than in typed. It’s because the untyped languages are flexible, I don’t need to declare its type but through its value I know exactly its current type. I feel more comfortable when writing code in lua, js than others
What typo won’t give you an error? Can you be more specific?
If you installed a good linter plugin, it will highlight the typos for you.
In Defold Editor, we have Linting and Code Navigation in the code editor (you may already known)
I tried Neovim NVchad and LunarVim distros. It is just a brain explosion, far beyond of gamedev necessities. At Lua forum in Reddit expirienced users recomend VScode. However, Notepad++ and ZeroBrane also support Lua. (I just looked something for diving myself in Lua).