w0rthy / ArrayVisualizer

Sorting Visualizer with 6 different views and 14 included sorting algorithms
MIT License
521 stars 123 forks source link

Add support for arbitrary sorting algorithms via reflection or inheritance #1

Closed starwarswii closed 6 years ago

starwarswii commented 6 years ago

Allow for someone to create another file and have the program automatically recognise and add the sorting algorithm.

This could be done with an interface or abstract algorithm class, or even using carefully designed class files and reflection.

This would allow for the removal of the hard coded switch statements in main and make the code more flexible.

w0rthy commented 6 years ago

The code is really old (most of it is from ~2014 as a high school project) and I've just sloppily patched things onto it every now and then. At this point I don't have the dedication to this project anymore to do much more then add visualizations and algorithms infrequently.