Better HN
topnewbestaskshowjobs
Log inSign up

thinkharderdev

1,874 karma · joined Jun 12, 2019 (7y ago) · 701 submissions

https://www.thinkharder.dev

[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]

Submissions

comment 6y ago · link · parent

They've been effectively replaced in academic literature at least with BCE (Before Common Era) and CE (Common Era)

comment 6y ago · link · parent

Exactly. A lot of the comments here are along the lines of "we setup a k8s cluster and now managing it is a huge burden" which is not surprising. The power of k8s is to allow separation of concerns in your technology organization. You can have a dedicated team to build and maintain the underlying cluster and then app development teams are consumers who deploy their application on the common infrastructure. Kubernetes provides a nice abstraction layer so those two teams/orgs can interact through a well-defined API. As a dev team, we can manage our own infrastructure and pipeline through declarative configurations and let someone else manage the underlying compute and network infrastructure. As long as you don't fall into the anti-pattern of "every team builds it's own k8s cluster" then you should be able to derive some nice economies of scale.

comment 6y ago · link · parent

That seems precisely wrong to me. It's not about the individual scoring some sort of "virtue points", it's about spurring change. He could certainly just quit and not tell anyone but that would sort of defeat the purpose. It's not like Facebook is really going to miss any one engineer. But if their employees start to leave en masse then they will absolutely notice and try to deal with it.

comment 6y ago · link · parent

I look at it a little differently. The point is not to make some noble sacrifice, but to actually try and create actual substantive change. I would imagine that Facebook, like all tech companies, cares A LOT about their ability to recruit and retain talent. So if their employees start resigning and talented engineers are averse to work at Facebook then that will absolutely be something that FB tries to solve.

comment 6y ago · link · parent

I guess it's semantics but I would argue that writing a LinkedIn post is what would constitute the virtue signaling. But there's nothing wrong with that. It's a signal, but a signal of actual substantive action. It's akin to putting out a press release after passing legislation. The press release is a signal but you still did the actual thing that matters.

comment 6y ago · link · parent

I don't think anyone is seriously arguing that. But it would be nice if the President of the United States would act like a grown up and when tensions are running high try and calm the situation instead of adding fuel to the fire. It is actually possible to try and deal with situations in a measured, substantive way instead of going on Twitter and making incendiary statements.

comment 6y ago · link · parent

Great. People are allowed to disagree. He should be applauded though for actually putting his money where his mouth is.

comment 6y ago · link · parent

I've really come to be annoyed with the whole "virtue signaling" debate. What this guy did is virtue signaling but he signaled virtue by actually taking substantive action at some cost to himself. In this case the signal actually represents something real. The issue with virtue signaling that is objectionable is when it is done to avoid taking meaningful action.

comment 6y ago · link · parent

It's true (or roughly true) that there isn't a reason to do layoffs unless the company deems it a good financial decision. But it's not true that a company will do layoffs whenever it's a good financial decision. You may know that there are low performers but choose not to let them go because you're worried about morale more generally to that other high performers will take it as a sign of trouble and jump ship. But in a bad economic environment that is less of an issue because high performers are probably more risk averse and fewer competitors are hiring anyway.

comment 6y ago · link · parent

Keycloak is a great open source identity server that supports openid connect. Works out of the box but also allows for full customization as well. Whatever you do, don't write your own oauth server.

comment 6y ago · link · parent

You can't snoop on traffic between hosts in the same VPC. Here is a good video explaining why https://www.youtube.com/watch?v=3qln2u1Vr2E&t=1592s. The tl;dr; is that your guest OS (the EC2 instance) is not connected to the physical layer 2 network. The host OS hypervisor is and when it receives a packet from the physical NIC, if that packet is not directed to the guest OS then it won't be passed to it. So the NIC on the guest OS (your EC2 instance) will never even see the packets that are not intended for it. Of course this gets slightly more complicated because AWS added some tools for traffic mirroring. So theoretically someone with the right access could setup a mirror to a host they control in the VPC and sniff the traffic that way. But if someone were able to pull that off then you're likely f'ed either way.

comment 6y ago · link · parent

That is patently false. The CDC head was briefed by the Chinese "around New Year's Day" 2020 (https://www.nytimes.com/2020/03/28/us/testing-coronavirus-pa...). By Jan 7, 2020 the CDC had already setup a task force to deal with the COVID threat. I certainly don't want to defend the Chinese government. I'm sure there are a lot of things they did wrong (on top of all the horrendous human rights abuses they commit on a daily basis), but the whole narrative of blaming China for COVID seems like an obvious ploy to shit blame away from our own incompetent response. The fact of the matter is that we saw this coming in slow motion and comprehensively failed to respond in a way that could have prevented this human tragedy.

comment 6y ago · link · parent

Right, they let you do it now but iirc that is a relatively recent feature that was resisted for a long time. And for good reason I think. The purpose of certificate validation is to verify that the remote machine is who they say they are. But those guarantees are already provided by the VPC protocol. In order to impersonate a target instance you would need to MITM the traffic, which isn't possible in a VPC.

comment 6y ago · link · parent

This is probably true. You can't eavesdrop on network traffic in a VPC because you never touch the actual layer 2 network, it's a virtualized network tunneled through the actual physical network, so you will never even see packets that aren't directed to you. I don't think there is a really strong security rationale for requiring SSL between an ELB and one of it's target groups, but from a regulatory standpoint it's probably easier to say "encrypt everything in transit." This is why ELBs don't do certificate validation as well. It's unnecessary and extremely cumbersome to implement well, so if you need to have SSL between the ELB and a host, you can just toss a self-signed cert on the host and be done with it.

comment 6y ago · link · parent

You are certainly correct that people arguing the opposite side probably don't have a formal system in mind, but I think the intuition that an open interval in the Reals doesn't have a smallest number is easy to grasp even without any formal training. So you can force them to see the consequences of it through fairly straightforward logical contradictions.

Assume x is the smallest real number greater than 0. Then x/2 is also a real number and is greater than 0 but less than x. Therefore, x can't be the smallest real number greater than 0.

comment 6y ago · link · parent

This is why I struggle with microservice architectures. It seems like there is a basic contradiction. On the one hand, it's vitally important that the microservices are carved into the correct modules otherwise you get a nightmare of operational complexity where simple functional changes require coordinated changes across multiple services. But defining the correct way modules requires a bird's-eye architectural view of the entire system, which seems contradictory to idea of self-organizing, independent teams. I can see how it works when the right way to divide things up is obvious or when you are dealing with IaaS or PaaS services, but in a complex business domain who decides how to carve things up?

comment 6y ago · link · parent

Exactly, I would wager that very few organizations go from monolith to microservices and back. Getting organization buy-in to do the "big rewrite" is hard. Getting buy-in to do the second "big rewrite" after the first one didn't go well is going to be even harder.

comment 6y ago · link · parent

That doesn't exist. An open interval doesn't have a smallest number.

comment 6y ago · link · parent

I don't think the data supports that assertion. I don't have the link handy, but OpenTable published data showing that in Atlanta at least, restaurant bookings were down ~90% before the stay-at-home order was issued. The situation was similar in many other areas as well.

comment 6y ago · link · parent

To be clear, I fully support Strict social distancing and think the idea of their being a trade-off between government policy on the matter and economic performance is off-base. People will social distance whether the government tells them to or not, and if the pandemic worsens substantially then the economic impact will be even worse. That is to say that the best thing to do from both a lives saved AND an economic perspective is to contain the pandemic to a manageable level. </br> All that throat clearing out of the way... this is a silly argument and one that is not applied in any other domain. Should we ban cars? How can you possibly say that the many thousands of people who die in automobile accidents each year are an acceptable loss of life?

comment 6y ago · link · parent

It doesn't seem that crazy to me. Calling them web browsers is kind of anachronistic at this point. Just the JS engine itself seems like it would be massively complex. It's a VM with a JIT compiler which I can only imagine is quite cumbersome to implement securely

comment 6y ago · link · parent

Honestly, that sound exactly like the path I took. Was a senior engineer when I moved away from where my office was and went remote on a special dispensation (my company is in general quite hostile to remote work) and since then my career has continued to progress more or less as I expected. Of course I don't really know the counterfactual but in general I think people way overestimate the value of "face time" for career progression. And if you can be more productive working remotely (which I certainly think I have been) then it can be a net benefit. Of course that all depends on the company. Going remote is probably not great if you work at a small company with a tight-knit team.

comment 6y ago · link · parent

One possibility is that remote developers are just more productive (or if you prefer, more productive developers are more able to negotiate a remote working allowance from their employer). In standard economic theory, the equilibrium wage is at the workers marginal revenue product (or the marginal revenue that their work produces for the organization). So you would expect remote workers to either earn more because they are more productive or, if remote work makes you more productive, to earn more as a result of working remotely and being more productive

comment 6y ago · link · parent

We went with Keycloak. Both for cost and for extensibility. More than happy with our choice

comment 6y ago · link · parent

We looked at Okta, Auth0 and Cognito when shopping for an identity/auth solution. If you have pretty vanilla requirements then a SaaS solution will probably be easier. Keycloak is not the easiest thing in the world to deploy (although it's pretty straightforward to deploy on k8s using https://github.com/codecentric/helm-charts/tree/master/chart...).

If you need a lot of customizations then Keycloak is great since it has a really robust architecture for writing extensions. It's also pretty cheap to run so if cost is a major consideration it's definitely worth a look.

comment 6y ago · link · parent

I'm curious how you manage upgrades. I am in the process of rolling Keycloak out to production now and the only thing I don't quite grok is how to do zero-downtime upgrades. It seems like the upgrade may make backwards-incompatible changes the DB schema. Do you replicate the entire database for the upgraded environment?

comment 6y ago · link · parent

Yeah, it's really easy. You can setup multiple realms and then have completely separate realm admin roles for each. Each realm admin will have their own admin console and login URL

comment 6y ago · link · parent

Agree on the lack of documentation. But one thing I've found really nice is that the source code is really well structured and readable. Every time the documentation has let me down I've been able to find what I needed by reading the source code. That's one of the great underrated advantages of using open source solutions, you're not completely hamstrung when the docs don't give you what you need.

comment 6y ago · link · parent

OpenID Connect is the standardized AuthN process built on top of OAuth. It’s “on top of” but in practice it’s a simplification if OAuth for the specific purpose of AuttN

comment 6y ago · link · parent

I agree in general, especially on point 1. If it's just an issue of regulations then that is insane.

On the second point I would actually be more sympathetic to their position (though probably not enough to actually ban employees from doing it). Humans are funny and if some people on a unit have better equipment than others it can certainly cause some interpersonal tension that over-stressed hospitals can't deal with right now.

1
2021222324