Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 5y ago · link · parent

Yes, but I tried also to be useful and suggested the ideas for improving the keyboard.

comment 5y ago · link · parent

Regarding screen, they write:

> A high resolution 3:2 aspect ratio display lets you fit more code and creativity on-screen at once.

I doubt one can edit code on a 13 inch screen. Even 15 inch screen is too small for IDEs.

comment 5y ago · link · parent

It must be a lot of work to design a laptop. The PCBs look very complicated and the components are tiny.

What I don't really like is the price. I think a good laptop should cost somewhere around $400. It is not necessary to install the most expensive CPUs because they usually have lower performance to cost ratio than cheaper models. Webcam, fingerprint reader and Wifi 6 are not necessary.

The laptop doesn't have space for a HDD which means that user has to buy an expensive SSD storage. 13 inch screen is too small to work with code or texts. Also, modern websites have gigantic font size so only several lines of text would fit on such a small screen.

64 Gb RAM limit is higher than most of laptops which is good. But why not 128 or 256 Gb? It it difficult to add several more address lines?

They have written that they would love to hear a feedback on keyboards. Well, here you go.

Sadly the keyboard is a Latin-oriented 26-letter model. Russian language has 33 letters so I would prefer a 33-letter keyboard with two dedicated keys for switching layouts. This means that 9 new keys should be added. Currently nobody makes such keyboards, even Apple. Manufacturers seem to have no interest in adapting keyboards to needs of Russian users and instead use inconvenient 26-letter western keyboards. Adding more keys for me seems more important than unnecessary back light. Also, I think it would be better to make up/down keys larger and make Home/End/PageUp/PageDown as separate keys. These keys are useful for browsing or editing texts. On the other hand, CapsLock is useless and can be removed.

The touchpad doesn't have buttons. How does one do a right or middle button click?

comment 5y ago · link · parent

RAM could be packed together with a CPU on a replaceable board.

comment 5y ago · link · parent

But having a file directory would be useful even with a tape because you wouldn't need to read the whole tape to get the list of files inside.

comment 5y ago · link · parent

This is called superoptimization.

comment 5y ago · link · parent

Cannot evolution theory be validated by calculations?

We know the size of genome of an animal, we can estimate the maximum possible number of mutations throughout history. And then calculate if it is possible to create such genome with this number of mutations or not.

For example, if a mutation happens once per K animals, if one successful mutation happens once per L mutations, and there have lived M animals then maximum number of successful mutations is M / K / L. We can compare this number to size of a genome and verify whether it could be created as a result of an evolution.

comment 5y ago · link · parent

You are assuming that search ranking is determined solely by an intelligent AI. This is not how search engines work. Search ranking is determined by people that decide that sites like A must be ranked higher than sites like B, update the rules and then maybe AI is somehow used to apply those rules made by humans.

So it shouldn't be difficult to explain why the site is ranked higher. But I don't think Google will ever disclose that secrets.

comment 5y ago · link · parent

Yes, this can be caught by a static analyzer and it is sad that Linux doesn't use it. I wonder, is it because the code quality is low and there would be too many warnings?

comment 5y ago · link · parent

I don't think Apple has any special tricks for input loop.

Some Android phones really have input lag, but it is not caused by CPU load. For example, on my phone, there is approximately 100-150 ms lag between tapping the screen and registering the touch. The lag is not caused by CPU load, but by slow touch sensor.

I don't think Apple has any smart code optimization tricks. Either they have a faster touch sensor or just some people believe that if something is made by Apple then it is of a better quality.

Here is a comparison of input lag in games in iOS and Android [1] and it shows similar results: 80 ms between a tap and reaction on screen.

[1] https://blog.gamebench.net/touch-latency-benchmarks-iphone-x...

comment 5y ago · link · parent

Unlike Telegram, iMessage and WhatsApp are closed source apps. How can you verify that they really encrypt the messages?

comment 5y ago · link · parent

Loops are easier to read. With functions like reduce you have to solve a puzzle every time to understand what the code is doing (this is also true for functional style of programming in general).

> More specifically, maps can be trivially parallelized; same for folds, but to a lesser degree, if the reducing operation is associative; and for-loops are hard.

In a typical Javascript code reduce operation will not be parallelized. It actually can be slower than a loop because of overhead for creating and calling a function on every iteration.

> when you look at the system as a whole lots of for loops

A code with lot of loops is still more readable than a code with lots of nested reduces.

comment 5y ago · link · parent

For me, code with reduce is less readable than a loop. With loop everything is obvious, but with reduce you need to know what arguments in a callback mean (I don't remember), and then think how the data are transformed. It's an awful choice in my opinion. Good old loop is so much better.

comment 5y ago · link · parent

You are right. Adding third-party PPAs is not secure (it is because Linux distributions are not friendly to third-party software), that's why it is always better to download and unpack such software manually without running it as root.

comment 5y ago · link · parent

No, .deb is safer. You can manually unpack it into a folder without running any scripts as root.

comment 5y ago · link · parent

Sadly, many companies now require a phone number to use their services. For example: Signal, Telegram, Whatsapp, social networks like Instagram and Vk. They don't like anonymous users. For some users, Google requires a phone number to sign up. Twitter requires a phone number if they see something "suspicious" in user's behaviour.

comment 5y ago · link · parent

> and GPT-3 responded “I am sorry to hear that. I can help you with that.”

Note that AI is lying here. It has no emotions and cannot be sorry but says that it is. I think that robots shouldn't pretend to be a human, they should behave as robots.

comment 6y ago · link · parent

Almost any browser extension is a security risk, because it can inject JS code into web pages.

comment 6y ago · link · parent

The support is very poor yet. What about built-in browser in a 5 years old smartphone?

Don't use new technologies, wait for 5 or 10 years until they are supported everywhere. Flexbox is good enough for 99% of cases.

comment 6y ago · link · parent

Here in Russia we use another system: employees don't have to pay taxes from their wages themselves. It is company's responsibility to calculate and pay it. This system has an advantage, that most people don't have to bother with filling out complicated forms every year, but it has also disadvantages because people don't see how much money they give to the state.

comment 6y ago · link · parent

And at the same time FB/Google/Twitter are controlled by US government. If they do something "wrong", they get called to Congress to talk and change their mind. This is not what a truly independent company would do. Truly independent company would tell Congress to mind their own business and not bother them.

comment 6y ago · link · parent

Isn't main problem that hospital relied on computers too much? Why cannot they treat patients without them?

What if tomorrow, say a buggy Windows 10 update disables their systems, will someone else die?

comment 6y ago · link · parent

Of course they should. Google and Facebook can be an invaluable source of intelligence information and threaten national security.

comment 6y ago · link · parent

What CCP can collect through apps like TikTok cannot even remotely be compared to what US Government knows about you if you are using Google Mail, Google Maps (collects your location data), Android, Facebook etc.

comment 6y ago · link · parent

It will become harmful for the Internet because it sets a precedent and other countries might follow with similar actions protecting their markets from foreign apps. For example, here in Russia Yandex would be very happy if Google had been banned from Russian market.

comment 6y ago · link · parent

But old Firefox extension model (when an extension could patch any part of browser's code) did not guarantee that the extension would stay compatible forever. It was more quick and dirty hack rather than a proper standartised extension model.

comment 6y ago · link · parent

Then isn't it strange that TikTok and Huawei have issues in US (where laws "cannot be overturned") but not in China?

comment 6y ago · link · parent

What's wrong with Chinese company obeying Chinese laws?

comment 6y ago · link · parent

What's wrong with being connected with communist party? In Western countries IT companies like Google, Dropbox or Facebook also cooperate with governments and even give high-paid jobs to government officials.

I think that TikTok better not to sell a profitable business, or at least should not sell it cheaply.

comment 6y ago · link · parent

Hash of IPv4 address can be easily reverted because there is a limited number of addresses.
1
118119120
185