News for hackers. Stuff that matters.
Re:Minify and Gzip (2022) by foobarbecue on Monday July 17, 2023 @08:53AM (#36757665)
I see this type of reasoning a lot and it feels like it should have its own named fallacy. A tiny percent savings on a huge cost is a moderately big number, yes.

The problem here is that you've switched from proportional thinking to arithmetic thinking in the middle of the thought.

In most cases, if you started with proportional thinking, you should stick to it.

Example of the fallacy: 0.1% of my salary goes to avocado toast, which might not seem that much, but over ten years, that's a thousand dollars!

The fallacy here lies in the fact that a thousand dollars is insignificant over 10 years, but the statement makes it feel significant by switching from proportional to absolute.

"The avocado toast fallacy"?

Re:Minify and Gzip (2022) by fiprofessor on Monday July 17, 2023 @10:03AM (#36758373)
Yes, but sometimes switching to arithmetic/absolute thinking is the right thing to do.

For example, suppose an engineer who is paid $200k per year can spend a week to implement an optimization that reduces costs by 0.1%. If that is 0.1% of something that costs $50 million per year, then that's not a bad use of time.

Re:Minify and Gzip (2022) by distcs on Monday July 17, 2023 @10:58AM (#36759067)
> For example, suppose an engineer who is paid $200k per year can spend a week to implement an optimization that reduces costs by 0.1%. If that is 0.1% of something that costs $50 million per year, then that's not a bad use of time.

Is it not? I don't know. I don't run a multi-million dollar business. So this is an honest question. 0.1% of $50 million is a meagre $50000. If someone is running a business that is spending $50 million per year on something, are they really going to care about a small $50k saving per yera?

Re:Minify and Gzip (2022) by fiprofessor on Monday July 17, 2023 @11:36AM (#36759504)
Well, it's not worth it to bring this optimization to the attention of the CEO. But it definitely exceeds the engineer's weekly cost by a lot, so if it only takes a week, it's potentially worth it (modulo opportunity costs for other things to work on).

Spin it around: is it worth it for a sales person who makes $200k per year to spend a week to land a $50,000 per year contract? I think it potentially is, for the same reason, even if the organization as whole makes hundreds of millions of dollars a year.

Re:Minify and Gzip (2022) by thomastjeffery on Monday July 17, 2023 @12:48PM (#36760555)
Your example is starting with absolute arithmetic, and sticking with it. There is no change.
Re:Minify and Gzip (2022) by asah on Monday July 17, 2023 @01:05PM (#36760838)
google search engineering has entered the chat! https://www.google.com/search?q=google+41+shades+of+blue
Re:Minify and Gzip (2022) by mschuster91 on Monday July 17, 2023 @12:15PM (#36760020)
> A tiny percent savings on a huge cost is a moderately big number, yes.

The thing is, say it takes me an hour to shave off ten bytes in the final build. Value my time per hour at 200$, and the saving of that ten bytes over a year at Wikipedia scale at a thousand dollars, and even investing five times that amount into yak shaving would still be net profitable.

Re:Minify and Gzip (2022) by ilyt on Monday July 17, 2023 @12:53PM (#36760645)
It happens every single time when someone uses big time unit for shock effect