Hacker Newsnew | past | comments | ask | show | jobs | submit | integrale's favoriteslogin

Don't put Cloudflare in front of a Cloud egress bill. i.e. don't do this: Azure|Amazon > Cloudflare

Always use your own proxy where the egress is well within your free tier, i.e. do this: Azure|Amazon > Hetzner|Linode > Cloudflare

Why?

Because Cloudflare cache is a massively multi-tenant LRU cache and whilst hot files will be cached well (and with Cloudflare Tiered Cache even better - but this itself is a cost) anything else is still going to expose you to some degree of egress cost.

When I exposed AWS to the web I paid $3k per month to AWS. With Cloudflare in front of AWS I paid $300 per month to AWS. With Linode in front of AWS and behind Cloudflare I paid $20 per month to Linode and about $12 per month to AWS.

A Linode, Hetzner instance... or any other dumb cheap web server that comes with a healthy free tier of bandwidth is all you need to set up a simple nginx reverse proxy and have it cache things to disk https://docs.nginx.com/nginx/admin-guide/content-cache/conte...


Imagine an asteroid would be on trajectory to collide with earth in (say) 2025.

Possible order of hypothetical events:

1. Scientist discover the asteroid. Calculate risk of collision.

2. Asteroid comes closer, probability of impact is calculated as high.

3. People will start saying that we cannot let our economy be controlled by the specter of an asteroid.

4. The asteroid becomes visible. You can see it with your bare eyes.

5. Still people start claiming it's fake news: The scientists are lying, it's a great conspiracy, it's all just to control us all.

6. Destroying or diverting the asteroid is estimated to be so expensive that it will change our way of life.

7. Anti-Asteroid-Action demonstrations would start all over the planet, to protest any expensive actions against the asteroid.

8. News outlets will be asked to be keep the bias out of their reporting, because they would support "asteroid believers".

9. Countries will create treaties to stop the impact by 2030, or perhaps delay it to 2040.

10. Scientists report new data. Impact is certain. Models about consequences are increasingly accurate and dire.

11. These scientists are labeled as alarmists.

12. The rich countries refuse to take the financial burden, because they feel it's unfair.

13. Impact is now a few weeks away. Nothing happened. Nobody did anything.

Update: Layout and spelling.


> Good work can be judged by good managers, and rewarded, without anyone having to play bureaucratic games.

I lost hope this is possible. Even as a non-manager architect, I struggle to see good work if it's not made visible.

Fortunately, making good work visible takes little effort from the doer: take "before" and "after" screenshots; update the docs; if you improved performance, leave some plots behind; talk about your work and the benefits it brings.

All in all, if you are a software engineer, stop treating yourself as a code monkey and start treating yourself as a problem solver. You don't hear plumpers showing their hammer, they show the pipe stopped leaking. Same with software, stop showing code and start showing their effects.


Taxing corporations is one of those things that seems pretty obvious until you really dig into the details, at which point you end up with some uncomfortable conclusions. Thus there is this endless handwringing about corporations paying so little yet at the end of the day, the solutions (those that work) are quite unpopular.

Let's walk down this rabbit hole:

So you want to tax corporate profits. Well, trouble is, it's easy to hide profits. For example, interest payments are subtracted from profits, which allows investors to lend money to corporations as loans, and the interest is only taxed by the recipient, but if you lend money to the corporation by purchasing equity, that is taxed twice. This asymmetric tax treatment incentivizes taking on debt and thus financial fragility and short-term thinking. OK, you say, let's treat interest and dividends the same. Then you have this issue with massive executive compensation, which is untaxed as it is treated as an expense. You'd like for that to not be tax-exempt as well. Thus you decide to tax value add -- that is revenue net of your cost of goods. That way, you catch cheaters, since if corp A reports something as a cost (payment to B), then B better record it as a revenue. B can't hide. Except now comes the foreign sector. What if B is a foreign company? There's the rub. One option is to say the foreign company also has to pay you taxes based on what it sells to A. This would effectively put an end to all the shell company shenanigans. To be fair, you can give credit for income paid to other jurisdictions so you don't end up double-taxing (like we do), but that's minor. So now you are happy with your system. You survey the landscape and what have you accomplished? A sales tax! This is just a value added tax, or VAT, which is another form of sales tax. But sales tax is regressive! And very unpopular. So there is this problem where Americans don't want a national sales tax of, say 20%, but they do want a corporate profit tax of, say 40%. And they are really angry when they see the effective corporate tax being so low, say 5%.

This reveals a cold truth, which is that corporations are effectively pass through entities for the human owners of the corporations. So why tax them twice? Well, because we have so many tax loopholes and such large trade deficits that 40% of our corporations are owned by foreigners that don't pay US taxes and 40% are owned by pension funds and tax-advantaged retirement accounts so that only 20% of US equities are subject to any tax at all. So this thrashing around about corporations reveals yet another uncomfortable truth, which is that our massive outsourcing has resulted in an erosion of the tax base just as much as it has destroyed middle class jobs.

This brings us back to a new variant of the old trilema, which is that you can't have free flow of capital (or equivalently, trade) across borders, a floating currency, and your own interest rate policy.

You can only have two of these. Except the tax version of this is that you can't have free flow of capital (that is trade), a floating currency, and your own corporate tax policy. The best you can do is a national sales tax for goods sold to your own citizens. If you try to tax corporations, you will run into the two-headed hydra that your corporations are owned by overseas investors and that your corporations have set up overseas businesses that sell them valuable inputs, so valuable that all the value is routed overseas.

So what happens is people create a tax policy that tries to also avoid tariffs on trade and foreign capital flows, and then they are shocked when corporations arbitrage that away.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: