1. Greener logic
In GreenCoding, every decision matters. Even a single optimisation could make an impact when combined with many others. We see four important areas for greener logic:
• Benefit-driven visual content. Giving users what they want, faster, improves customer
satisfaction as well as saving time and energy.
• Zero-waste code. Remove dead code using tree-shaking engines and allocate size or
performance budgets for developers.
• Low-footprint resources. Choose simpler file formats, efficient APIs and optimised image
packaging.
• Frequency of use and proximity. Progressive web applications (PWAs) and content delivery
networks (CDNs) can handle content expiration and reducing the physical distance between
server and user.
2. Greener methodology
• Rapid feedback, better decisions. Agile and Lean methods can make it easier to adapt software
for efficiency, while continuous integration and continuous delivery make it possible to visualise
each development decision’s impact.
• Reusable output. At the heart of sustainable software development is ensuring that the results of
GreenCoding projects are widely available, within and even beyond organisations
3. Greener platform
For optimum energy efficiency, the infrastructure that code runs on is as important as the code itself.
• Optimal utilisation. Low utilisation is typically the result of overestimation during the planning
stage and can result in systems that are much larger than they need to be
• Precise configuration. Looking into configuration options may reveal inefficiencies, for example
HTTP2 or gzip compression settings that were never enabled.
• Holistic metrics. As well as the energy demands of servers, metrics should extend to include
“hidden” infrastructure such as personal devices.