Could “vibe coding” thanks to AI be green? 

{"content":{"rendered":"\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t

Accueil<\/a><\/span><\/span><\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n\t\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\&quot;Illustration\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\&quot;\&quot;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\n\t\t\t\t

Olivier Philippot<\/h2>\t\t\t\t

Software Ecodesign Expert<\/h3>\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<\/path><\/svg>\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t<\/a>\n\t\t\t\t\t<\/div>\n\t\t\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\u00a0<\/div>\n<\/div>\n\n\n\n\n

It’s now very easy to generate code using AI, and this is the direction the digital industry seems to be heading in. The promise is indeed enticing in terms of efficiency.<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n

Un terme est repr\u00e9sentatif de ce ph\u00e9nom\u00e8ne, le \u201cvibe coding\u201d, une programmation au \u201cressenti\u201d qui utilise l\u2019IA.<\/span>\u00a0<\/span><\/p>\n

A term that represents this phenomenon is \u201cvibe coding,\u201d a \u201cfeeling\u201d programming that uses AI.<\/span><\/p>\n\n

We’ll call the AI we’ll be testing HAL. We’ve intentionally withheld the AI’s name so as not to target it specifically.<\/span><\/p>\n<\/div>\n\n

\u00a0<\/pre>\n<\/div>\n

\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

Act 1: Ask HAL to code a Netflix-like application<\/span><\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n

The act only takes 30 minutes to have an interface to list some videos and preload the content on hover to see a preview.<\/span><\/p>\n<\/div>\n\n

\u00a0<\/p>\n<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\&quot;Interface\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t


Of course, further implementation is necessary to achieve additional features, but this result is largely usable.<\/span><\/p>\n

I publish the app in one click.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

Act 2: Measuring the result (without talking to HAL)<\/span><\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

With my Greenspector Studio solution, I create an analysis with the URL of my published app. The tool automatically generates a test file for me (all without AI!).<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

We all have a cognitive bias about technology, an overconfidence. More specifically, Automation Bias, which \u201cis the tendency of humans to favor suggestions from automated decision-making systems and to ignore conflicting information from other sources, even when the latter is correct.\u201d<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

How to control the quality of \u201csobriety\u201d of AI production?<\/span><\/strong><\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

It is necessary to control the output of any system, even more so when it is generated automatically. This is the case for AI-generated code, but the principle can also be extended to no-code. In the case of resource consumption and performance, measurement allows this control.<\/span><\/p>\n

\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

And you, are you ready to let AI go unchecked?<\/span><\/strong><\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\n\n\n

It is easy to quickly code a solution with AI, through vibe coding or even more structured practices. In the same way, it is simple and necessary to measure the result. AI helps us, but it is necessary to control the quality obtained.<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\&quot;Ecran\t\t\t\t\t\t\t\t\t\t\t
Ecran Script GDSL pour mesure VideoFlix<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t

We can add test actions later, but as with Act 1, this is more than enough for an initial measurement. <\/span><\/p>\n


Greenspector Studio gives me a command line to run to request the measurement on a real device. We’ll then be able to measure on a recent device (Galaxy S22) and an older one (the measurement is simple, we’re not going to hold back!). <\/span><\/p>\n

\u00a0<\/p>\n

Five minutes later, we have a measurement result with the overall metrics, as well as the metrics by stage: <\/span><\/p>\n