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

Election interference using AI and bots on social networks seems like a lot of fun! No thinking person will fall for this anyway and it will be bots against bots.

comment 2y ago · link · parent

That's exactly what I meant: Linux is unfriendly to third-party software developers (drivers not in kernel, apps not in distro repositories).

comment 2y ago · link · parent

And that is wrong because people might have reason not to mainline drivers.

comment 2y ago · link · parent

> absolutely an expected and required part of doing business

You just don't do business in such countries? Why do you want to work with corrupt regimes so much?

comment 2y ago · link · parent

That Linux note about why they don't want a stable API is ridiculous. This shows how unfriendly is Linux to out-of-tree software. They want third-party developers to refactor their working and tested drivers every time they decide to change something.

I think that at least open source community should move to "never break things" concept. So that you can write and test code once and never touch it anymore. Refactoring your code because kernel/library has changed its interface is just a waste of time which gives nothing in return, often time of unpaid volunteers who could do something useful instead.

This should apply to libraries, applications, programming languages, browser extensions. Take upgrading your Python 2 code to Python 3 as an example. You need to put a lot of efforts while gaining nothing. This is not how software should work. You should write a code once and it should work forever without any maintainance.

comment 2y ago · link · parent

> Advertising isn't anti-privacy.

Advertising works much better when there is no privacy.

comment 2y ago · link · parent

As I understand, it is not Elsevier's fault, it is the government that allocates funding and gives promotion based on number of publications made in Elsevier journals.

comment 2y ago · link · parent

Why do employees have write access to production DB?

comment 2y ago · link · parent

Why there are no $3k-$4k cars? I am sure most people need cheaper cars, not electric cars, or AI cars, or cars with mobile app and telemetry. Those are toys for the rich.

comment 2y ago · link · parent

Replaying requests might be not a malicious attacker, but simply an ISP wishing to know and sell customer's interests.

comment 2y ago · link · parent

I am not sure if you can use 1 photon per bit because (as I understand) emitting and capturing photons is a probabilistic process and when you have 1 photon, there is a probability that it will not be captured by an antenna, but rather will be reflected or will turn into heat. Or am I wrong here?

comment 2y ago · link · parent

> Even if 70% of landlords use RealPage and their pricing recommendations, the remaining 30% should be able to absorb some of the people moving out as a result of this if the new rent is substantially over market.

It means that 30% people will get market-determined terms and other 70% will have no choice but to accept RealPage pricing. Because they need to live somewhere.

comment 2y ago · link · parent

No, spec authors simply added a rule to ignore the slash because Internet was full of garbage code and they realized that it is hopeless to expect low-quality frontend developers to fix their code. There is no such thing as "self-closing element" in HTML spec (only SVG and MathML have them because they are based on XML).

Quoting the spec [1]:

> Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single U+002F SOLIDUS character (/), which on foreign elements marks the start tag as self-closing. On void elements, it does not mark the start tag as self-closing but instead is unnecessary and has no effect of any kind. For such void elements, it should be used only with caution — especially since, if directly preceded by an unquoted attribute value, it becomes part of the attribute value rather than being discarded by the parser.

[1] https://html.spec.whatwg.org/#start-tags

comment 2y ago · link · parent

What's wrong with Redis? It is still open source, as I understand, and you can use it in non-commercial projects without any problems.

comment 2y ago · link · parent

No, try writing

    <div/>
And it will be interpreted as <div>, not as a pair of <div></div>.

HTML just ignores the slash character, it doesn't support XML-style self-closing tags. HTML is not XML.

comment 2y ago · link · parent

It is better to use BEM naming, so the example becomes

    <button class="btn btn--warning">
Here double minus means that "warning" is a state of an element named "btn".

comment 2y ago · link · parent

Please note that using slash at the end of the tag is not supported in HTML:

    <link rel="stylesheet" href="base.css" />
I often see such code and it seems that people simply don't know HTML and copy random garbage they found on the Internet. In the example above, the slash is simply ignored, but in this example the code will be parsed not as intended:

    <div/>
This is why you should read proper documentation or specification instead of blindly copying garbage code from Internet.

MDN link: https://developer.mozilla.org/en-US/docs/Glossary/Void_eleme...

comment 2y ago · link · parent

It would be better if you could just read doxygen docs or something like this instead of having to reverse-engineer someone's else code. Because the code is just an example of using functions and doesn't give their complete description.

If you write something like Linux kernel, write doc comments.

comment 2y ago · link · parent

Yes, ICQ was bought by Russians in 2010, and it was already dying at that time.

comment 2y ago · link · parent

Here is something that I don't understand. Roman Empire had advanced science, it had lot of people, lot of money and resources, and could have more weapon and soldiers than anyone else. Where did tribes from Asia, who had no advanced technologies, poor economy, no literacy, get the resources and soldiers needed to successfully invade and win against the Empire? Where did they get the weapon? Why they were so numerous if all they did was riding the steppes on their horses? Is riding the steppes on a horse more profitable than building cities, roads, bridges and aqueducts?

Also why don't we see similar things in modern times, why don't wee see poor undeveloped nations successfully invading large developed countries?

comment 2y ago · link · parent

It's packaging says "data cable", not a "car tracking device". Why would they use misleading packaging that the thieves would never see? Obviously it is meant to be used as a present, or for example, for an employee bringing this "cable" to work.

comment 2y ago · link · parent

Yes but giving a keyboard as a present is more suspicious than just a harmless data cable.

comment 2y ago · link · parent

Its packaging doesn't mention that it is a tracking device so I guess the intended usage is a present, for example, at a business meeting or to a child, a relative?

comment 2y ago · link · parent

It is not enough to provide portable machine code to make games portable, there are lot of different APIs that games need: graphics API, windows API, input API, sound API, disk API and so on. Sometimes they need kernel modules for anti-cheat and anti-piracy features.

What saddens me is that open-source OSes do not want to provide a common set of APIs so that the developer only has to write and test the code once and it works everywhere. There is flatpak, but as I understand, it doesn't provide a set of APIs, it simply packs a Linux distribution into a virtual machine without any specifications or documentation. So ugly, and no compatibility for smaller non-Linux OSes.

comment 2y ago · link · parent

Maybe you need a better kernel then? For example, a microkernel.

comment 2y ago · link · parent

Why are people posting on Reddit a manipulation? Anyone can post anything on Reddit and no serious investor will blindly follow this. On the other hand, companies (brokers) that allow people to trade have a power to manipulate the market by enabling/disabling trade of specific stock at necessary moment.

Also if people posting on Reddit can cause serious losses to greedy capitalists then it is fun.

comment 2y ago · link · parent

Processes run in a userspace and cannot do anything without OS approval.

comment 2y ago · link · parent

"VM" means it has its own kernel? Why have 2 kernels on the same machine?

All processes in a proper OS are already isolated and there is no need for VM.

1
757677
185