DEV Community

Discussion on: How do you order your functions?

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

I've gotten used to structuring my code files so that helper functions go at the top and library functions then go at the bottom. Since I mostly code Lua, I can call any library function from any other, but with helper functions I don't really mind structuring them so the most low-level ones go on top.