green-code-initiative / ecoCode-challenge

Emboard in the hackhatons serie for improving ecoCode
3 stars 4 forks source link

[WEB][DRAFT][25 meters] Value usage of Webcomponents instead of JS Frameworks #75

Closed pymilone closed 2 months ago

pymilone commented 1 year ago

Architecture: Value usage of WebComponents

Platform

OS OS version Langage
- - JS

Main caracteristics

ID Title Category Sub-category
{id} {title} {Category} {SubCategory}

Severity / Remediation Cost

Severity Remediation Cost
Low High

Rule short description

Since WebComponents are natively included in browsers, they are more lightweight than javascript frameworks.

Rule complete description

Text

Using native components is more lightweight than using libraries.

Implementation principle

Detect wether WebComponents or javascript frameworks are used and take it into account in a global score.

jhertout commented 2 months ago

Too generic in my point of view to be implemented as a rule. The idea is not bad but too much work is required at this point to create implementable rules in ecoCode. For this kind of rules, we need to be more precise.

utarwyn commented 2 months ago

Hello! In principle, I agree with the ticket statement: using a component developed as a native web component is less cumbersome than a framework component, because it doesn't embed any additional JavaScript to run the framework engine. But that's just theory. In my opinion, this rule poses the following problems and requires action:

With all these questions raised, I'm in favor of closing the ticket for the time being, pending further investigations and more precise ideas.