Re:Functional Pearl 1 – The Min Missing Natural Number
by xyzzyz on Thursday February 12, 2015 @05:32PM
(#9041825)
The "responsive design" of this website uses two columns for web content when viewport is wide enough. This is supremely bad UX. Not only it is totally unexpected, as nobody on the web does it, it is also quite frustrating, as it forces you to scroll up to read second column.
I really hate it when people do that. This looks good in print, but the print is different medium with different constraints. Web is not print.
Re:Functional Pearl 1 – The Min Missing Natural Number
by smoyer on Thursday February 12, 2015 @06:46PM
(#9042100)
You beat me to it ... if someone asks you for the complexity of a problem in Big-O notation, I'll always answer with the worst case.
I suppose answering with the average performance is useful if the routine is going to run a lot, but you'd better be careful even with that ... if the worst case is orders of magnitude bigger than the average, it may still matter.
I really hate it when people do that. This looks good in print, but the print is different medium with different constraints. Web is not print.
if your first X is the max, and your second choice is X-1, and so forth (in the worst case), then you're not operating in O(n), but n^2
I suppose answering with the average performance is useful if the routine is going to run a lot, but you'd better be careful even with that ... if the worst case is orders of magnitude bigger than the average, it may still matter.