_akei

Joined 13 years ago

Karma
540
Submissions
244
Member since
Mar 29
My political views aren't inline with majority of Hacker News members. Especially on issues relating to China, Russia, India and other countries that aren't allies of the United States. I will continue to read as a non-member.
View on Hacker News

Recent submissions

Comment · 6 years ago
It was the next logical step for Russia after they built their own GPS and their alternative to the World Bank, the BRICS bank. Their biggest enemy has proven that they cannot be trusted and they are the ones who invented the Internet. Anytime they have a disagreement with a nation, they take their ball and go home. Like what they were doing with Huawei. I won't be surprised if China and India are working on the same kind of project.

This world needs an alternative to anything built by the USA. That way superpowers will have to go to the negotiation table on an equal footing. We don't want one bully. We need at least 5 bullies.

Comment · 6 years ago
Capitalism is unethical. No economic system is perfect. Ironically, when the rich in the US are in financial trouble, they force government to be communist. Like in 2008 recession, companies were bailed out using taxpayers’ money. I am not denying that US has to do everything in their power to bring the deficit down, but they must stop pretending to be a free market while doing the exact opposite of a free market. Protectionism is only expected from communist countries, not countries that market themselves as free markets.
Comment · 6 years ago
What is incorrect about my statement? In case you don’t know or want to be reminded, the name of the ruling party in China is called ‘China Communist Party’.
Comment · 6 years ago
US residents have to compete with prospective students from other countries. Some of those countries rank better than the US when coming to STEM subjects. They end up getting admission ahead of US residents.

Solution is to improve teaching of STEM subjects at primary and high school level. The problem will sort itself. Second option is protectionist in nature. Favour US residents ahead of international students, even when international students are way better. Second option will only drop the quality of PhD graduates coming from those colleges.

Comment · 6 years ago
Clear and concise to someone new to programming. Also less typing. Comparison of an a market leader to a new entrant is designed to make you switch from market leader to new entrant in the market.
Comment · 6 years ago
I am indeed talking about Android Java.
Comment · 6 years ago
Now that is a good strategy. Copy directly from a language that is moving at a very fast pace and competing directly with the language you want to replace.
Comment · 6 years ago
It is mostly C# that is keeping Java on their toes. Java competes with C# than any other language in this world. In the enterprise space, it is either Java or C#. If you check most of their improvements, they were done ion C# first, then they follow.
Comment · 6 years ago
Checked Exceptions are the main reason I switched to C#.NET. I hated checked exception. I know the designers wanted to save us from ourselves but they ended up making the language verbose.
Comment · 6 years ago
Thanks. It makes sense because it doesn't have statement. Ternary operator wasn't going to be possible.
Comment · 6 years ago
> What's the difference between ternary operator and inline if/else?

There is no difference. Ternary operator is a syntactic sugar for if/else.

> Is there even any reason for if/else that doesn't return a value (that may be void/unit/similar)?

Main reason why an if statement returns a value is because it is used to test if condition is true or false. If it returns other values, it was going to make it more complicated. Especially when you have an if statement with multiple conditions that must be ORed or ANDed.

What is awful about the variable syntax? This syntax was copied directly from C language.

Comment · 6 years ago
I haven't used Scala before. What is their reasoning for that?
Comment · 6 years ago
Comment · 6 years ago
Whenever I see an article comparing a market leader with an underdog, I always know that the article will be biased against the market leader. It is human nature to root for the underdog. What was the reason for not starting with variables II? I suspect the author wanted to manipulate our minds right there. It is obvious that Java version is the better of the two but they decided to start with a variable with final. Ternary operator for Kotlin doesn't look like ternary to me. It is just an inline if\else.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton