13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 6y ago · link · parent
A group of people breaks into someone's house at midnight with weapons and it's not a story that someone defended themselves, at all. Bringing it up is a distraction - and this entire HN thread is a perfect example of that.
If the guy hadn't shot, or had shot second, or if Taylor hadn't been killed at all, it wouldn't make what they did justifiable. The fact that their absolute negligence led to a situation where a woman died is just what makes this that much more important to focus on.
It is not moved to another section "for a snappier piece" as you put it in another comment. It is simply not important information, it is not relevant, it does not change the judgment, it does not change that the police are responsible for her death.
comment 6y ago · link · parent
I don't think anyone has ever claimed novelty in microservice architecture. It's very clearly derivative.
Shared state is moved. You get some level of isolation simply from the fact that there are two distinct pieces of hardware operating on state. You can then move state to another piece of hardware, and share that state between services (somewhat discouraged), but this is a much more explicit and heavy lift than just calling a function with an implicitly mutable variable, or sharing a memory space, file system, etc.
> But can't you just as easily argue they weren't creating a proper "monolith" to begin with?
Maybe. You can say this about anything - there's no science to any of this. I could say functional programming leads to better code than oop, but I couldn't really prove it, and certainly you can still do crazy bad garbage coding things with FP languages. But I would argue that the patterns that make up microservice architecture can help you make bad things look bad and good things look good. It's not magic fairy dust that you can just use to make your project "better" by some metric, but no one informed would ever claim so.
comment 6y ago · link · parent
You can 'get around' microservice architecture by not doing it. The point is that if you're familiar with it it's a lot easier to 'accidentally' be successful - or at least, that's the proposition.
comment 6y ago · link · parent
Sure. Microservice architecture is a set of design patterns and a discipline for knowing how to structure your applications.
Many, including myself, would argue that by leveraging patterns such as separate processes as a focal point for the architecture leads to patterns that are harder to break out of and abuse, but of course anyone can do anything.
Error handling is the easiest one. With any 'service oriented' approach, where processes are separated, you can't share mutable state without setting up another service entirely (ex: a database). Microservices encourage message passing and RPC-like communication instead, and it's much easier to fall into the pit of success.
Could you do this with functions? Sure - you can just have your monolith move things to other processes on the same box. Not sure how you'd get there without a process abstraction, ultimately, but you could push things quite far with immutability, purity, and perhaps isolated heaps.
comment 6y ago · link · parent
https://www.hpl.hp.com/techreports/tandem/TR-85.7.pdf
Here's one paper that discusses building reliable systems from two abstractions - the process and transaction.
comment 6y ago · link · parent
Shared state is part of it. Isolation of failure is another. Your Haskell code can still blow up.
Immutability makes that way easier to recover from, but it's just one part.
Of course, microservices are much more than processes over a network, they're a discipline. And I think one can go much further than microservices as well - microservice architecture doesn't tell you how processes should communicate, it's more focused on how they're split up, and leaves the protocol to you. Good protocol design is critical.
comment 6y ago · link · parent
There are only two meaningful failure modes - persistent and transient. So adding another transient failure (network partition) is not extra work to handle.
> Except not, because "just dump that on a database/kv-store" is an all-too-common workaround chosen as an easy way out.
Just to be clear, microservices are not just separate binaries on a network. If you're not following the actual patterns of microservice architecture... you're just complaining about something else.
comment 6y ago · link · parent
Here's the thing I see repeatedly called out as a negative, but it's a positive!
Processes and networks are amazing abstractions. They force you to not share memory on a single system, they encourage you to focus on how you communicate, they give you scale and failure isolation, for force you to handle the fact that a called subroutine might fail because it's across a network.
> f your codebase has failed to achieve modularity with tools such as functions and packages, it will not magically succeed by adding network layers and binary boundaries inside it
Functions allow shared state, they don't isolate errors. Processes over networks do. That's a massive difference.
If you read up on the fundamental papers regarding software reliability this is something that's brought up ad nauseum.
> (this might be the reason why the video game industry is still safe from this whole microservice trend).
Performance is more complex than this. For a video game system latency might be the dominating criteria. For a data processing service it might be throughput, or the ability to scale up and down. For many, microservices have the performance characteristics that they need, because many tasks are not latency sensitive, or the latency sensitive part can be handled separately.
> would argue that by having to anticipate the traffic for each microservice specifically, we will face more problem because one part of the app can't compensate for another one.
I would argue that if you're manually scaling things then you're doing it wrong. Your whole system should grow and shrink has needed.
comment 6y ago · link · parent
While I am unlikely to be attacked through a memory safety exploit, I also:
* Have been attacked through one in the past, when the internet was a different place
* Wonder how much time and money could be better spent if we just eliminated that entire class of problems - perhaps solving some of those poor design issues?
comment 6y ago · link · parent
If those cases are extremely rare, and stats I've seen show they are, there is still no need for the weapon in the other cases. We can go ahead and disarm the other officers, and have a small portion maintain arms for potentially violent cases in your given scenario
Of course, I'd argue that you don't need deadly force even to deal with the majority of potentially violent crimes, but that's a separate matter.
comment 6y ago · link · parent
The vast majority of police do not need guns.
edit:
> hey deal with rape, suicide, murder, assault, domestic abuse, robbery, every week unless they're some small town cop in a gilded neighborhood.
Can you back this up? Statistics I've seen do not support your claim, and put violent crimes under 5% of police investigations.
comment 6y ago · link · parent
Is this satire? I'm blown away otherwise.
No, this is not what they think, obviously.
The call is for developers to recognize the potential for abuse of the software they write, to use their means and their platforms to speak out against oppression, and to generally not be huge pieces of shit under the guise of purported software neutrality.
This post is extremely low quality. It lacks meaningful content, is basically just a "SJWs are ruining open source!" rant, and is poorly edited. I think this has no place on HN.
comment 6y ago · link · parent
https://twitter.com/MplsWard3/status/1267891878801915904
> Politicians who cross the MPD find slowdowns in their wards. After the first time I cut money from the proposed police budget, I had an uptick in calls taking forever to get a response, and MPD officers telling business owners to call their councilman about why it took so long.
comment 6y ago · link · parent
Your argument can't possibly be "Because they didn't want to escalate" or "They didn't want people to think they're violent" when they did escalate and were violent elsewhere.
I am in full agreement that it was tactical - it allows them to punish a neighborhood and to shift the story.
comment 6y ago · link · parent
They want the story to be about rioters so they're letting them riot. It's a way to shift the public opinion (same way some cops have been seen breaking car and store windows).