2,833 karma · joined Sep 25, 2012 (14y ago) · 816 submissions
comment 4d ago · link · parent
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
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
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
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
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
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
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
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
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
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 5mo ago · link · parent
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.