Skip to content

GCI99 OptimizeSquareComputation #Python #DLG #RulesSpecifications - #383

Merged
dedece35 merged 4 commits into
green-code-initiative:mainfrom
cleophass:OptimizeSquareComputation
Jul 8, 2025
Merged

GCI99 OptimizeSquareComputation #Python #DLG #RulesSpecifications#383
dedece35 merged 4 commits into
green-code-initiative:mainfrom
cleophass:OptimizeSquareComputation

Conversation

@cleophass

Copy link
Copy Markdown
Contributor
  1. Rule specifcations for GCI99 OptimizeSquareComputation
  2. Definition Of Done checked ✅
  3. Directly put GCI99 because it's absent from Rules.md
  4. (This rule may be apply to other language)

Co-authored-by: DataLabGroupe-CreditAgricole <GITHUB.DATALABGROUPE@CREDIT-AGRICOLE-SA.FR>
Co-authored-by: DataLabGroupe-CreditAgricole <GITHUB.DATALABGROUPE@CREDIT-AGRICOLE-SA.FR>

@dedece35 dedece35 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this rule also useable for x**3 and so on ?

@cleophass

cleophass commented Jul 7, 2025

Copy link
Copy Markdown
Contributor Author

is this rule also useable for x**3 and so on ?

@dedece35 yes, but I think that for a developer, in terms of readability, we can stop at x**2 because for a power of 4, for example, writing xxx*x in the code isn't necessarily compliant.

Co-authored-by: DataLabGroupe-CreditAgricole <GITHUB.DATALABGROUPE@CREDIT-AGRICOLE-SA.FR>
dedece35
dedece35 previously approved these changes Jul 8, 2025
@dedece35
dedece35 merged commit 76a266b into green-code-initiative:main Jul 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants