WoW addon with modern language and design patterns
View Single Post
11-07-18, 07:16 PM
A Scalebane Royal Guard
Join Date: Mar 2015
OOP constructs are built into the utilities in the UI code, and are heavily used in modern UI code. As someone who maintains a project with more than 30k lines of code, I just want to say I wouldn't use this. It's introducing a lot of constraints that Lua doesn't have natively. Lua's quirks and dynamic typing are sometimes useful to solve certain problems.
I understand where you're coming from, though. A lot of my older code is rather bad, and could've benefited massively from writing templates to inherit from, rather than building from scratch for somewhat similar scenarios. A novice programmer is also likely to introduce bugs due to dynamic typing. If you're committed to finishing this project out of passion, by all means go ahead. Just don't expect it to be a popular way to write addons.
View Public Profile
Send a private message to MunkDev
Visit MunkDev's homepage!
Find More Posts by MunkDev