Glavin001 / PeakProgrammer

Mastering coding precision with fine-tuned reinforcement learning
MIT License
0 stars 0 forks source link

Penalize assignments to parameters #18

Open Glavin001 opened 1 year ago

Glavin001 commented 1 year ago

See https://refactoring.guru/remove-assignments-to-parameters

Given:

def discount(inputVal, quantity):
    if quantity > 50:
        inputVal -= 2

The sequence inputVal -= should be penalized.