liveBook · Manning

Environmental impact

As explained in The Art of Code

An environmental effect is the impact that software operation has on the natural environment through resource use and associated emissions or waste.

Environmental impact measures how digital technology consumes resources and contributes to emissions, waste, and other effects across its operation and lifecycle. Software influences disk space, memory, network traffic, CPU usage, hardware demand, and electricity consumption. section 8.0 section 8.2

Assess environmental impact across several linked sources:

  • Operational consumption: computation, storage, data transfer, hardware, and electricity create ongoing costs. section 8.0
  • Embodied carbon: manufacturing, transportation, and end-of-life processing create emissions before and after device use. section 8.2.2
  • Technological obsolescence: unsupported or inefficient software can make functioning hardware unusable or inadequate. section 8.2.2
  • Efficiency: meet acceptable responsiveness with the smallest practical infrastructure, reducing both environmental impact and unnecessary cost. section 8.3

A device can carry most of its impact before use

A smartphone’s manufacturing, transport, and disposal account for roughly three-quarters of its total carbon footprint before it reaches the user. Extending its life through repair, reuse, or repurposing amortizes that embodied cost over more years. Servers show a different balance: their longer operation makes ongoing electricity consumption a larger share of impact. section 8.2.2

Figure 8.1 How sustainable coding fits with clean code and performance
figure

Relate environmental impact to clean code and performance: sustainable coding adds infrastructure and electricity usage as design concerns alongside readability and runtime behavior. section 8.3

How The Art of Code covers it

How deep it goes
Explains operational and lifecycle causes, then connects them to efficiency, but stops short of detailed measurement procedures or implementation code.
Examples
Uses smartphones, servers, digital devices, cloud services, and infrastructure resources to illustrate lifecycle and operational effects.
What it assumes
Assumes familiarity with software resources and performance, while establishing how computation connects to hardware, electricity, emissions, and waste.
What you can do after
Evaluate software decisions by balancing acceptable responsiveness against infrastructure, electricity use, device lifespan, and environmental cost.
How it connects
Connects sustainability with green software, performance, clean code, embodied carbon emissions, and technological obsolescence.

Also explained in

Compare how 3 books explain environmental impact →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Art of Code. The section links point to the parts of the book it draws on.