Better HN
topnewbestaskshowjobs
Log inSign up

martamorena943

44 karma · joined Feb 26, 2021 (5y ago) · 5 submissions

Submissions

comment 5y ago · link · parent

Yes, but honestly that is super easy to avoid. We code in Java and pretty much all objects are @Immutable, inheritance is only used when its the right tool for the problem (it really rarely is) and subtyping is solely done through interfaces.

I think the main reason what people get wrong about OOP is that they tend to think everything needs to be models with inheritence, which is completely wrong. Inheritence is BAD!

The rule should be:

1. Avoid inheritance

2. Use interfaces instead

3. If interfaces are not enough, use composition

4. If composition is not enough go through all other similar design patterns that are not based on inheritance.

5. If you really need inheritance, be very careful about which function you make non-final and non-private.

comment 5y ago · link · parent

Yes, this is a good summary of what these changes do. They allow white people to pat themselves on the back, without actually doing anything material to help break down racism.

comment 5y ago · link · parent

I don't think it was visionary. Ever since, blockchain has struggled to find a real-world use case. We know how blockchain works, the concept is thousands of years old. This problem existed in the past (coordinating in an environment where no one trusts anyone). However if this was a real problem in the real world, companies would have built blockchains long ago.

This is rather survivor bias. Apparently blockchain found some straws to hold on to. It could have been one of those millions go-nowhere projects just as likely.

I think there are legit use cases for it, but ultimately, we are still far from mass adoption and without the crazy monetary gains, I don't even believe anyone would talk about blockchain these days. Technology wise, it's not a strong value proposition. We can do pretty much everything without blockchain. Yeah there are some cases where trustlessness helps, but once this problem would become serious enough, it's not hard to build blockchain technology. It basically follows directly from basic principles defined by the problem. And the fact that everyone "thinks blockchain is new", already proves that the problem actually doesn't really exist.

comment 5y ago · link · parent

Yeah, that's should be something along the lines of:

* Fraud: Selling a product not as advertised

* Tampering: Selling a product with the tamper seal broken

* Intent of causing bodily harm to newborns

Yeah that should give a nice little jail sentence lol. If this doesn't warrant an investigation then I don't know.

comment 5y ago · link · parent

No there really is not. You can't always "twist" the words how you need it, otherwise you behave just like Google. Chrome is a separate product. It's a browser. If it says that Chrome won't remember history in private mode, but then you go and visit a Google website, then this website can still track you the same as any other website in private mode. You can't really say "Oh Google should be broken up and be treated as separate entities (at least when it suits me)" and then start complaining "Oh Chrome and GMail are acting like separate entities but they should be really acting as if they were the same thing (at least when it suits me)" ... lol

Private mode never was meant to be a privacy feature against websites. Private mode is to prevent your LOCAL history from containing anything you searched/visited and the legit use case is sharing of the computer with other members of family, for instance. For websites, nothing really changes. They can still track you all the way they want.