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

It is very dangerous to use banking apps or sites from Android phone. Please Google how many "root" exploits are around. Any application or website can attack your phone, and if it succeeds then your money are gone. You should use a phone only as a second factor for authentication.

comment 7y ago · link · parent

Maybe that system was low quality and blocked valid transactions?

comment 7y ago · link · parent

But why would someone need to carry molten iron? It is inconvenient and dangerous.

comment 7y ago · link · parent

By the way, today I saw old man and woman riding electric scooters with seats (they look like this [1]). I thought that it could be useful for senior people in the city. But our city is mostly flat, of course they won't help to climb those endless stairways in Japan.

[1] https://www.dhresource.com/0x0s/f2-albu-g6-M01-8B-09-rBVaSFt...

comment 7y ago · link · parent

There might be other differences. On the road, a lot depends on your style of driving, whether you are careful, but in case with a plane, you cannot do anything to make the flight safer.

comment 7y ago · link · parent

But this software hack was added only to save a little amount of fuel (and money to retraint the pilots or redesign the airplane frame). Maybe it is better to have a slightly more expensive, but safer plane?

comment 7y ago · link · parent

But maybe you shouldn't be using a "stupid" library in a medical device?

comment 7y ago · link · parent

Then it should be skilled, talented workers who should live in a place without public transport, buy expensive cars and gasoline and spend hours in traffic jams?

comment 7y ago · link · parent

But there is limited amount of apartments in good places like city center. Are you suggesting they should be for people with low salary and talented people with good pay should live in a suburb without public transportation and spend hours in traffic jams? And tourists won't be happy with this too.

comment 7y ago · link · parent

Too many brackets and dashes. Arithmetic expressions look unfamiliar, and class declarations too. I am a PHP developer by the way.

Also, I noticed a use of eval:

             (when (and unclicked-thing (eql unclicked-thing clicked-thing))
                 (let ((*package* (find-package :cl-user)))
                   (eval (read-from-string (third unclicked-thing)))))))))))
Also, some function names do not start with a verb, like "(defun desktop-main (desktop)".

comment 7y ago · link · parent

I doubt that. In old cities like Berlin the best places are in the center because everything is there and there is good public transport access. And new houses are probably built somewhere in suburbs where there is no good transport, no subway, no train stations, nothing except for houses.

comment 7y ago · link · parent

It might be not so simple. The prices are high in some places (like city center or places with good transportation access) because everyone wants to live there. You can build new houses in other places with poor transportation, but nobody will want to live there.

comment 7y ago · link · parent

But there are different houses. Typically the most expensive are those located in the center of a big city with good transportation access. Do such apartments need price regulation? Poor people could live somewhere further from center where the prices are more affordable. Otherwise you make those nicely located apartments unavailable for other people who are ready to pay more.

comment 7y ago · link · parent

Nice idea. Can I have a free apartment in the centre of Moscow within 5 minutes walk from subway then?

What I want to say is that houses are different and there are places where everybody wants to live and where nobody wants, and that is why the housing prices can be so high. Maybe instead of asking for a fixed rent people should consider a cheaper place to live? Everybody cannot live within 5 minutes from a subway station.

comment 7y ago · link · parent

Some websites (for example Aliexpress) scan local ports to check whether you are running something like RDP, SSH or VNC server. They try to open websocket connection to those ports and measure how much time it takes to establish (or to be rejected).

comment 7y ago · link · parent

Looked through source code [1]. It lacks readability and is worse than Rust.

[1] https://github.com/froggey/Mezzano/blob/master/gui/desktop.l...

comment 7y ago · link · parent

This is currently an issue in Russia. Big cities like Moscow produce a lot of waste and the cheapest way to utilise it was to dump to a landfill in a countryside. Now people living nearby are protesting because the gases from the landfill are carried by the wind to their town several kilemeters away.

comment 7y ago · link · parent

The waste in the landfill produces toxic gases. Also it can burn and produce even more toxic gases. Even if the landfill is several kilometers away from homes, it is still dangerous.

Also, the waste can pollute underground waters, and if there are many rivers in the region, the water will be contaminated in a large area around.

comment 7y ago · link · parent

If you throw it into a water then somebody can step on it and hurt their feet.

comment 7y ago · link · parent

Slightly unrelated, but maybe we should start calling TVs with cameras "telescreens"? Like, "don't forget to check your telescreen for viruses every several days".

comment 7y ago · link · parent

TV software developers are probably learning from HTML/JS developers who support only whatever version of Safari they have on their macbook. Their sites also don't work in browsers released in 2013.

comment 7y ago · link · parent

The vendor can simply add a GSM modem with a pre-paid SIM card.

comment 7y ago · link · parent

Where is this used? If a user wants to make everything larger then they can use zoom in a browser that works with any units (except for vx, vh, vmin, vmax that break zoom).

comment 7y ago · link · parent

> I also find sites that do everything in rem/em more assessable as the padding also scales if they have a increased font size due to low vision.

If you use Ctrl +/Ctrl - for zoom, then everything scales proportionally regardless of whether you use pixels or rems. You are trying to solve the problem that has been already solved by Opera, and later by other browsers more than 10 years ago.

> Also, hardcoding things instead of using variables makes things harder to maintain.

In my experience, it is the opposite: simple code without implicit dependencies is better. Because the typical task would be to change one part of the page without affecting other parts. With a simple code, I would use DevTools to change the CSS rules and then I would move the changes manually into CSS file. But if the site uses some complicated framework with variables and rems, I will have to spend time learning it, see where is a variable defined, what can be affected if I change it, etc. It just takes more time and nobody of the devs will want to learn your custom-made CSS framework.

comment 7y ago · link · parent

Yes, but a typical change request would be something like "make this menu font size larger", and in this case having menu independent from other parts of the page is better. Also, if you build a framework with variables, dependence on root font size, it would be complicated and most devs won't like to spend time learning it and thinking how to solve their task within it. Simple is better here.

comment 7y ago · link · parent

It is not as simple as just replacing pixels with rems. Do you test your markup with different root font sizes? Do you add special rules for cases when the font size is too small or too large? Unlikely. Then you better not pretend that you support scaling the fonts using browser settings.

Also, I think that changing font size in browser settings doesn't work on most sites, so people don't use it. For example, I use normal scaling (using Ctrl + +) on this site and it works good enough, and what's most important, it works everywhere. So there is no need to support changing root font size.

comment 7y ago · link · parent

A website that is maintained in a long term will be worked on by many people, and CSS will become quite large and complicated. So using the simple constructs like pixel units is better than using rems that create implicit dependence on main font size. This way there are less chances to break something in one place when editing code in other place.

The same is about CSS variables. An example with one variable might look nice. But what if your code has hundreds of variables? It would take more time to understand how they are related and how do I change the size of this button without breaking something on another page.

comment 7y ago · link · parent

Filing for bankrupcy doesn't sound even nearly as scary as being extradited into China.

comment 7y ago · link · parent

HTML/CSS was designed to be forward/backward compatible and not to be written only for version of Safari installed on dev's macbook. This is against the spirit of HTML.

comment 7y ago · link · parent

Display: block fits better because it has been around for more than 15 years unlike flexbox. And flexbox has no advantages in this case.
1
130131132
185