1,874 karma · joined Jun 12, 2019 (7y ago) · 701 submissions
[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
So when you get a booster (or a breakthrough infection) your immune system kicks into gear again but now it produces a broader range of antibodies. In addition the number of antibodies produced from the booster is quantitatively much larger than from the first vaccine. So with a booster you end up with more antibodies but also a larger variety of antibodies that can recognize different features of the spike protein (including features that are consistent between variants).
That's my understand at least but I am not an immunologist.
comment 5y ago · link · parent
I would also disagree with the characterization as shitty code. The operators are actually really nice if you manage to learn them all well. It can make the code both very concise and readable. But it optimized for people who know the libraries extremely well over people who don't, which usually is not a great tradeoff for widely used libraries.
comment 5y ago · link · parent
Do you always need k8s? Of course not, but it really is getting to the point where all but the most trivial of deployments could benefit from running on k8s. Are there other ways to do it? Sure, but the complexity of using k8s has been sanded down through widespread adoption and really nice tooling.
comment 5y ago · link · parent
That said, I agree in general that this wouldn't be the main reason to use the Cluster API over Terraform.
comment 5y ago · link · parent
That's all just to say that the issue isn't FP in general, but the way FP has been implemented in beginner-unfriendly ways.
comment 5y ago · link · parent
comment 5y ago · link · parent
That said, despite the clickbait title, I think these sorts of posts make a valid point because people often do in fact take heuristics like DRY to mean "never repeat any code under any circumstances and any code repetition is per se bad."
comment 5y ago · link · parent
1. Anything running on the JVM will need a 50-500ms of startup time.
2. The JVM implementation will not reach max performance until the runtime has optimized and JIT'd the relevant code paths.
3. There is memory overhead of the VM itself so your runtime will (all else equal) probably require more memory.
If you do need to use Graal to generate native images though it can actually be quite nice. You can run locally (or in benchmarking environments) on the VM and get all the tooling and metrics that come along with that, but build a native binary to actually deploy. I agree that it can be kind of a pain though.
comment 5y ago · link · parent
comment 5y ago · link · parent
case class Address(street: String, city: String, state, String) case class User(id: Int, name: String, address: Option[Address])
def filterCAUsers(users: List[User]): List[User] = users.filter(_.address.exists(_.state != "CA"))
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
One thing I've become painfully aware of recently is how all MFA is rendered pretty insecure by various "fallback" processes. I recently switch jobs and realized I had a few accounts using my old work phone as SMS 2fa number. In every case it was ridiculously easy to call a CSR and get 2fa disabled from their end.
comment 5y ago · link · parent
The other issue is that you ultimately need some sort of fallback mechanism if someone loses their keys. And it will happen. So you still end up with a process that can be socially engineered, which is generally the weak link in any authentication system.
comment 5y ago · link · parent
From the maintainer side it can be a bit tricky though. Typically the finance will want to pay another corporation, so the maintainer would need to create some sort of legal entity to bill with. The other potential issues would be around legal liability in case something goes sideways. You run the risk of getting sued if you don't provide a level of support that some corporate client is expecting.