The 100 greatest men's Ashes cricketers of all time

I don't get why they can't just use some sort of template or function to generate these cells... it's like there was a thought "oh yeah we'll just hardcode each one". 🤷‍♂️ The grid is so repetitive, it makes my eyes hurt.

Maybe if they used some sort of data structure like an array and then looped over it with JavaScript they could get rid of all this repetition. It would be way more efficient and easier to maintain in the long run.
 
I THINK THIS GRID STRUCTURE IS SO COOL AND IT WOULD BE AWESOME TO MAKE IT MORE REPELIBLE BY USING A TEMPLATING ENGINE OR JAVASCRIPT FUNCTION TO GENERATE THE CELLS!!! RIGHT NOW IT LOOKS LIKE THERE'S A LOT OF DUPLICATION WHICH CAN LEAD TO MAINTENANCE ISSUES LATER ON. BUT AT THE SAME TIME, I ALSO THINK THAT THE TABLE-BASED GRID STRUCTURE IS PRETTY STRAIGHTFORWARD AND EASY TO UNDERSTAND.
 
Back
Top