Lesson 14To go further, some code practices
- Notion 86 - Introduction to eco web design code practices with The Good Manager project
- Notion 87 - Clean code for energy efficiency
- Notion 88 - Asynchronous code: do more, in less time
- Notion 89 - More efficient and less resource-intensive servers
- Notion 90 - Manage your server workload
- Notion 91 - Using external libraries: the example of Bootstrap CDNs
- Notion 92 - Code practices review
Notion 92
Code practices review
Target skills
Review the notion and test your knowledge regarding code good practices.
What kind of benefits does Gatsby offer?
Good job!
Gatsby is a static site generator with embedded functions for image optimization
True or False? User tracking has an ecological impact.
Good job!
User tracking consumes resources for data collection and analysis.
What is NOT part of clean code principles?
Good job!
Clean code is aimed at developers (easy to read and maintain, and avoiding complex functions), and with optimization in mind. It is not meant to be Exhaustive by default.
Which element is NOT available as an external library?
Good job!
JavaScript is supported by default by web browser, it is not part of an external library. Some JavaScript libraries, such as jQuery, can add additional features to default JavaScript.
How a CDN can help lower carbon emission?
Good job!
A CDN is a network of servers to deliver web content. It acts as an intermediate before your own server, so requests are sent to this CDN instead of to your main server. It helps mitigate DDos attacks and its localisation can be closer to your visitor than your actual server, which reduces the network load. It has cache and gzip options (see above), and can provide other features such as minification (another file compression than gzip).