BatAlgorithm icon indicating copy to clipboard operation
BatAlgorithm copied to clipboard

Possibly one of the worst python code I have seen in my life

Open Pipe-Runner opened this issue 1 year ago • 1 comments

  • Poorly commented code
  • Awful code, can't stress this enough. Really awful code.
  • Horribly inefficient because of the use of for loops even though numpy has been imported. But numpy has only been used for random number generation. 🤦🏼

Pipe-Runner avatar Nov 05 '22 01:11 Pipe-Runner

@Pipe-Runner, thank you very much for your critics. Critics are always significant since they contribute to a better product or process. Since this piece of code was just more or less a translation of the BA algorithm from Matlab, to have it for comparisons (no major update since its creation back in 2015), I am not interested in undertaking work and making any specific changes. Anyway, the BA has also been included in the NiaPy framework, and I hope you will have a better first insight when watching a code: Link.

To maintain a spirit of open-source software development, I expect you to incorporate your fixes into this source code to make this code more beautiful, more efficient, and more commented. Thank you for your time.

firefly-cpp avatar Nov 05 '22 18:11 firefly-cpp