Better HN
topnewbestaskshowjobs
Log inSign up

jpollock

2,833 karma · joined Sep 25, 2012 (14y ago) · 816 submissions

Submissions

comment 4d ago · link · parent

It's a pretty normal failure mode in teams. The abstraction breaks because the developer doesn't know the things that drive their latency.

Is it database requests? RPCs? Is there a function call which is computationally expensive?

Teams then respond by making rules to help make slow things stand out "no RPCs in functions, no synchronous RPCs, only 1 database read per request, don't call this code in a loop", etc.

Caught before merge? Only if you have someone really familiar with all the abstractions _and_ the team's previous failures reviewing it. Otherwise, developers are always finding new ways to write slow code. :)

But, that's why we have feature flags and incremental launches.

comment 6d ago · link · parent

The cost of the code isn't why you reviewed it. The cost of the _failure_ is why you review it.

Code has always been cheap. The cost incurred by the organisation when the wrong code is run is getting pretty expensive (just ask MS).

It also helps with the bus factor and insider risk.

comment 1mo ago · link · parent

A lot of the risk is insider risk. A hacked credential, an annoyed engineer going to a competitor, etc.

Think embezzlement. Think someone with a political agenda who changes the homepage on the way out the door.

Having a single point of control is asking for trouble.

comment 1mo ago · link · parent

I wonder how much of that are foreign central banks moving their gold reserves out of the USA... France, The Netherlands and Germany have been moving gold.

https://www.bbc.com/news/articles/cvgyn8q8gqxo

comment 1mo ago · link · parent

If it's worker vs capital, I have always been compensated with capital.

comment 1mo ago · link · parent

Lots of places set the budget, and then apportion the taxes based on mark-to-market value of the properties (the mill rate is set to clear the budget).

As housing appreciates, the mill rate will decrease, leaving the tax burden unchanged.

It encourages people to participate in local elections because the budget sets the mill rate, and the council sets the budget.

comment 1mo ago · link · parent

Given that this is Canada, the first and fourth amendments don't come into the discussion.

Canada's rights are in the Charter of Rights and Freedoms, and they aren't absolute.

Part 1, Section 1.

The Canadian Charter of Rights and Freedoms guarantees the rights and freedoms set out in it subject only to such reasonable limits prescribed by law as can be demonstrably justified in a free and democratic society.

Subject to that, we get Section 2.

Everyone has the following fundamental freedoms:

(a) freedom of conscience and religion;

(b) freedom of thought, belief, opinion and expression, including freedom of the press and other media of communication;

(c) freedom of peaceful assembly; and

(d) freedom of association.

comment 1mo ago · link · parent

If 80% of the tree is in the parent list for mold, the cache hit rate would be 20% - assuming the change distribution is even, which it won’t be.

comment 1mo ago · link · parent

I loved this documentary. It really captured what I loved about this job.

comment 1mo ago · link · parent

All of the billionaires have corporations, called the "Family Office". Moving the office would be a pain point.

They have been moving both themselves and their family offices.

https://ca.finance.yahoo.com/news/google-cofounders-sergey-b...

comment 2mo ago · link · parent

It's very expensive to move the business that owns the assets, and then you need to ensure you don't become resident again.

Once the money moves, it won't come back to where it can be grabbed.

That's why the USA has exit taxes when giving up green cards and citizenship.

comment 2mo ago · link · parent

No, once you've spent the time and hassle to immigrate, moving back is unlikely.

comment 2mo ago · link · parent

Tariffs, the tariff on Chinese vehicles is 100%.

comment 2mo ago · link · parent

I'm surprised Git and/or Windows don't support symlinks?

comment 2mo ago · link · parent

"Years later the line of business asked for longitudinal reporting, cross-domain aggregation, and planning. The tool integrated with nothing, extended to nothing, had no underlying data platform, could not scale, and had to be rebuilt from scratch."

Any project that takes 2 weeks effort and lasts years (since it doesn't say how many, I read it as 3-5) delivering value is a win. That it needed to be thrown away? That's a couple of people out sick.

comment 2mo ago · link · parent

Doesn't assembly allow devs to ignore speculative execution as well?

You can place LFENCE(x86)/CSDB(arm) around code blocks, but you can do that in C too.

comment 2mo ago · link · parent

They will continue to breed, expanding territory unless there are predators. When they come across a culvert (or bridge), they will block it, eventually overtopping roads and washing them out.

comment 2mo ago · link · parent

If you can't look at the code, you need to trust interfaces to specify (and constrain) the implementation. The implementation needs to implement the entire interface and can't do anything not in the interface.

Otherwise, you're going to get bit by the Law of Leaky Abstractions.

The number of times I've been bit by systems not adhering to interfaces? Yeah, that's pretty frequent.

For example (from personal experience), the interface allows for race conditions, it's obvious they can happen (distributed systems), but the implementation didn't allow them, resulting in fun times.

comment 3mo ago · link · parent

No, it's the wafer starts that are driving prices. Switching from Nvidia to custom doesn't change the constraints.

comment 3mo ago · link · parent

I was in a high trust environment that didn't use dual auth on some things. They lost $250k to embezzlement.

High trust is high trust until someone exploits it, and the likelihood of encountering an exploit (embezzlement, fraud, political speech, etc.) approaches 100 as the total number of staff hours increase.

comment 3mo ago · link · parent

When you get into team development, doesn't it become the average? So, it's not just about your limits, it's about the team's average.

Otherwise, you're the only one who can fix your code, and becomes a whole bus factor thing.

comment 3mo ago · link · parent

I know that as Kernighan's Law. Seems to be something that seniors learn over time.

https://github.com/dwmkerr/hacker-laws#kernighans-law

"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"

comment 4mo ago · link · parent

There are also compliance reasons.

SOX requires code review by a second party. If the reviews are automated, the development process isn't in compliance and that can get expensive in a hurry.

comment 4mo ago · link · parent

It would be _extremely_ surprising if private repos were available via that contract. Corporations wouldn't use GitHub at all if anyone other than those given direct access had read/copy permission.

comment 4mo ago · link · parent

I prefer the second. :)

It's about the cognitive load and having to follow branches.

The second version minimizes the cyclomatic complexity, taking it to 1. The reader doesn't have to keep the if statement in mind when reading through the code, and doesn't have to worry about all the ways the code can get there if they want to modify it (e.g. to add logging, metrics, other logic).

Whether or not consume should be a separate function depends on how often it's called. Here, I'm guessing it's once. :)

comment 4mo ago · link · parent

I wouldn't think so. Most likely using a crass phrase to instill a feeling of urgency.

Probably didn't work. Remembered though.

comment 5mo ago · link · parent

Yes, but even then there are people who will ramp up faster.

If the company is using Common Lisp, do you have the 6-12 months to wait for them to ramp up, or do you hire someone who has done Lisp before? That is downstream from the technical decision to use Common Lisp, but it is a huge business impact.

comment 5mo ago · link · parent

The programming language can have definite business impacts. It can impact hiring, salary costs (if the skill is rare), ramp-up costs (if it needs to be taught), etc.

Even bus-factor comes into it.

12345
28