ejv2 / podbit

Podboat - Improved
GNU General Public License v3.0
26 stars 1 forks source link

Refactor list/scrolling related code into separate interface #2

Closed ejv2 closed 2 years ago

ejv2 commented 2 years ago

Don't duplicate code between the table/menu code. Instead, refactor out into centrally referenced component that can be embedded into the both of them.

Could cause issues with using between different types of data, but can be solved using generics/empty interface (I hope!)

ejv2 commented 2 years ago

Easily implemented using new generics. Wasn't a fan at first, but seem much more intuitive and clean than the documentation made them out to be.