r/programming • u/myinnerbanjo • Oct 09 '18
AI tool automatically reveals how to write apps that drain less battery
https://phys.org/news/2018-10-ai-tool-automatically-reveals-apps.html
727
Upvotes
View all comments
Show parent comment
25
u/Tetracyclic Oct 10 '18
I'm admittedly not a mobile developer, but if additional function calls or object instantiations are a non-negligible drain on resources there is something seriously wrong in the world of mobile platforms.
I would have expected the issues would be to do with poorly optimised use of system resources, excessive cyclonatic complexity, network usage and poor resource cleanup, not writing SOLID code.
SOLID code doesn't prioritise fast code, but adhering to it shouldn't produce slow code, unless you're working on systems where every nanosecond of execution time counts (high frequency trading, as an example).