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

> an obvious TikTok knockoff,

No way! How could greatest talents and best innovators of Silicon Valley make just a copycat of a Chinese app for kids?

comment 3y ago · link · parent

I watch Youtube on laptop and never watch Shorts. The videos I watch are usually in range of 5 to 30 minutes and cannot be shortened. Also, I don't like vertical format.

I don't understand what's good in short videos. Would you prefer to read 1 page book, watch 1 minute movie or go to a 1 minute concert?

comment 3y ago · link · parent

No, I think that mobile apps are either time killers - for example, for watching funny videos while riding a train, or messengers - to ask employee questions while riding a train.

A business app on a phone doesn't make much sense because in office you have a computer with a large monitor and a proper keyboard which is more convenient to use than a smartphone's tiny screen.

comment 3y ago · link · parent

A mobile app for business seems weird to me. Why use a tiny phone when you have a laptop or desktop PC with a large screen and a proper keyboard? And the accounting software is usually installed on a desktop.

There are lot of people who don't have a laptop, but they probably are not the ones who is going to transfer "up to $1M" internationally.

Also, using a smartphone is not secure (no 2FA).

comment 3y ago · link · parent

Because `return true` is `r1`, so it only makes sense to use `r0` for `false`. Regarding `rt`, it is used for `return this`.

comment 3y ago · link · parent

Sublime Text allows to add arbitrary abbreviations, but I assume almost any code editor supports it.

comment 3y ago · link · parent

I use similar abbreviations in code editor, for example:

    r0 -> return false
    rn -> return null
    t -> this
    puf -> public function
You can easily find the opportunities for saving typing by analyzing existing code and most used words there.

comment 3y ago · link · parent

Will you get an electric shock from sticking a fork across pins? I thought that the fork would short the curcuit. More probable scenario is that one can easy stick a finger between pins when plugging or unplugging a device.

That is why the voltage should be lowered to 70 Volts.

comment 3y ago · link · parent

Here is a recent case, for example [1]

[1] https://www.dailymail.co.uk/news/article-12042495/Italian-gi...

comment 3y ago · link · parent

I would like the voltage to be lowered even more, to 70 Volts. The reason is that 240V is very dangerous and can easily kill a human. But it seems governments care only about saving aluminium in wires rather than lives.

comment 3y ago · link · parent

Today they clean your computer from botnet, tomorrow from bitcoin.

comment 3y ago · link · parent

In the West they give you money in someone's else name without an ID? Must be a paradise.

comment 3y ago · link · parent

> Flash had been responsible

Was it just Flash or low skilled web developers using Flash the wrong way, adding 10 Flash advertisements on a page and so on?

comment 3y ago · link · parent

> For example, signed integer overflow being UB was intended to allow compiling C to non-twos-compliment machines.

This is indeed a design mistake, but in another sense. Ordinary arithmetic ops like + or - should throw an exception on overflow (with both signed and unsigned operands) because most of the times you need an ordinary math, not math modulo 2^32. For those rare cases where wrap around is desired, there should be a function like add_and_wrap() or a special operator.

comment 3y ago · link · parent

> userbase is familiar

I think that every user who can use terminal, knows combinations like Ctrl + S (Save) or Ctrl + C (Copy). So they are familiar to them as well and should cause no problems.

For me, for example, those combinations from vi, nano or emacs are simply weird and non-standard. And I assume that they are "non-standard" for everyone who was born after 1980 and have never seen a PDP or something from that era.

Therefore it doen't make sense to support those key combinations only because 40 years ago they were used in PDP and other archaic systems.

comment 3y ago · link · parent

You do not need to trust anyone if the program is run inside a sandbox. This sandbox is supported in hardware since 80386, but Linux doesn't make proper use of it.

comment 3y ago · link · parent

How to quit Vim and install Sublime Text?

comment 3y ago · link · parent

Why not? Those control combinations can be disabled if I remember correctly. Also, as they conflict with modern hotkeys, they should be changed everywhere.

comment 3y ago · link · parent

This is just a demonstration of how unfriendly is Linux to supporting third-party software. You are supposed either to use software from distribution's repository or compile it yourself. And if you are a software developer, then you are on your own to decide how to support hundreds of different distributions (the most popular way is to statically compile everything into a single binary).

Such scripts remind me of DOS-era "installers", and they are awful:

- it is unknown whether your distribution is supported or not

- this script is probably not tested on many distributions and can break something

- it is unsafe, because you are running a code that some random person posted on the Internet without any sandboxing

comment 3y ago · link · parent

> Opinionated, or just old and consistent?

That old hotkeys didn't survive the evolution so it doesn't make sense to support them anymore.

comment 3y ago · link · parent

What disappoints me most is that terminal editors often use weird hotkeys that are unique only to them instead of using widspread hotkeys. What I want, is, for example, to use Ctrl + S for saving and not some other combination.

comment 3y ago · link · parent

Judging by screenshots, it seems that there are things that can be improved in UI design, for example, in "Solarized Dark Theme", the contrast in selected cell is so low (gray on purple) that the text is barely readable. To be honest, I don't like the colors from any of the themes. All the themes use grey color a lot and have low contrast.

The widgets like inputs or selects also look weird, sometimes they don't have enough padding and content touches the edges, sometimes there is too much padding. In a numeric input there are icrement/decrement buttons, but they are so tiny that I doubt they are usable even with an Apple touchpad. The text in inputs is sometimes aligned to the left and sometimes centered without obvious reasons.

The command search popup is transparent and the background seen behind it makes reading the text harder.

comment 3y ago · link · parent

> When I worked in Statuspage, we had support of 50-100k requests per second

Serving one cached HTML with Nginx and serving dynamically generated content, updating a database is a different thing.

comment 3y ago · link · parent

Twitter has many features, but not all of them are necessary. For example, there is no need to implement popups blocking the page and demanding a user to register, or detailed telemetry collecting user data from 20 different providers.

comment 3y ago · link · parent

I think that benchmarks are made wrong way. They typically calculate how many times per second a browser can run some code. But this causes browser vendors to do trade-offs, for example, increase memory consumption which increases the probability of swapping which causes everything to stall.

A more fair way would be to account for memory usage:

score = speed ÷ (RAM usage)²

Or they should run their tests at 2Gb system with lot of other applications running in background.

comment 3y ago · link · parent

Is ESP32 "privacy friendly"? Is its firmware fully open source and contains no backdoors?

comment 3y ago · link · parent

> plug such a secondary GPU into a PCIe slot on the host

Where can I find an unused PCIe slot on my laptop?

Also it is not very rational to buy 2 GPUs and use only one at a time.

comment 3y ago · link · parent

Isn't it dangerous to give a guest direct access to a GPU?

comment 3y ago · link · parent

If they are married and their partner works, then it doubles the income. Also if they have a small child there is probably some form of government support. And they should have tax deductions too.

comment 3y ago · link · parent

Why is there a need for food stamps? Food is not expensive. Isn't a rent the largest expense? So wouldn't it make more sense to give a Rent Stamps instead? I am sure people need free rent, not a free food.
1
909192
185