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 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<\/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 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 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 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 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 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 We can add test actions later, but as with Act 1, this is more than enough for an initial measurement. <\/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 \u00a0<\/p>\n It’s not horrible, but it’s at the state-of-the-art level for 2025 development. We want an optimized version, a state-of-the-art 2030 version with an environmental trajectory of -3\u00b0C!<\/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 A little informal prompt for optimization (HAL is a machine, it must know how to optimize another machine!). She must have been a little distracted the first time not to have done it immediately.<\/span><\/p>\n \u00a0<\/p>\n Me: \u00ab\u00a0Could you optimize this solution (reducing images, lazy loading, etc.)? Could you also try reducing the size of the JS and CSS files?\u00a0\u00bb <\/em><\/span><\/p>\n \u00a0<\/p>\n Hal: \u00ab\u00a0I’m going to optimize the page for better performance by implementing lazy loading, optimizing images, and reducing the size of the JS\/CSS bundle. Here’s the improved version:\u00a0\u00bb<\/span><\/p>\n \u00a0<\/p>\n \u00a0<\/p>\n\n\u00a0<\/div>\n<\/div>\n\n\n\n\n Reduced bundle size: <\/span><\/p>\n These changes should speed up page loading, use less memory, and provide a smoother experience, especially on slower connections or devices. Would you like me to make additional optimizations or focus on a specific performance aspect? <\/span><\/p>\n \u00a0<\/p>\n Wow! HAL is super good. He applies the best of the best performance and sobriety optimizations in 1 minute flat, more efficiently than a development team. Bravo! <\/em><\/span><\/p>\n \u00a0<\/p>\n One click and it’s deployed again.<\/span><\/p>\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 We run the same commands as for Act 2, just modifying the version so we can compare the results. <\/span><\/p>\n Five minutes later, we have the results. <\/span><\/p>\n \u00a0<\/p>\n Hmm, ….same score, same metric… the human (me) must have made a mistake. I redeploy, I relaunch… 5 minutes later, same result.<\/em> <\/span><\/p>\n \u00a0<\/p>\n Wouldn’t the optimized version be optimized?<\/span><\/strong><\/em><\/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 \u201cAre you sure because I don’t see anything when I measure resource consumption and performance…?\u201d <\/span><\/em><\/p>\n \u00a0<\/p>\n HAL: Ah, you’re right to point that out. I’m going to make more concrete and measurable optimizations. Here are the actual changes that will have a significant impact: <\/span><\/p>\n \u00a0<\/p>\n (…) Many more optimizations <\/span><\/p>\n These changes should now have a measurable impact on: <\/span><\/p>\n \u00a0<\/p>\n You can check the improvements in the developer tools: <\/span><\/p>\n \u00a0<\/p>\n Would you like me to show you how to measure these improvements specifically?<\/span><\/p>\n \u00a0<\/p>\n No thanks, HAL, I know how to do it, each to their own!<\/em><\/span><\/p>\n \u00a0<\/p>\n The new solution is deployed.<\/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 New version in Greenspector Studio, new measurement.<\/span><\/p>\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\t\t\t Ecocore increased from 44 to 47, mainly due to the reduction of data on the inactive page (once the page has loaded). We are not sure to be in <\/span>2030…<\/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 The AI confidently tells us that it has made optimizations. We have verified that this is not the case. Is it lying then? <\/span><\/p>\n \u00a0<\/p>\n No, it is probably a hallucination. These hallucinations are incorrect or misleading results generated by the AI. This phenomenon is recurrent in AI.<\/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 No, HAL is just a machine that learned to code using codes written by humans (code from 2025, but also much older ones). And this code, as everyone knows (maybe not?), is not always sober\/efficient.<\/span><\/p>\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 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>\n (<\/span>https:\/\/fr.wikipedia.org\/wiki\/Biais_d%27automatisation<\/span><\/a>).\u00a0<\/span>\u00a0<\/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 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>\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’s easy to quickly code a solution with AI, through vibe coding or even more structured practices. Similarly, and as I’ve shown you, it’s simple and necessary to measure the result.<\/span><\/p>\n AI helps us, but it’s 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\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\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
\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
\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\tOlivier 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
\u00a0<\/pre>\n<\/div>\n
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
\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>\nAct 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
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
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
\t\t\t\t\t\t\t\t\t\t\t
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\n
Act 3: Ask HAL to be less resource-intensive (politely)<\/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
\n
Act 4: Remeasurement of the Result!<\/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
Act 5: Ask HAL if there is a mistake<\/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
\n
\n
Act 6: We measure again, we are never sure enough<\/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
\t\t\t\t\t\t\t\t\t\t\tOutcome<\/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
Does AI lie?<\/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
Is HAL a \u201cbad\u201d coding machine?<\/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
Why is this observation about the non-optimization of the solution surprising?<\/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
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
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
Take the test and send us your findings, you have 15 days of free trial on Greenspector Studio!<\/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\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tClick here<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\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\t\t<\/div>\n\t\t","protected":false},"yoast_head_json":{"title":"Greenspector","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"fr_FR","og_type":"website","og_site_name":"Greenspector","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/blog.greenspector.com\/#website","url":"https:\/\/blog.greenspector.com\/","name":"Greenspector","description":"","publisher":{"@id":"https:\/\/blog.greenspector.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.greenspector.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/blog.greenspector.com\/#organization","name":"Greenspector","url":"https:\/\/blog.greenspector.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/blog.greenspector.com\/#\/schema\/logo\/image\/","url":"","contentUrl":"","caption":"Greenspector"},"image":{"@id":"https:\/\/blog.greenspector.com\/#\/schema\/logo\/image\/"}}]}}}
Blog
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