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 9y ago · link · parent

Custom scrollbar implementations also often ignore scrolling speed set in OS's settings.

comment 9y ago · link · parent

Would not it be better to style the scrollbar with CSS only in browsers that support it? That would be an example of progressive enhancement and adaptive markup.

For me, fast scrolling is more important than colored scrollbar.

comment 9y ago · link · parent

It looks like a poor design desicion made 20 years ago (that wheel event is synchronous and must be run before scrolling) leads to all major browsers code becoming unnecessary complicated. I think it would be better to discard that design and make a new event system that would be used with new pages (and don't waste developers' resources to optimize old pages).

Maintaining compatibility is good, but at some point we need to stop and make a new design.

By the way here are the things I'd like to get fixed too:

- make a distinction between same-domain and cross-domain requests (use another HTTP method for cross-domain POST request) so all sites get XSRF vulnerability fixed

- make cross-domain requests anonymous by default

- make cookies unaccessible to Javascript by default

- stop JS loading from blocking the page so we can put script tags in the header where it makes more sense

- make as much events asynchronous as possible

- fix keyboard events, key codes and mouse buttons numbers

- make it impossible to change window.opener.location and windows.parent.location

- add CSS rules to set width for a column in a table, not for cells

- add error reporting so if some resource (like a script) fails to load the user gets a message that the page is broken

comment 9y ago · link · parent

But it can be used to persuade other customers to give out their personal information: "See, everybody before you said their phone number".

comment 9y ago · link · parent

You can give Lenny's number [1] - it's a bot that loves talking to telemarketers on the phone.

[1] https://www.reddit.com/r/itslenny/

comment 9y ago · link · parent

There should be no privacy marks. The companies just should not collect any "anonymous" "analytics" without user's permission.

comment 9y ago · link · parent

Would not it be better if Amazon didn't keep those data at all and maybe even made sound recognition on a client?

comment 9y ago · link · parent

Android phones can have adware preinstalled, especially the cheap ones from chinese noname brands.

comment 9y ago · link · parent

Does iPhone has a firewall? Or does one have to trust Apple and app developers that they won't collect a single byte of "anonymous" "analytics"?

comment 9y ago · link · parent

This is only the base code. The manufacturer modifies this code when building a ROM and can add anything. It should provide the modified sources but many chinese vendors do not do it.

Even if manufacturer provides the code, it can preinstall additional closed source programs. For example, Facebook app or some "telemetry" app that are closed source. My chinese noname phone contained an app that was trying to send my phone number and other identifiers to China as a part of a "sales report" (exact URL was http://bigdata.adfuture.cn /reboot/salesCountInterface.do ). And one can only guess how many data does Facebook collect.

What the end user gets is a phone with a binary blob inside.

I think there should be a strict requirement banning collecting any data without consent from user. No "anonymous" "analytics" and telemetry, no crash reporting, no advertising ids, no checkboxes checked by default. There can be only legal solution to the problem of mass surveillance by software companies. Every byte your device sends to network can end up in the hands of the hackers from developing countries or NSA.

comment 9y ago · link · parent

Then it is the problem with the society that such people are allowed to ride on a bus and disturb other people.

comment 9y ago · link · parent

I wonder is not it bank's responsibility to refund the money that were stolen from customer's account? And don't they use SMS messages to confirm outgoing payments?

But this case shows also that Internet banking UI are too complicated for some people and they don't realise what they are doing when following scammers' instructions.

comment 9y ago · link · parent

Idol groups and robot development.

comment 9y ago · link · parent

I think it's better to have a little less money then have a higher crime rate that migrants would bring.

comment 9y ago · link · parent

The graph in the article you've linked to [1] shows that suicide rate in Japan is comparable to Switzerland and New Zealand. Maybe this problem in Japan just gets more media attention?

[1] https://en.wikipedia.org/wiki/Suicide_in_Japan#/media/File:S...

comment 9y ago · link · parent

Is immigration related to education quality? And people with good skills would rather immigrate to places like California because the salaries are higher there.

Also japanese language (writing and reading) is very difficult for foreigners because one has to learn thousands of kanji characters.

comment 9y ago · link · parent

I guees it just makes a list of suspicious people and later managers look through them and ban them manually.

comment 9y ago · link · parent

But their competitors who comply with the law are losing now.

comment 9y ago · link · parent

If Uber thinks law is wrong why don't they start a campaign to change it? England or France are supposed to be democratic states, aren't they?

comment 9y ago · link · parent

Does Windows has stat() call? It is probably a function from some POSIX emulation layer and maybe that is why it is not fast.

comment 9y ago · link · parent

It is interesting that when XHTML was popular most people actually made and served HTML pages (with content type text/html) even if they had a XHTML doctype. That is why this standard was dead from the beginning. Though personally I like the idea of not displaying the page if there is any error in the code.

comment 9y ago · link · parent

I did when I was a beginner developer and wanted to understand CSS better. MDN doesn't help much if you want to understand for example how element dimensions are calculated, and W3C has a detailed description [1]. I haven't seen a better explanation yet.

[1] https://www.w3.org/TR/CSS2/visudet.html#Computing_widths_and...

comment 9y ago · link · parent

That is because people who do HTML markup are usually not developers. They are either wannabe developers or just incompetent people hired to reduce costs. They would never waste their time on reading something complicated as W3C standards and understanding concepts like semantic markup.

comment 9y ago · link · parent

I don't think so. I just sell a non-exclusive license to view copyrighted images to the visitor for $1000 each with delayed payment. Totally legal.

comment 9y ago · link · parent

There also must be a play on words in original (untranslated) joke. "You don't have any meat?" in russian can be understood as "Do you have any meat?" and as "Is it your shop that has no meat?".

comment 9y ago · link · parent

Isn't it nice if ToS is legally binding?

1. Make a website and write somewhere in the middle of ToS that visitor must pay $1000 (for example) for every page viewed or for every second spent on a site

2. Persuade him to press "I have read and agree to the ToS" and to stay as long as possible

3. Send a bill

comment 9y ago · link · parent

If they really have sold 10 million devices then the fine is 22 cents per device.

comment 9y ago · link · parent

The collected data about you will be used by marketers to sell you goods and services at a higher price and not to make a "smarter smartphone". For example if an online shop somehow knows that you live in your own house it can set higher price for you than for people who rent a cheap apartment in a city.

comment 9y ago · link · parent

The neighbours might have an access point without a password. But I think if the vendor is really interested in collecting personal data he could just install a GSM modem with a prepaid SIM card inside so that the device doesn't depend on Internet connection.

comment 9y ago · link · parent

They could make a deal with browser extension developers to bundle a surveillance module. That is why I never install any browser extensions.
1
172173174
185