Site icon Random Thoughts

Programmers are lazy

*clicks “Show more”*

*throws laptop out window*

But seriously, adding an “if” statement there to not do the “Show more” if there’s nothing more to show should be something you’d do reflexively, but few programmers do — perhaps because this situation wasn’t in the data set they were programming against (which is why using the stuff you’re implementing is always important), or perhaps they were on a schedule.

Or perhaps they just didn’t care.

It’s even more annoying when you’re paging through things, and the web page is displaying (say) 100 items per page. You hit “next”, and then there’s a single thing on the last page? C’mon. You could have done a check for “less than 10% extra on next page?; just include them on this page”.

Counting is something computers do very well.

This has been my campaign manifesto for 2024.

Exit mobile version