[Picon.py] Cosmetic readability changes#4338
Conversation
Better shows the order of selection
|
More AI code. |
|
May be so, but I don't think improving readability is AI slop. Or is there more in this PR than just improving readability? |
|
Does it improve readability. As I see it it adds a lot of bulk for no good reason. This is the exact opposite type of code that Littlesat likes. The current code uses simple oneliners where this adds intermediate variables to the namespace. To me that makes this commit do the opposite of what the title suggests. It actually makes it harder to read. Adds 20 lines of unnecessary code. Increase the file length by 20%. But you do what you think best, but certainly will not be added to our repo. |
|
And by the way it changes the logic, so is going to break stuff. |
|
It was a question, not a statement, as you know I'm not very proficient in Python. but if it changes the logic, than that's a big NO in my book. |
|
It removes this commit: OpenViX/enigma2@ebe467d |
|
@littlesat close? |
|
The commit above was important. @DimitarCC found several cases where the original algorithm failed without it. |
|
The order of the search logic is still: The change was submitted to make it more readable as to the order in which the picons are selected. Somoene has consistently criticised Littlesat's one liners that remove readability. It is a bit rich to start using Littlesat's approach as a basis to obstruct changes. |
|
The history of the changes prior to this commit that allegedly broken is here: If someone wants to make the changes in a better way, please do. The file currently is not human readable. |
And that order changes the logic of the original. Which is what happens when AI plays with code. |
|
I deliberately had the utf8snp names to be together in the file and snp names to be together. So there is a slight change in order. They are now in the the order in which I understood them to be. This minor order issue highlights the fact that the search order was never readable nor was it documented correctly. From: To: |
And that order is wrong which @DimitarCC discovered 2 years ago during extensive testing. |
|
That order is correct to me. If I am using utf8 names, why would I want it to be interjected by SNP. I have closed the pull request, you can stop making things up. |
|
Doing the picons by service name was always a bad idea. Therefor I also refuse it for a longer time. The only method that is correct and unique for now is by reference. To do it really right we need a good re-design or go for reference only. |
Better shows the order of selection