Better HN
topnewbestaskshowjobs
Log inSign up

excursionist

90 karma · joined Aug 15, 2019 (7y ago) · 112 submissions

Submissions

comment 7y ago · link · parent

> Java generics is a syntax sugar.

That's not true, Java generics are not just syntactic sugar.

> They don't add anything substantial.

They add parametric polymorphism and type safety.

> You can use Object (or another bound type) everywhere you're using generic type.

Only if you go out of your way to do so, and ignore warnings. This has less to do with how generics work in Java and more to do with the fact that Object can be explicitly cast to another type and vice versa.

> You can do exactly the same thing in Golang. Just use interface{} everywhere and add few casts where needed.

No, it's completely different.

comment 7y ago · link · parent

I'm not sure what you mean by 'proper generics', but Java does have compile-time generics, ie List<T>, <A, B> B foo(A bar), etc.

comment 7y ago · link · parent

Elm has parametric polymorphism.

comment 7y ago · link · parent

'Choosing' a union or whether to be part of one is not any harder than 'choosing' an employer.

comment 7y ago · link · parent

What's the difference between 'monopolization of workforce' by a union, vs by a corporation? A union should be democratic, but if the workforce is split into many smaller unions it loses negotiating power.

comment 7y ago · link · parent

> It's so difficult to find food in groceries stores in America that isn't loaded down with sugar, starch or high fructose corn syrup.

It's not hard, you just go to the fruit/veg/meat/fish sections.

comment 7y ago · link · parent

Beyond Meat claims its 'better for you' right at the top of their products page:

https://www.beyondmeat.com/products/

comment 7y ago · link · parent

> Nobody has ever claimed these things are healthier.

That's just not true, the supposed health benefits are touted everywhere. Beyond Meat literally claims their products are 'better for you' at the top of their website.

https://www.beyondmeat.com/products/

comment 7y ago · link · parent

https://edwardsnowden.com/donate/

comment 7y ago · link · parent

> I hope one day there can be an Elm-like experience for backend development as well.

Haskell?

comment 7y ago · link · parent

The whole idea of copyright is unsound, so arguing about it's 'intricacies' is pretty pointless. Garbage in, garbage out.

comment 7y ago · link · parent

That's not quite what Chomsky says...

> The concentration of wealth and enhancement of corporate power translate automatically to decline of democracy. Research in academic political science has revealed that a large majority of voters are literally disenfranchised, in that their own representatives pay no attention to their wishes but listen to the voices of the donor class. It is furthermore well established that elections are pretty much bought: electability, hence policy, is predictable with remarkable precision from the single variable of campaign spending, both for the executive and Congress.

https://truthout.org/articles/noam-chomsky-moral-depravity-d...

Most Americans are politically disenfranchised and political decisions are often made counter to what the majority want and vote for, in favour of elite and corporate interests.

It's pretty amazing to claim corporations are signalling some kind of unity and/or support of the general public based on this PR piece, while their money, lobbying, and power are doing the exact opposite.

comment 7y ago · link · parent

> > Are you suggesting I had the gullible interpretation?

Yes.

> What action would you suggest is the appropriate one to this PR move?

When these corporations put their money where their mouth is, we can start to seriously consider such statements. Until then, laughter and derision are appropriate.

comment 7y ago · link · parent

Your statement is wrong because there is no reason to believe or any evidence to support the following statement:

> The point of this statement is to signal to the public, that the elite are ready to give them what they want and understand that the inequality is unsustainable. They are prepared to make concessions now and it's up to the public to take them.

Corporations suddenly wanting to tackle inequality and make 'concessions to the public'? That's not a reason for this PR move, that's corporate fairytale.

> I gave a reason for the PR move. I'm curious why you think my reason is wrong?

You did not give any reason other than exactly what the architect of this PR move would expect a very gullible person to interpret this as.

comment 7y ago · link · parent

What? Corporations have always been spending time & money on PR. Are you asking what the purpose of PR is? I see no reason to assume altruistic motives are involved.

comment 7y ago · link · parent

I think you are misunderstanding the purpose of this cheap PR move.

comment 7y ago · link · parent

How are externalities considered in shareholder value?

comment 7y ago · link · parent

Depends how you define 'biggest time stealers' - tv and video games are huge time stealers for many people. And the fact that drugs have a chemical effect on the brain does not mean they are necessarily worse than, say, watching some braindead tv show while stuffing your face with fast food, or sitting in a classroom for hours listening to a monotone voice regurgitate some dull bullshit you don't care about. Many people have had beneficial experiences with drugs, for example Steve Jobs with LSD.

comment 7y ago · link · parent

> Cannabis, like any recreational drug, steals the most precious resource we have: our time.

Everything 'steals time'... watching TV, reading books, listening to music, working a job, etc.

> Life is the best teacher and recreational drugs are how you forfeit that precious, amazing, education.

Not at all. It really depends on which drugs, how you use them, etc.

> You don't have to go far to see this in action. Think of someone who is a habitual drug user and ask yourself 'are they emotionally mature?'. They aren't. They are taking an escape. Recreational drugs are antithetical to emotional growth.

I've met plenty of people who regularly use recreational drugs and who seemed wise, calm and content.

> I wasted 20 years of my life 'partying' even on a casual basis.

Cannabis is not really a party drug.

There are vast differences between various 'recreational drugs'. It's how you use them that matters.

comment 7y ago · link · parent

Yes, but rust can be seen as an alternative to C++. They are closest in terms of features/power/performance.

comment 7y ago · link · parent

> If complexity is based on how likely a syntactically correct program is also logically correct, then type systems remove a lot of complexity.

Types are not really at the syntax level. I would measure the complexity of a language by the complexity of it's grammar and the size of the standard library/amount of common idioms needed to write most programs in a reasonable way.

comment 7y ago · link · parent

I would argue it was, and still is, simpler than modern C++.
1234